/* ── Quick Create Section ── */

.ai-quick-create {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ai-quick-create-title {
    color: #e0e0e0;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.ai-quick-create-title i {
    color: #5cb85c;
    margin-right: 0.5rem;
}

/* ── Model Cards ── */

.ai-qc-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.ai-model-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ai-model-card {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #2b2b2b;
    width: 100px;
    flex-shrink: 0;
}
.ai-model-card:hover {
    border-color: rgba(92, 184, 92, 0.4);
}
.ai-model-card.active {
    border-color: #5cb85c;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.25);
}

.ai-model-card-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    background: #333;
}

.ai-model-card-body {
    padding: 0.25rem 0.375rem;
    text-align: center;
}
.ai-model-card-name {
    color: #d0d0d0;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-model-card-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5cb85c;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.ai-model-card.active .ai-model-card-check {
    display: flex;
}

/* ── Prompt Input ── */

.ai-qc-prompt-wrap {
    margin-bottom: 1.25rem;
}

.ai-qc-prompt-container {
    position: relative;
}

.ai-qc-prompt-container #prompt_input_textarea {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #2b2b2b;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    word-break: break-word;
}
.ai-qc-prompt-container #prompt_input_textarea:focus {
    border-color: #5cb85c;
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.15);
}
.ai-qc-prompt-container #prompt_input_textarea.empty::before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}

/* 提示词下拉使用共用 partial workspace_prompt_dropdown；简洁版字号略小于正文，与完整版接近 */
.ai-qc-prompt-container .ws-prompt-dropdown .dropdown-item {
    font-size: 0.875rem;
}
.ai-qc-prompt-container .ws-prompt-dropdown .dropdown-item small {
    font-size: inherit;
}

/* hidden prompt_group selects */
.ai-qc-hidden-selects {
    display: none !important;
}

/* ── Selected tags chips ── */

.ai-qc-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}
.ai-qc-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(92, 184, 92, 0.12);
    color: #b0e0b0;
    font-size: 0.78rem;
    cursor: default;
}
.ai-qc-tag-chip .chip-weight {
    color: #5cb85c;
    font-weight: 600;
    cursor: pointer;
}
.ai-qc-tag-chip .chip-remove {
    cursor: pointer;
    margin-left: 0.15rem;
    opacity: 0.6;
}
.ai-qc-tag-chip .chip-remove:hover {
    opacity: 1;
    color: #ff6b6b;
}

/* ── Advanced Settings Toggle ── */

.ai-qc-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #b0b0b0;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: color 0.2s, border-color 0.2s;
}
.ai-qc-advanced-toggle:hover {
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}
.ai-qc-advanced-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}
.ai-qc-advanced-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* ── Advanced Settings Panel ── */

.ai-qc-advanced-panel {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.ai-qc-advanced-panel .ai-qc-label {
    margin-top: 0.75rem;
}
.ai-qc-advanced-panel .ai-qc-label:first-child {
    margin-top: 0;
}

/* ── Style Cards ── */

.ai-style-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ai-style-card {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #2b2b2b;
    width: 100px;
    flex-shrink: 0;
}
.ai-style-card:hover {
    border-color: rgba(92, 184, 92, 0.35);
}
.ai-style-card.active {
    border-color: #5cb85c;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.2);
}

.ai-style-card-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    background: #333;
}

.ai-style-card-name {
    padding: 0.25rem 0.375rem;
    text-align: center;
    color: #c0c0c0;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-style-card-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #5cb85c;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}
.ai-style-card.active .ai-style-card-check {
    display: flex;
}

/* ── Dimension Radios ── */

.ai-qc-dimensions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ai-qc-dim-option {
    display: none;
}
.ai-qc-dim-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #2b2b2b;
    color: #b0b0b0;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
}
.ai-qc-dim-label:hover {
    border-color: rgba(92, 184, 92, 0.3);
    color: #d0d0d0;
}
.ai-qc-dim-option:checked + .ai-qc-dim-label {
    background: rgba(92, 184, 92, 0.12);
    border-color: #5cb85c;
    color: #5cb85c;
    font-weight: 500;
}

/* ── Hires Radios ── */

.ai-qc-hires {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Price Summary ── */

.ai-qc-price-summary {
    margin-top: 1rem;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.6;
}
.ai-qc-price-summary .gold {
    color: #d4a90c;
}
.ai-qc-price-summary .diamond {
    color: #5bc0de;
}
.ai-qc-price-summary .fli_price_summary_cross {
    text-decoration: line-through;
}
.ai-qc-price-member-free {
    margin-left: 0.5rem;
}

/* ── Generate Button ── */

.ai-qc-generate-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 1.25rem;
}
.ai-qc-generate-btn:hover {
    opacity: 0.9;
}
.ai-qc-generate-btn:active {
    transform: scale(0.99);
}
.ai-qc-generate-btn i {
    margin-right: 0.5rem;
}

/* ── Mobile Responsive ── */

@media (max-width: 767px) {
    .ai-model-cards,
    .ai-style-cards {
        gap: 0.5rem;
    }
    .ai-model-card,
    .ai-style-card {
        width: 80px;
    }
    .ai-model-card-img {
        width: 80px;
        height: 80px;
    }
    .ai-style-card-img {
        width: 80px;
        height: 80px;
    }
    .ai-quick-create {
        padding: 1rem;
    }
    .ai-qc-dimensions {
        gap: 0.375rem;
    }
    .ai-qc-dim-label {
        padding: 0.3rem 0.625rem;
        font-size: 0.78rem;
        min-width: 80px;
    }
}
