/* Enhancement Options Styling */

.enhancement-options {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-6, 24px);
    margin: var(--space-6, 24px) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhancement-header {
    text-align: center;
    margin-bottom: var(--space-6, 24px);
    padding-bottom: var(--space-4, 16px);
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.enhancement-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900, #1a1a1a);
    margin-bottom: var(--space-2, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
}

.enhancement-header h3 i {
    color: var(--primary-600, #6366f1);
}

.enhancement-subtitle {
    font-size: 0.95rem;
    color: var(--neutral-600, #666);
    margin: 0;
}

.enhancement-section {
    margin-bottom: var(--space-6, 24px);
    padding: var(--space-4, 16px);
    background: white;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.enhancement-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800, #333);
    margin-bottom: var(--space-4, 16px);
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
}

.enhancement-section h4 i {
    color: var(--primary-500, #7c3aed);
    font-size: 1.2rem;
}

.enhancement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3, 12px);
}

.enhancement-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4, 16px) var(--space-3, 12px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid var(--neutral-200, #e5e5e5);
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700, #555);
    min-height: 80px;
}

.enhancement-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-400, #a78bfa);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.enhancement-option.selected {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-color: var(--primary-600, #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.enhancement-option.selected i {
    color: white !important;
}

.enhancement-option i {
    font-size: 1.5rem;
    margin-bottom: var(--space-2, 8px);
    color: var(--primary-600, #6366f1);
    transition: all 0.3s ease;
}

.enhancement-option span {
    text-align: center;
    line-height: 1.3;
}

/* Hair Gender Tabs */
.hair-gender-tabs {
    display: flex;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-4, 16px);
    background: var(--neutral-100, #f5f5f5);
    padding: var(--space-1, 4px);
    border-radius: var(--radius-lg, 12px);
}

.hair-gender-tab {
    flex: 1;
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: transparent;
    border: none;
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-weight: 600;
    color: var(--neutral-600, #666);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
}

.hair-gender-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-600, #6366f1);
}

.hair-gender-tab.active {
    background: var(--primary-600, #6366f1);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.hair-styles-group {
    display: none;
}

.hair-styles-group.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3, 12px);
}

/* Enhancement Note */
.enhancement-note {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-4, 16px);
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
    border-radius: var(--radius-md, 10px);
    border-left: 4px solid var(--primary-500, #7c3aed);
    margin-top: var(--space-4, 16px);
}

.enhancement-note i {
    color: var(--primary-600, #6366f1);
    font-size: 1.3rem;
}

.enhancement-note span {
    color: var(--neutral-700, #555);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .enhancement-options {
        padding: var(--space-4, 16px);
    }

    .enhancement-header h3 {
        font-size: 1.2rem;
    }

    .enhancement-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: var(--space-2, 8px);
    }

    .enhancement-option {
        padding: var(--space-3, 12px) var(--space-2, 8px);
        min-height: 70px;
        font-size: 0.85rem;
    }

    .enhancement-option i {
        font-size: 1.3rem;
    }

    .hair-gender-tab {
        font-size: 0.85rem;
        padding: var(--space-2, 8px) var(--space-3, 12px);
    }
}

@media (max-width: 480px) {
    .enhancement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hair-gender-tab {
        flex-direction: column;
        gap: var(--space-1, 4px);
    }

    .hair-gender-tab i {
        font-size: 1.2rem;
    }
}

/* Animation for enhancement options appearing */
.enhancement-option {
    animation: fadeInUp 0.4s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for grid items */
.enhancement-option:nth-child(1) { animation-delay: 0.05s; }
.enhancement-option:nth-child(2) { animation-delay: 0.1s; }
.enhancement-option:nth-child(3) { animation-delay: 0.15s; }
.enhancement-option:nth-child(4) { animation-delay: 0.2s; }
.enhancement-option:nth-child(5) { animation-delay: 0.25s; }
.enhancement-option:nth-child(6) { animation-delay: 0.3s; }
.enhancement-option:nth-child(7) { animation-delay: 0.35s; }

/* Custom Prompt Mode Toggle */
.prompt-mode-toggle {
    margin: var(--space-6, 24px) 0;
    padding: var(--space-4, 16px);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.toggle-container {
    display: flex;
    gap: var(--space-2, 8px);
    background: var(--neutral-100, #f5f5f5);
    padding: var(--space-1, 4px);
    border-radius: var(--radius-lg, 12px);
}

.mode-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
    padding: var(--space-4, 16px);
    background: transparent;
    border: none;
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-600, #666);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.mode-toggle-btn:hover::before {
    left: 100%;
}

.mode-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-600, #6366f1);
    transform: translateY(-2px);
}

.mode-toggle-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.mode-toggle-btn i {
    font-size: 1.2rem;
}

/* Custom Prompt Section */
.custom-prompt-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-6, 24px);
    margin: var(--space-6, 24px) 0;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    animation: slideIn 0.4s ease-out;
    border: 2px solid rgba(124, 58, 237, 0.1);
}

