@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Glass Morphism (Minimal - mainly for advanced toggle) */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Glass card is replaced by premium-card */
.glass-card {
    background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 25%, #16213e 75%, #0f1419 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

[data-theme="light"] .glass-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 25%, #e9ecef 75%, #dee2e6 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.loading-spinner {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

/* Custom Select - Global */
select, input, textarea {
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.9) 0%, rgba(30, 34, 54, 0.7) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

[data-theme="light"] select,
[data-theme="light"] input,
[data-theme="light"] textarea {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

select:focus, input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Global Select Options */
select option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    padding: 10px;
}

[data-theme="light"] select option {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
}

select option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
}

[data-theme="light"] select option:checked {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
}

select option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] select option:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%) !important;
    color: #1a1a1a !important;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--glass-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    top: 3px;
    left: 4px;
    transition: all 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(30px);
}

/* Button Styles - Modern Premium */
.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    background-position: 100% 100%;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.5);
    pointer-events: none;
}

.btn-primary:disabled::before {
    display: none;
}

/* Disabled States for Inputs/Selects */
select:disabled,
input:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.4) 0%, rgba(30, 34, 54, 0.3) 100%) !important;
    color: #6b7280 !important;
    pointer-events: none;
}

[data-theme="light"] select:disabled,
[data-theme="light"] input:disabled,
[data-theme="light"] textarea:disabled {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.4) 0%, rgba(220, 220, 220, 0.3) 100%) !important;
    color: #9ca3af !important;
}

/* Secondary Button Style */
button.btn-secondary,
.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

[data-theme="light"] .btn-secondary {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.02) 100%);
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.04) 100%);
    border-color: rgba(0, 0, 0, 0.18);
}

/* Status Badge */
.status-badge {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-processing {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Image Output */
#outputImage {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Custom Material Input */
.custom-input-container {
    display: none;
    margin-top: 12px;
}

.custom-input-container.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Advanced Mode Toggle */
.advanced-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#advancedMode:checked + .advanced-toggle {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #7c3aed 100%);
    background-size: 200% 200%;
    border-color: #7c3aed;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.toggle-label {
    font-size: 12px;
    font-weight: 700;
    color: #a855f7;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#advancedMode:checked + .advanced-toggle .toggle-label {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.advanced-toggle::before {
    content: '⚙';
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

#advancedMode:checked + .advanced-toggle::before {
    transform: rotate(360deg) scale(1.1);
}

/* Color Mapping Cards - Modern Style */
.color-mapping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.9) 0%, rgba(30, 34, 54, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .color-mapping-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.color-mapping-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .color-mapping-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.12);
}

.color-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.color-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.color-hex {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
}

.color-material-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.95) 0%, rgba(30, 34, 54, 0.8) 100%);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .color-material-input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.color-material-input:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .color-material-input:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.color-material-input:focus {
    border-color: rgba(124, 58, 237, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15),
                0 4px 12px rgba(124, 58, 237, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.color-picker-mini {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .color-picker-mini {
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.color-picker-mini:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .color-picker-mini:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Advanced Section Animation */
#advancedSection {
    animation: fadeInUp 0.3s ease-out;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] #advancedSection {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

/* Premium Card Design - New Modern Style with highlight support */
.premium-card {
    background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 25%, #16213e 75%, #0f1419 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* Light Theme Card */
[data-theme="light"] .premium-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 25%, #e9ecef 75%, #dee2e6 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Top Glow Effect */
.premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card.category-project::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.premium-card.category-materials::before {
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), transparent);
}

.premium-card.category-scene::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
}

.premium-card.category-settings::before {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.premium-card.category-preview::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

/* Radial Glow */
.premium-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.premium-card.category-project::after {
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.premium-card.category-materials::after {
    background: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
}

.premium-card.category-scene::after {
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
}

.premium-card.category-settings::after {
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.premium-card.category-preview::after {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

/* Hover Effects */
.premium-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .premium-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.premium-card.category-project:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(59, 130, 246, 0.2);
}

.premium-card.category-materials:hover {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(236, 72, 153, 0.2);
}

.premium-card.category-scene:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(245, 158, 11, 0.2);
}

.premium-card.category-settings:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(139, 92, 246, 0.2);
}

.premium-card.category-preview:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(16, 185, 129, 0.2);
}

.premium-card:hover::before,
.premium-card:hover::after {
    opacity: 1;
}

/* Card Header with Icon */
.card-title-premium {
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 32px;
    font-style: normal;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #fff 0%, #b8b8ff 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .card-title-premium {
    background: linear-gradient(90deg, #1a1a1a 0%, #4a4a8a 50%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-card:hover .card-title-premium {
    background-position: 100% 0%;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-size: 200% 200%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.category-project .card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #3b82f6 100%);
}

.category-materials .card-icon {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 50%, #ec4899 100%);
}

.category-scene .card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
}

.category-settings .card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #8b5cf6 100%);
}