.custom-prompt-header {
    text-align: center;
    margin-bottom: var(--space-6, 24px);
}

.header-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    border-radius: 50%;
    margin-bottom: var(--space-4, 16px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
    }
}

.header-icon-wrapper i {
    font-size: 1.8rem;
    color: white;
}

.custom-prompt-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2, 8px);
}

.custom-prompt-tagline {
    font-size: 1rem;
    color: var(--neutral-600, #666);
    font-style: italic;
}

/* Prompt Examples */
.prompt-examples {
    margin-bottom: var(--space-6, 24px);
    padding: var(--space-4, 16px);
    background: white;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.examples-header {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-4, 16px);
    font-weight: 600;
    color: var(--neutral-700, #555);
}

.examples-header i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
}

.example-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: linear-gradient(135deg, #f8f9ff 0%, #faf5ff 100%);
    border: 2px solid var(--neutral-200, #e5e5e5);
    border-radius: var(--radius-full, 9999px);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700, #555);
    transition: all 0.3s ease;
}

.example-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-400, #a78bfa);
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
}

.example-chip:hover i {
    color: white;
}

.example-chip i {
    font-size: 1rem;
    color: var(--primary-600, #6366f1);
    transition: color 0.3s ease;
}

/* Prompt Input */
.prompt-input-wrapper {
    margin-bottom: var(--space-6, 24px);
}

.prompt-label {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--neutral-800, #333);
    margin-bottom: var(--space-3, 12px);
}

.prompt-label i {
    color: var(--primary-600, #6366f1);
}

.custom-prompt-textarea {
    width: 100%;
    padding: var(--space-4, 16px);
    border: 2px solid var(--neutral-200, #e5e5e5);
    border-radius: var(--radius-lg, 12px);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-prompt-textarea:focus {
    outline: none;
    border-color: var(--primary-500, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 4px 12px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.custom-prompt-textarea::placeholder {
    color: var(--neutral-400, #999);
    font-style: italic;
}

.prompt-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2, 8px);
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
}

.helper-tips {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
}

.tip-badge {
    padding: var(--space-1, 4px) var(--space-2, 8px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: var(--radius-md, 10px);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.tip-text {
    font-size: 0.85rem;
    color: var(--neutral-600, #666);
}

.char-counter {
    font-size: 0.85rem;
    color: var(--neutral-500, #888);
    font-weight: 600;
}

.char-counter span {
    color: var(--primary-600, #6366f1);
}

/* Custom Prompt Features */
.custom-prompt-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3, 12px);
    padding: var(--space-4, 16px);
    background: white;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-3, 12px);
    background: linear-gradient(135deg, #f8f9ff 0%, #faf5ff 100%);
    border-radius: var(--radius-md, 10px);
    font-size: 0.9rem;
    color: var(--neutral-700, #555);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-600, #6366f1);
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-prompt-section {
        padding: var(--space-4, 16px);
    }

    .custom-prompt-header h3 {
        font-size: 1.4rem;
    }

    .header-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .header-icon-wrapper i {
        font-size: 1.5rem;
    }

    .example-chips {
        flex-direction: column;
    }

    .example-chip {
        width: 100%;
        justify-content: center;
    }

    .custom-prompt-features {
        grid-template-columns: 1fr;
    }

    .mode-toggle-btn span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .toggle-container {
        flex-direction: column;
    }

    .mode-toggle-btn {
        width: 100%;
    }

    .helper-tips {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Prompt Builder Categories */
.prompt-builder-categories {
    margin-bottom: var(--space-6, 24px);
}

.prompt-category {
    margin-bottom: var(--space-5, 20px);
    padding: var(--space-4, 16px);
    background: white;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.prompt-category:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-4, 16px);
    padding-bottom: var(--space-3, 12px);
    border-bottom: 2px solid var(--neutral-100, #f5f5f5);
}

.category-header i {
    font-size: 1.3rem;
    color: var(--primary-600, #6366f1);
}

.category-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-800, #333);
    margin: 0;
}

.category-hint {
    font-size: 0.85rem;
    color: var(--neutral-500, #888);
    font-style: italic;
    margin-left: auto;
}

.category-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-2, 8px);
}

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1, 4px);
    padding: var(--space-3, 12px) var(--space-2, 8px);
    background: linear-gradient(135deg, #f8f9ff 0%, #fafafa 100%);
    border: 2px solid var(--neutral-200, #e5e5e5);
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700, #555);
    transition: all 0.3s ease;
    min-height: 70px;
}

.category-chip i {
    font-size: 1.3rem;
    color: var(--neutral-600, #666);
    transition: all 0.3s ease;
}

.category-chip span {
    text-align: center;
    line-height: 1.2;
}

/* Category-specific colors on hover */
.clothing-chips .category-chip:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.clothing-chips .category-chip:hover i {
    color: white;
}

.background-chips .category-chip:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.background-chips .category-chip:hover i {
    color: white;
}

.hair-chips .category-chip:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #7c3aed;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.hair-chips .category-chip:hover i {
    color: white;
}

.expression-chips .category-chip:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.expression-chips .category-chip:hover i {
    color: white;
}

/* Selected state */
.clothing-chips .category-chip.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.background-chips .category-chip.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.hair-chips .category-chip.selected {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.expression-chips .category-chip.selected {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.category-chip.selected i {
    color: white !important;
}

/* Hair Gender Tabs for Custom Prompt */
.hair-gender-tabs-custom {
    display: flex;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-3, 12px);
    background: var(--neutral-100, #f5f5f5);
    padding: var(--space-1, 4px);
    border-radius: var(--radius-md, 10px);
}

.hair-gender-tab-custom {
    flex: 1;
    padding: var(--space-2, 8px) var(--space-3, 12px);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-600, #666);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1, 4px);
}

.hair-gender-tab-custom:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-600, #7c3aed);
}

.hair-gender-tab-custom.active {
    background: var(--primary-600, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.mens-hair-custom,
.womens-hair-custom {
    display: none;
}

.mens-hair-custom.active,
.womens-hair-custom.active {
    display: grid;
}

/* Selected Items Display */
.selected-items-display {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-4, 16px);
    margin-bottom: var(--space-4, 16px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    animation: slideIn 0.3s ease-out;
}

.selected-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3, 12px);
}

.selected-items-header span {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    font-weight: 700;
    color: var(--neutral-800, #333);
}

.selected-items-header i {
    color: #3b82f6;
}

.clear-all-btn {
    padding: var(--space-2, 8px) var(--space-3, 12px);
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: var(--space-1, 4px);
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.selected-items-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
}

.selection-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-2, 8px) var(--space-3, 12px);
    background: white;
    border: 2px solid;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selection-badge.clothing-badge {
    border-color: #3b82f6;
    color: #3b82f6;
}

.selection-badge.background-badge {
    border-color: #10b981;
    color: #10b981;
}

.selection-badge.hair-badge {
    border-color: #7c3aed;
    color: #7c3aed;
}

.selection-badge.expression-badge {
    border-color: #f59e0b;
    color: #f59e0b;
}

.selection-badge i {
    font-size: 1rem;
}

.selection-badge button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.selection-badge button:hover {
    transform: scale(1.2);
}

/* Upload Clothing Chip */
.upload-clothing-chip {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white !important;
    border-color: #8b5cf6;
    font-weight: 700;
}

.upload-clothing-chip i {
    color: white !important;
}

.upload-clothing-chip:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #7c3aed;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Clothing Upload Preview */
.clothing-upload-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f5ff 0%, #faf8ff 100%);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.clothing-upload-preview .preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.clothing-upload-preview .preview-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #7c3aed;
    font-size: 0.9375rem;
}

.clothing-upload-preview .preview-header i {
    font-size: 1.125rem;
}

.remove-clothing-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-clothing-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.preview-image-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.preview-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

.preview-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
}

.preview-info i {
    color: #8b5cf6;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.preview-info span {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
}

/* Mobile Responsive for Categories */
@media (max-width: 768px) {
    .category-chips {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .category-chip {
        min-height: 60px;
        padding: var(--space-2, 8px) var(--space-1, 4px);
        font-size: 0.75rem;
    }

    .clothing-upload-preview {
        padding: 1rem;
    }

    .preview-image-container {
        max-width: 100%;
    }

    .category-chip i {
        font-size: 1.1rem;
    }

    .category-header h4 {
        font-size: 1rem;
    }

    .category-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-chips {
        grid-template-columns: repeat(2, 1fr);
    }

    .selected-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2, 8px);
    }

    .clear-all-btn {
        width: 100%;
        justify-content: center;
    }
}