.category-preview .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #10b981 100%);
}

.card-icon::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.6s ease;
}

.premium-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    background-position: 100% 100%;
}

.premium-card:hover .card-icon::before {
    left: 100%;
}

/* Preview Toggle Container */
.preview-toggle-container {
    display: flex;
    gap: 0;
    background: rgba(30, 34, 54, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .preview-toggle-container {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.preview-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.preview-toggle-btn:hover {
    color: #c7d0e6;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .preview-toggle-btn:hover {
    color: #4a5568;
    background: rgba(0, 0, 0, 0.03);
}

.preview-toggle-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.preview-toggle-btn.active:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

/* Preview Box Styles */

.preview-box {
    width: 100%;
    min-height: 550px;
    max-height: 650px;
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.6) 0%, rgba(30, 34, 54, 0.4) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

[data-theme="light"] .preview-box {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    border: 2px dashed rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-box:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(16, 185, 129, 0.15);
    transform: scale(1.01);
}

[data-theme="light"] .preview-box:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05),
                0 0 20px rgba(16, 185, 129, 0.1);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

[data-theme="light"] .preview-placeholder {
    color: #9ca3af;
}

.preview-placeholder span:first-child {
    display: block;
    margin-bottom: 8px;
}

/* Preview Images */
.preview-box .preview-image {
    width: 100%;
    height: 100%;
    max-height: 650px;
    object-fit: contain;
    border-radius: 12px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: scale(0.95);
}

.preview-box .preview-image:not(.hidden) {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.preview-box .preview-image:not(.hidden) ~ .preview-placeholder {
    display: none;
}

/* Button Icon Spacing */
.btn-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 16px;
}

.btn-text {
    font-size: 13px;
    font-weight: 600;
}

/* Navigation buttons responsive */
@media (max-width: 640px) {
    .btn-text {
        font-size: 11px;
    }
    
    .btn-icon {
        font-size: 14px;
        margin-right: 4px;
    }
}

/* Progress Bar Container (Bottom of Upload Card) */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.98) 0%, rgba(30, 34, 54, 0.9) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    padding: 16px 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 -4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .progress-bar-container {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.9) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.progress-bar-wrapper {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .progress-bar-wrapper {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: shimmer 2s linear infinite;
}

.progress-bar-glow {
    position: absolute;
    top: -2px;
    left: 0;
    height: calc(100% + 4px);
    width: 0;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.6) 0%, transparent 70%);
    filter: blur(8px);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0%;
    }
    100% {
        background-position: -200% 0%;
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 0.3px;
}

[data-theme="light"] .progress-text {
    color: #059669;
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: #c7d0e6;
    font-family: 'Monaco', monospace;
}

[data-theme="light"] .progress-percent {
    color: #4a5568;
}

/* Info Banner in Render Ayarları */
.info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.info-text {
    font-size: 12px;
    font-weight: 500;
    color: #93c5fd;
    line-height: 1.4;
}

[data-theme="light"] .info-text {
    color: #2563eb;
}

/* Full Size Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    cursor: default;
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prompt Output Pre Styling */
#promptOutput {
    background: rgba(30, 34, 54, 0.6) !important;
    color: #c7d0e6 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-family: 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
}

[data-theme="light"] #promptOutput {
    background: rgba(248, 249, 250, 0.8) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Card Labels and Inputs - Modern Style */
.premium-card label {
    color: #c7d0e6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

[data-theme="light"] .premium-card label {
    color: #4a5568;
}

/* Modern Input/Select/Textarea Styling */
.premium-card select,
.premium-card input[type="text"],
.premium-card input[type="number"],
.premium-card input[type="color"],
.premium-card input[type="file"],
.premium-card textarea {
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.9) 0%, rgba(30, 34, 54, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .premium-card select,
[data-theme="light"] .premium-card input[type="text"],
[data-theme="light"] .premium-card input[type="number"],
[data-theme="light"] .premium-card input[type="color"],
[data-theme="light"] .premium-card input[type="file"],
[data-theme="light"] .premium-card textarea {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Hover States */
.premium-card select:hover,
.premium-card input[type="text"]:hover,
.premium-card input[type="number"]:hover,
.premium-card textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

[data-theme="light"] .premium-card select:hover,
[data-theme="light"] .premium-card input[type="text"]:hover,
[data-theme="light"] .premium-card input[type="number"]:hover,
[data-theme="light"] .premium-card textarea:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Focus States - Category Colors */
.premium-card.category-project select:focus,
.premium-card.category-project input:focus,
.premium-card.category-project textarea:focus {
    border-color: rgba(59, 130, 246, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 4px 15px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card.category-materials select:focus,
.premium-card.category-materials input:focus,
.premium-card.category-materials textarea:focus {
    border-color: rgba(236, 72, 153, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15),
                0 4px 15px rgba(236, 72, 153, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card.category-scene select:focus,
.premium-card.category-scene input:focus,
.premium-card.category-scene textarea:focus {
    border-color: rgba(245, 158, 11, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15),
                0 4px 15px rgba(245, 158, 11, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card.category-settings select:focus,
.premium-card.category-settings input:focus,
.premium-card.category-settings textarea:focus {
    border-color: rgba(139, 92, 246, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15),
                0 4px 15px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Select Dropdown Arrow */
.premium-card select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M4.5 6L8 9.5L11.5 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

[data-theme="light"] .premium-card select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231a1a1a' d='M4.5 6L8 9.5L11.5 6'/%3E%3C/svg%3E");
}

/* Dropdown Options Styling */
.premium-card select option {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 16px;
    font-weight: 500;
    border: none;
}

[data-theme="light"] .premium-card select option {
    background: #ffffff;
    color: #1a1a1a;
}

.premium-card select option:hover,
.premium-card select option:focus,
.premium-card select option:checked {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    color: #fff;
}

[data-theme="light"] .premium-card select option:hover,
[data-theme="light"] .premium-card select option:focus,
[data-theme="light"] .premium-card select option:checked {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #1a1a1a;
}

/* Textarea specific */
.premium-card textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Color input special styling */
.premium-card input[type="color"] {
    padding: 4px;
    cursor: pointer;
    min-width: 60px;
    height: 48px;
}

.premium-card input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 4px;
}

.premium-card input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

[data-theme="light"] .premium-card input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* File input styling */
.premium-card input[type="file"] {
    cursor: pointer;
    font-size: 13px;
}

.premium-card input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(30, 64, 175, 0.8) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 12px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-card input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(30, 64, 175, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Badge Styles - Clean & Simple */
.badge-required {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.badge-required::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.6s ease;
}

.badge-required:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.badge-required:hover::before {
    left: 100%;
}

/* Card Responsive */
@media (max-width: 768px) {
    .premium-card {
        padding: 20px;
    }
    
    .card-title-premium {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .premium-card {
        padding: 16px;
    }
    
    .card-title-premium {
        font-size: 14px;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.6) 0%, rgba(30, 34, 54, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 15px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-icon {
    font-size: 20px;
    display: inline-block;
}

.nav-text {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Light Theme Nav */
[data-theme="light"] .nav-btn {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .nav-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #000000;
}

[data-theme="light"] .nav-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    color: #000000;
}

/* View Container */
.view-container {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.view-container.active {
    display: block;
}

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

/* Responsive Nav */
@media (max-width: 640px) {
    .nav-menu {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
}

/* Image Modal (for Full Size View) */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    cursor: default;
}

.modal-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Furniture Selection Modal */
.furniture-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.furniture-modal.hidden {
    display: none;
}

.furniture-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.modal-header {
    padding: 28px 28px 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.modal-title-group {
    flex: 1;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.modal-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.5;
}

.modal-subtitle strong {
    color: rgba(59, 130, 246, 1);
    font-weight: 600;
}

.modal-icon {
    font-size: 28px;
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
/* Progress Indicator */
.modal-progress {
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-divider {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 250px);
}

/* Furniture List */
.furniture-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.furniture-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.furniture-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(16, 185, 129, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.furniture-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.furniture-item.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.furniture-item.selected::before {
    opacity: 1;
}

.furniture-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

/* Preview Container */
.furniture-preview-container {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.furniture-preview-placeholder {
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.furniture-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.furniture-preview-img.hidden {
    display: none;
}

.furniture-item:hover .furniture-preview-container {
    border-color: rgba(59, 130, 246, 0.3);
}

.furniture-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.furniture-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.furniture-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.furniture-status.uploaded {
    color: rgba(16, 185, 129, 0.9);
}

.furniture-status.uploading {
    color: rgba(59, 130, 246, 0.9);
}

.furniture-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-upload {
    padding: 10px 18px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.btn-upload:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-upload:active {
    transform: translateY(0);
}

.btn-upload.uploaded {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.btn-upload.uploaded:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-remove {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #f87171;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Add Custom Furniture */
/* Custom Furniture Section */
.add-custom-furniture-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1.5px dashed rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.add-custom-furniture-section:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
}

.custom-furniture-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.custom-furniture-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
}

.custom-furniture-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.custom-furniture-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.custom-furniture-input-group {
    display: flex;
    gap: 12px;
}

.custom-furniture-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.custom-furniture-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.5);
}

.custom-furniture-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-add-custom {
    padding: 12px 22px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.btn-add-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #9d6ff8 0%, #4c8bf5 100%);
}

.btn-add-custom:active {
    transform: translateY(0);
}

/* Modal Footer */
.modal-footer {
    padding: 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.btn-cancel {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-save {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #14c990 0%, #069d6f 100%);
}

.btn-save:active {
    transform: translateY(0);
}

.save-count {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Light Theme */
[data-theme="light"] .furniture-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-title,
[data-theme="light"] .furniture-name,
[data-theme="light"] .custom-furniture-text h4 {
    color: #111827;
}

[data-theme="light"] .modal-subtitle,
[data-theme="light"] .furniture-status,
[data-theme="light"] .custom-furniture-text p {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .modal-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

[data-theme="light"] .modal-progress {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .progress-number {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .progress-text {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .furniture-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .furniture-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .furniture-item.selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .furniture-preview-container {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .add-custom-furniture-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .custom-furniture-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

[data-theme="light"] .custom-furniture-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   ROOM CATALOG MODAL STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Catalog Modal - Wider Content */
.catalog-modal-content {
    max-width: 900px !important;
    width: 95%;
}

/* Custom Color Picker (for Color Palette) */
.color-palette-custom {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.color-picker-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-input {
    width: 48px;
    height: 40px;
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-picker-text {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: monospace;
    text-transform: uppercase;
}

.color-picker-text:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
}

[data-theme="light"] .color-palette-custom {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .color-picker-input {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .color-picker-text {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

/* Catalog Button (in form) */
.btn-catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-catalog:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.btn-catalog .catalog-badge {
    background: rgba(139, 92, 246, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Category Tabs */
.catalog-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.catalog-tabs::-webkit-scrollbar {
    display: none;
}

.catalog-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.catalog-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

.catalog-tab i {
    opacity: 0.7;
}

.catalog-tab.active i {
    opacity: 1;
}

/* Catalog Body */
.catalog-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

/* Catalog Items Grid */
.catalog-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* Catalog Item */
.catalog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.catalog-item.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.catalog-item.selected:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.18) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Catalog Item Icon */
.catalog-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.catalog-item.selected .catalog-item-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Catalog Item Info */
.catalog-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catalog-item-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-item-name-en {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Catalog Item Check */
.catalog-item-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.catalog-item.selected .catalog-item-check {
    color: #10b981;
}

/* Catalog Empty State */
.catalog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* Catalog Footer */
.catalog-selection-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalog-selection-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.catalog-selection-count i {
    color: #10b981;
}

/* Catalog Warning Banner */
.catalog-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
}

.catalog-warning i {
    color: #ef4444;
    flex-shrink: 0;
}

[data-theme="light"] .catalog-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

[data-theme="light"] .catalog-warning i {
    color: #dc2626;
}

.btn-clear-selection {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: rgba(239, 68, 68, 0.9);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-selection:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.catalog-actions {
    display: flex;
    gap: 12px;
}

/* Light Theme for Catalog */
[data-theme="light"] .btn-catalog {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    color: #4b5563;
}

[data-theme="light"] .btn-catalog:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
}

[data-theme="light"] .btn-catalog .catalog-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #6d28d9;
}

[data-theme="light"] .catalog-tabs {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .catalog-tab {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .catalog-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .catalog-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    color: #6d28d9;
}

[data-theme="light"] .catalog-item {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .catalog-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .catalog-item.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(5, 150, 105, 0.06) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .catalog-item-icon {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .catalog-item.selected .catalog-item-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

[data-theme="light"] .catalog-item-name {
    color: #1f2937;
}

[data-theme="light"] .catalog-item-name-en {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .catalog-item-check {
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .catalog-item.selected .catalog-item-check {
    color: #059669;
}

[data-theme="light"] .catalog-empty-state {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .catalog-selection-count {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .catalog-selection-count i {
    color: #059669;
}

[data-theme="light"] .btn-clear-selection {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Responsive for Catalog */
@media (max-width: 768px) {
    .catalog-modal-content {
        max-width: 100% !important;
        width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
    }
    
    .catalog-tabs {
        padding: 12px 16px;
    }
    
    .catalog-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .catalog-body {
        padding: 16px;
        max-height: 300px;
    }
    
    .catalog-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .catalog-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .catalog-item-icon {
        width: 32px;
        height: 32px;
    }
    
    .catalog-item-name {
        font-size: 13px;
    }
    
    .catalog-selection-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Floating Render Button */
.floating-render-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    
    /* Glass Morphism Design */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    
    /* Styling */
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Typography */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    
    /* Flexbox */
    display: flex;
    align-items: center;
    gap: 10px;
    
    /* Transition */
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.floating-render-btn:hover {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
}

.floating-render-btn:active {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

.floating-btn-icon {
    font-size: 20px;
    animation: pulse-icon 2s ease-in-out infinite;
}

.floating-btn-text {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Light Theme */
[data-theme="light"] .floating-render-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .floating-render-btn:hover {
    opacity: 0.9;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Icon Animation */
@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-render-btn {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .floating-render-btn:hover {
        transform: translateX(-50%) scale(1.15);
    }
    
    .floating-render-btn:active {
        transform: translateX(-50%) scale(1.1);
    }
    
    .floating-btn-icon {
        font-size: 18px;
    }
    
    .floating-btn-text {
        font-size: 14px;
    }
}

/* =========================
   VIDEO GENERATION STYLES
   ========================= */

.image-preview-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.btn-remove-preview {
    width: 100%;
    padding: 8px 16px;
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #ef4444;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-preview:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

.btn-nav-frame {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav-frame:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-nav-frame:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.video-player-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.video-player-container video {
    width: 100%;
    display: block;
}

/* =========================
   UPLOAD AREA STYLES
   ========================= */

.upload-area {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 3px dashed rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: pointer;
}

.upload-area:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .upload-area {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .upload-area:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 40px;
    width: 100%;
    height: 100%;
    min-height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-icon {
    font-size: 72px;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.upload-area:hover .upload-icon {
    transform: scale(1.15) translateY(-8px);
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.5));
}

.upload-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-text {
    color: #3b82f6;
    transform: translateY(-2px);
}

.upload-hint {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-hint {
    opacity: 1;
    color: #60a5fa;
}

/* Upload area animation */
@keyframes uploadPulse {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.3);
    }
    50% {
        border-color: rgba(59, 130, 246, 0.6);
    }
}

.upload-area.active {
    animation: uploadPulse 2s ease-in-out infinite;
}

/* Progress Container for Video */
.progress-container {
    width: 100%;
    padding: 16px;
    background: rgba(30, 34, 54, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 16px;
}

[data-theme="light"] .progress-container {
    background: rgba(248, 249, 250, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

[data-theme="light"] .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: shimmer 2s linear infinite;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

[data-theme="light"] .progress-text {
    color: #059669;
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: 'Monaco', monospace;
}

/* Responsive Upload Area */
@media (max-width: 768px) {
    .upload-area {
        min-height: 250px;
    }
    
    .upload-label {
        padding: 40px 30px;
        min-height: 250px;
    }
    
    .upload-icon {
        font-size: 56px;
    }
    
    .upload-text {
        font-size: 18px;
    }
    
    .upload-hint {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .upload-area {
        min-height: 200px;
    }
    
    .upload-label {
        padding: 30px 20px;
        min-height: 200px;
        gap: 12px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
}


/* Tool Tab Buttons */
.tool-tab-btn {
    background: linear-gradient(135deg, rgba(30, 34, 54, 0.6) 0%, rgba(30, 34, 54, 0.4) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
}

.tool-tab-btn:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.tool-tab-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
    border-color: rgba(139, 92, 246, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.tool-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-content.active {
    display: block;
}

[data-theme="light"] .tool-tab-btn {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .tool-tab-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: #000000;
}

[data-theme="light"] .tool-tab-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #000000;
}

/* ============================================
   MOBILE-SPECIFIC TRANSITION & OVERRIDES
   ============================================ */

body.is-mobile {
    overflow-x: hidden;
}

body.is-mobile .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Mobile Navigation Optimization */
body.is-mobile .nav-menu {
    gap: 6px;
    padding: 0 4px;
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
}

body.is-mobile .nav-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

body.is-mobile .nav-btn {
    padding: 10px 16px;
    flex-direction: row;
    font-size: 13px;
    border-radius: 12px;
    text-align: center;
    gap: 6px;
    flex-shrink: 0;
}

body.is-mobile .nav-icon {
    font-size: 18px;
}

body.is-mobile .nav-text {
    font-size: 12px;
    white-space: nowrap;
}

/* Hide some elements on mobile to declutter */
body.is-mobile .desktop-only {
    display: none !important;
}

/* Mobile-friendly Cards */
body.is-mobile .premium-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

body.is-mobile .card-title-premium {
    font-size: 15px;
    gap: 8px;
}

body.is-mobile .card-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* Mobile Form Controls */
body.is-mobile select, 
body.is-mobile input, 
body.is-mobile textarea {
    padding: 10px 12px;
    font-size: 14px;
}

/* Mobile Grid Adjustments */
body.is-mobile .grid {
    display: flex !important;
    flex-direction: column !important;
}

/* Special Case for very small grids like resolution picker or facades */
body.is-mobile .grid.grid-cols-3,
body.is-mobile .grid.grid-cols-4,
body.is-mobile .grid.grid-cols-2 {
    display: grid !important;
    flex-direction: row !important;
}

body.is-mobile .grid.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.is-mobile .grid.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.is-mobile .grid.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Fixed Bottom Action Bar for Mobile */
.mobile-action-bar {
    display: none;
}

body.is-mobile .mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

body.is-mobile .mobile-action-bar .btn-primary {
    flex: 1;
    margin: 0;
    padding: 12px;
    font-size: 14px;
}

/* Hide original generate button container on mobile if we use action bar */
body.is-mobile .desktop-generate-container {
    display: none !important;
}

/* Mobile Floating Button - Adjusted */
body.is-mobile .floating-render-btn {
    display: none !important; /* Hide floating button if we have action bar */
}

/* Mobile Preview Area */
body.is-mobile .preview-box {
    min-height: 300px;
    max-height: 450px;
}

body.is-mobile .upload-area {
    min-height: 180px;
}

body.is-mobile .upload-label {
    padding: 30px 15px;
}

/* Mobile Hero Section */
body.is-mobile h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
}

body.is-mobile .hero-description {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
}

body.is-mobile .package-card {
    max-width: 100% !important;
    margin-bottom: 1.5rem;
}

/* Hide Advanced Mode globally */
.advanced-toggle, 
#advancedMode,
.advanced-container,
label:has(#advancedMode) {
    display: none !important;
}

/* ============================================
   INFO TOOLTIP SYSTEM
   ============================================ */

/* Info Trigger Button (?) */
.info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5) 0%, rgba(168, 85, 247, 0.4) 100%);
    border: 2px solid rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    color: #ffffff !important;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
}

/* Info trigger text is in HTML, no ::before needed */

.info-trigger:hover, 
.info-trigger.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: #ffffff !important;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.9), 0 0 50px rgba(139, 92, 246, 0.5);
    transform: scale(1.2);
}

/* Info Content Modal */
.info-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 28px;
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border: 2px solid #8b5cf6;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ffffff;
    z-index: 10000;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    pointer-events: auto;
    text-align: left;
}

/* Backdrop overlay when tooltip is shown */
.info-content::before {
    content: '';
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
    pointer-events: none;
}

.info-content.show {
    display: block;
    animation: infoPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes infoPopIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -45%) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

/* Title styling */
.info-content b {
    color: #a78bfa;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 10px;
    font-weight: 800;
}

/* Description styling */
.info-content p {
    margin: 0;
    font-weight: 400;
    opacity: 0.95;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Close hint */
.info-content::after {
    content: 'Kapatmak için dışarıya tıklayın';
    display: block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    font-style: italic;
}

/* ========================================
   Interactive Tutorial System
   ======================================== */

/* Floating Tutorial Button - ui-ux-pro-max compliant */
.tutorial-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    min-width: 56px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.tutorial-floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.tutorial-floating-btn:active {
    transform: translateY(-1px);
}

.tutorial-floating-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tutorial-floating-text {
    white-space: nowrap;
}

/* Hide text on small screens */
@media (max-width: 640px) {
    .tutorial-floating-btn {
        padding: 16px;
        min-width: 56px;
        border-radius: 50%;
    }
    
    .tutorial-floating-text {
        display: none;
    }
}

/* Tutorial Modal - Site theme integrated with proper layering */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-modal.active {
    display: flex;
}

/* Modal backdrop - transparent when highlighting */
.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.tutorial-modal.highlight-mode .tutorial-backdrop {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(0px);
}

/* Modal card - moves to side when highlighting */
.tutorial-content-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 25%, #16213e 75%, #0f1419 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 32px;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(139, 92, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When highlight is active, move modal to corner */
.tutorial-modal.highlight-mode .tutorial-content-card {
    top: 20px;
    left: auto;
    right: 20px;
    transform: translate(0, 0);
    max-width: 420px;
    max-height: 85vh;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(139, 92, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Highlight mode animation - move to corner */
@keyframes moveToCorner {
    from {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
    to {
        top: 20px;
        left: auto;
        right: 20px;
        transform: translate(0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Close Button - Touch-friendly with high z-index */
.tutorial-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.tutorial-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: scale(1.05);
}

.tutorial-close-btn:active {
    transform: scale(0.95);
}

/* Modal Header - Professional */
.tutorial-modal-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tutorial-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff 0%, #b8b8ff 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tutorial-modal-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* Tab Navigation - Professional with site theme */
.tutorial-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.tutorial-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tutorial-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tutorial-tab:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.tutorial-tab:hover:not(.active)::before {
    opacity: 0.3;
}

.tutorial-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tutorial-tab.active::before {
    opacity: 0;
}

.tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tutorial-tab.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .tutorial-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Tab Content */
.tutorial-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tutorial-tab-content.active {
    display: block;
}

/* Progress Indicator - Professional */
.tutorial-progress {
    margin-bottom: 32px;
}

.progress-bar-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
}

.progress-text {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

/* Step Container - Clean & Professional */
.tutorial-step-container {
    min-height: 280px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tutorial-step-title {
    font-size: 24px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.tutorial-step-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tutorial-step-action {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    margin-top: 24px;
}

.tutorial-step-action-title {
    font-size: 13px;
    font-weight: 600;
    color: #6ee7b7;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-step-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tutorial-step-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.tutorial-step-action-button:active {
    transform: translateY(0);
}

/* Navigation Buttons - Touch-friendly with clear hierarchy */
.tutorial-navigation {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.tutorial-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
    white-space: nowrap;
}

.tutorial-nav-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tutorial-nav-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.tutorial-nav-btn.primary:active:not(:disabled) {
    transform: translateY(0);
}

.tutorial-nav-btn.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.tutorial-nav-btn.secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

.tutorial-nav-btn.skip {
    padding: 14px 20px;
    background: transparent;
    border-color: rgba(239, 68, 68, 0.25);
    color: rgba(239, 68, 68, 0.85);
}

.tutorial-nav-btn.skip:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.tutorial-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 640px) {
    .tutorial-navigation {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
    }
    
    .tutorial-nav-btn.skip {
        order: 3;
    }
    
    .tutorial-nav-btn.secondary {
        order: 1;
    }
    
    .tutorial-nav-btn.primary {
        order: 2;
    }
}

/* Quick Start Content - Clean & Professional */
.quickstart-container {
    padding: 8px 0;
}

.quickstart-section {
    margin-bottom: 36px;
}

.quickstart-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.quickstart-section-title svg {
    flex-shrink: 0;
}

.quickstart-format-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.quickstart-format-list li {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 38px;
}

.quickstart-format-list li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}

.quickstart-format-list li:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
}

.quickstart-load-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quickstart-load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.quickstart-load-btn:active {
    transform: translateY(0);
}

.quickstart-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.quickstart-example-card {
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.quickstart-example-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.quickstart-example-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quickstart-example-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

/* Highlight Overlay System - Stays behind highlighted elements */
.tutorial-highlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.tutorial-highlight-overlay.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0);
}

/* Highlighted element - En üst katman, çok belirgin */
.tutorial-highlight {
    position: relative !important;
    z-index: 10003 !important;
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 1), 
                0 0 0 12px rgba(139, 92, 246, 0.6),
                0 0 80px 15px rgba(139, 92, 246, 0.9),
                0 30px 60px rgba(0, 0, 0, 0.8) !important;
    border-radius: 16px !important;
    animation: highlightPulse 2.5s ease-in-out infinite;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    transform: translateZ(0) scale(1.03);
    will-change: box-shadow, transform;
    filter: brightness(1.15) contrast(1.1);
}

/* Premium card specific highlight adjustments */
.premium-card.tutorial-highlight {
    transform: translateZ(0) scale(1.04);
    overflow: visible !important;
}

/* Input/select specific highlight */
input.tutorial-highlight,
select.tutorial-highlight {
    transform: translateZ(0) scale(1.05);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%) !important;
}

/* Ekstra mega glow effect */
.tutorial-highlight::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.3) 30%, transparent 70%);
    border-radius: 24px;
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* Pointer arrow indicator */
.tutorial-highlight::before {
    content: '👉';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    z-index: 1;
    animation: bounce 1s ease-in-out infinite;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 1), 
                    0 0 0 12px rgba(139, 92, 246, 0.6),
                    0 0 80px 15px rgba(139, 92, 246, 0.9),
                    0 30px 60px rgba(0, 0, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 1), 
                    0 0 0 16px rgba(139, 92, 246, 0.8),
                    0 0 100px 20px rgba(139, 92, 246, 1),
                    0 30px 60px rgba(0, 0, 0, 0.8);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive Design - ui-ux-pro-max compliant */
@media (max-width: 768px) {
    .tutorial-content-card {
        padding: 24px 20px;
        max-height: 92vh;
        max-width: calc(100% - 32px);
        border-radius: 16px;
    }
    
    /* On mobile, keep modal centered even in highlight mode */
    .tutorial-modal.highlight-mode .tutorial-content-card {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 32px);
        max-height: 50vh;
    }
    
    .tutorial-modal-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .tutorial-modal-title {
        font-size: 22px;
    }
    
    .tutorial-step-container {
        padding: 24px 20px;
        min-height: 240px;
    }
    
    .tutorial-step-title {
        font-size: 20px;
    }
    
    .quickstart-examples {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quickstart-example-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .tutorial-content-card {
        padding: 20px 16px;
        max-width: calc(100% - 20px);
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .tutorial-modal.highlight-mode .tutorial-content-card {
        max-height: 45vh;
        padding: 20px 16px;
    }
    
    .tutorial-modal-title {
        font-size: 20px;
    }
    
    .tutorial-step-container {
        padding: 20px 16px;
    }
    
    .tutorial-step-title {
        font-size: 18px;
    }
    
    .tutorial-progress {
        margin-bottom: 24px;
    }
}


/* ========================================
   UX MICRO-INTERACTIONS & IMPROVEMENTS
   ======================================== */

/* Smooth Global Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Button Hover States */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Focus Visibility for Accessibility */
*:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.6);
    outline-offset: 3px;
}

/* Enhanced Card Hover Depth */
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Input & Select Enhanced States */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: rgba(102, 126, 234, 0.3);
}

/* Improved Typography & Spacing */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p, li, span {
    line-height: 1.6;
}

/* Interactive Element Feedback */
button:active:not(:disabled),
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

/* Navigation Button States */
.nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(102, 126, 234, 0.15);
}

.nav-btn.active {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* Enhanced Tooltip & Info Trigger */
.info-trigger:hover {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 0.2);
}
