/* Force light mode and prevent browser/system dark mode */
:root {
    color-scheme: light only;
}

/* Global gradient text fixes */
[class*="gradient-text"] {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Base styles */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8fafc; /* slate-50 */
    transition: background 0.5s ease-in-out;
    overflow-x: hidden;
    forced-color-adjust: none;
}
html { scroll-behavior: smooth; }
.theme-bg-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; display: none; transition: opacity 0.5s ease-in-out; opacity: 0; pointer-events: none; }
.theme-bg-container.active { display: block; opacity: 1; }
.theme-bg-container.interactive { pointer-events: auto; }
header { 
    background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); 
    border-color: #e2e8f0; 
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}
.main-gradient-text { background: linear-gradient(to right, #3b82f6, #1e40af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 0.5rem); background-color: white; border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border: 1px solid #e5e7eb; z-index: 50; min-width: 220px; transition: all 0.3s ease-in-out; transform-origin: top right; }
.dropdown-menu.hidden { transform: scale(0.95); opacity: 0; pointer-events: none; }

.lecture-card { background-color: white; border: 1px solid #e5e7eb; border-radius: 1.5rem; padding: 1.25rem; display: flex; flex-direction: column; text-align: center; transition: all 0.3s ease-in-out; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.action-btn { 
    display: block; 
    width: 100%; 
    text-align: center; 
    text-decoration: none; 
    font-weight: 700; 
    padding: 0.75rem 1rem; 
    border-radius: 0.75rem; 
    transition: all 0.2s ease-in-out; 
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Specific action button colors */
.action-btn.bg-purple-600 {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border-color: #7c3aed;
}

.action-btn.bg-purple-600:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #6d28d9;
}

.action-btn.bg-blue-600 {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-color: #1d4ed8;
}

.action-btn.bg-blue-600:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1e40af;
}

.action-btn.bg-amber-600 {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    border-color: #b45309;
}

.action-btn.bg-amber-600:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    border-color: #92400e;
}

/* Resource Pill Button Styles */
.resource-pill { 
    padding: 0.5rem 1rem; 
    font-size: 0.875rem; 
    line-height: 1.25rem; 
    font-weight: 600; 
    border-radius: 9999px; 
    transition: all 0.2s ease-in-out; 
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.resource-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* PDF Button - Red Theme */
.pill-pdf {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.pill-pdf:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* REC Button - Blue Theme */
.pill-rec {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.pill-rec:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* BOARD Button - Green Theme */
.pill-board {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.pill-board:hover {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

/* VIDEO Button - Purple Theme */
.pill-video {
    background-color: #faf5ff;
    color: #9333ea;
    border-color: #d8b4fe;
}

.pill-video:hover {
    background-color: #f3e8ff;
    border-color: #c084fc;
    color: #7c3aed;
}

/* Matrix Button - Teal Theme */
.pill-matrix {
    background-color: #f0fdfa;
    color: #0d9488;
    border-color: #99f6e4;
}

.pill-matrix:hover {
    background-color: #ccfbf1;
    border-color: #5eead4;
    color: #0f766e;
}

/* Electric Lectures Button - Sky Theme */
.elec-lectures {
    background-color: #f0f9ff;
    color: #0284c7;
    border-color: #7dd3fc;
}

.elec-lectures:hover {
    background-color: #e0f2fe;
    border-color: #38bdf8;
    color: #0369a1;
}

/* Electric VLabs Button - Teal Theme */
.elec-vlabs {
    background-color: #f0fdfa;
    color: #0d9488;
    border-color: #5eead4;
}

.elec-vlabs:hover {
    background-color: #ccfbf1;
    border-color: #2dd4bf;
    color: #0f766e;
}

/* Electric Labs Button - Indigo Theme */
.elec-labs {
    background-color: #eef2ff;
    color: #4f46e5;
    border-color: #a5b4fc;
}

.elec-labs:hover {
    background-color: #e0e7ff;
    border-color: #818cf8;
    color: #4338ca;
}

.info-box { background-color: white; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); border: 1px solid #e2e8f0; padding: 1.5rem; }

/* Keyframes */
@keyframes nebula-flow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes wave-flow { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes twinkle { 0%,100%{opacity:0} 50%{opacity:1} }
@keyframes shooting-star { 0% { transform: translateX(300vw) translateY(-50vh) rotate(225deg); opacity: 1; } 100% { transform: translateX(-50vw) translateY(100vh) rotate(225deg); opacity: 0; } }
@keyframes crystal-rotate { from { transform: rotate(0deg) scale(1); } to { transform: rotate(360deg) scale(1); } }

/* --- Theme System --- */
html[class*="theme-"] body { color: #e5e5e5; }
html[class*="theme-"] header { background-color: rgba(18, 18, 18, 0.7); border-color: rgba(255, 255, 255, 0.1); }
html[class*="theme-"] .dropdown-menu { background-color: rgba(25, 25, 25, 0.8); border-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); }
html[class*="theme-"] .dropdown-menu a, html[class*="theme-"] .dropdown-menu button { color: #d4d4d4; }
html[class*="theme-"] .dropdown-menu a:hover, html[class*="theme-"] .dropdown-menu button:hover { background-color: rgba(255, 255, 255, 0.05); }
html[class*="theme-"] #logout-btn:hover { color: #ef4444; background-color: rgba(239, 68, 68, 0.1); }
html[class*="theme-"] .text-slate-800, html[class*="theme-"] .text-slate-900, html[class*="theme-"] .text-slate-600, html[class*="theme-"] .font-semibold, html[class*="theme-"] .text-slate-500 { color: #d4d4d4; }

html[class*="theme-"] .info-box, html[class*="theme-"] .lecture-card { background-color: rgba(28, 28, 28, 0.5); border-color: rgba(255, 255, 255, 0.1); }
html[class*="theme-"] .info-box p, html[class*="theme-"] .info-box li, html[class*="theme-"] .info-box a { color: #a3a3a3; }
html[class*="theme-"] .info-box a:hover { color: #e5e5e5; }
html[class*="theme-"] .lecture-card:hover { border-color: rgba(147, 197, 253, 0.5); }
html[class*="theme-"] .border-t, html[class*="theme-"] hr { border-color: rgba(255, 255, 255, 0.1) !important; }

html[class*="theme-"] .border-sky-200 { border-color: rgba(56, 189, 248, 0.3); }
html[class*="theme-"] .border-teal-200 { border-color: rgba(45, 212, 191, 0.3); }
html[class*="theme-"] .border-indigo-200 { border-color: rgba(129, 140, 248, 0.3); }
html[class*="theme-"] .bg-amber-50 { background-color: rgba(252, 211, 77, 0.05); }
html[class*="theme-"] .border-amber-300 { border-color: rgba(252, 211, 77, 0.2); }
html[class*="theme-"] .text-amber-800 { color: #fde68a; }
html[class*="theme-"] .text-amber-700 { color: #fef3c7; }

/* Button Theme Adjustments */
html[class*="theme-"] .pill-pdf { 
    background-color: rgba(239, 68, 68, 0.15); 
    color: #fca5a5; 
    border-color: rgba(239, 68, 68, 0.3);
}
html[class*="theme-"] .pill-rec { 
    background-color: rgba(59, 130, 246, 0.15); 
    color: #93c5fd; 
    border-color: rgba(59, 130, 246, 0.3);
}
html[class*="theme-"] .pill-board { 
    background-color: rgba(34, 197, 94, 0.15); 
    color: #86efac; 
    border-color: rgba(34, 197, 94, 0.3);
}
html[class*="theme-"] .pill-video { 
    background-color: rgba(147, 51, 234, 0.15); 
    color: #c084fc; 
    border-color: rgba(147, 51, 234, 0.3);
}
html[class*="theme-"] .pill-matrix { 
    background-color: rgba(34, 197, 94, 0.15); 
    color: #86efac; 
    border-color: rgba(34, 197, 94, 0.3);
}
html[class*="theme-"] .elec-lectures { 
    background-color: rgba(14, 165, 233, 0.15); 
    color: #7dd3fc; 
    border-color: rgba(14, 165, 233, 0.3);
}
html[class*="theme-"] .elec-vlabs { 
    background-color: rgba(20, 184, 166, 0.15); 
    color: #5eead4; 
    border-color: rgba(20, 184, 166, 0.3);
}
html[class*="theme-"] .elec-labs { 
    background-color: rgba(99, 102, 241, 0.15); 
    color: #a5b4fc; 
    border-color: rgba(99, 102, 241, 0.3);
}
html[class*="theme-"] .bg-purple-600 { background-color: #7e22ce; }

/* Dark theme button hover effects */
html[class*="theme-"] .pill-pdf:hover { 
    background-color: rgba(239, 68, 68, 0.25); 
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}
html[class*="theme-"] .pill-rec:hover { 
    background-color: rgba(59, 130, 246, 0.25); 
    border-color: rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
}
html[class*="theme-"] .pill-board:hover { 
    background-color: rgba(34, 197, 94, 0.25); 
    border-color: rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}
html[class*="theme-"] .pill-video:hover { 
    background-color: rgba(147, 51, 234, 0.25); 
    border-color: rgba(147, 51, 234, 0.5);
    color: #d8b4fe;
}
html[class*="theme-"] .pill-matrix:hover { 
    background-color: rgba(34, 197, 94, 0.25); 
    border-color: rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}
html[class*="theme-"] .elec-lectures:hover { 
    background-color: rgba(14, 165, 233, 0.25); 
    border-color: rgba(14, 165, 233, 0.5);
    color: #bfdbfe;
}
html[class*="theme-"] .elec-vlabs:hover { 
    background-color: rgba(20, 184, 166, 0.25); 
    border-color: rgba(20, 184, 166, 0.5);
    color: #99f6e4;
}
html[class*="theme-"] .elec-labs:hover { 
    background-color: rgba(99, 102, 241, 0.25); 
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
}

/* Theme: Golden Charcoal */
html.theme-golden-charcoal body { background-color: #121212; }
.theme-golden-charcoal #bg-golden-charcoal { background-image: radial-gradient(ellipse 80% 80% at 5% 50%,hsla(40,90%,55%,.15) 0,transparent 50%),radial-gradient(ellipse 80% 80% at 95% 50%,hsla(38,90%,55%,.15) 0,transparent 50%),url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNzUiIG51bU9jdGF2ZXM9IjIiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjAyNSIvPjwvc3ZnPg=='); }
.theme-golden-charcoal .main-gradient-text { background: linear-gradient(to right, #f59e0b, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Theme: Space */
html.theme-space body { background-color: #000; }
.theme-space #bg-space::before { content:''; position:absolute; width:200%; height:200%; top:-50%; left:-50%; z-index:1; background:radial-gradient(circle,hsla(260,100%,80%,.3) 0,hsla(330,100%,80%,.2) 40%,transparent 70%); animation:nebula-flow 45s linear infinite; }
.theme-space #bg-space::after { content:''; position:absolute; top:0; left:0; right:0; bottom:0; z-index:0; background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAwIiBoZWlnaHQ9IjIwMDAiPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0iZ3JhZCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNTAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9ImJsYWNrIi8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwwKSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjIiIGhlaWdodD0iMiIgZmlsbD0idXJsKCNncmFkKSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MDAsMjAwKSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEuNSIgaGVpZ2h0PSIxLjUiIGZpbGw9InVybCgjZ3JhZCkiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUwMCwxODAwKSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkKSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAwLDEwMDApIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMS4yIiBoZWlnaHQ9IjEuMiIgZmlsbD0idXJsKCNncmFkKSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg4MDAsMTYwMCkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIwLjgiIGhlaWdodD0iMC44IiBmaWxsPSJ1clIoI2dyYWQpIi8+PC9nPjwvZz48L3N2Zz4=') }
.star { position:absolute; background-color:#fff; border-radius:50%; animation-name:twinkle; animation-timing-function:ease-in-out; animation-iteration-count:infinite }
.shooting-star { position:fixed; width:2px; height:100px; background:linear-gradient(to top,transparent,#fff); animation-name:shooting-star; animation-timing-function:linear; animation-iteration-count:infinite; z-index:0 }
.theme-space .main-gradient-text { background: linear-gradient(to right, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Theme: Ocean */
html.theme-ocean body { background-color: #020617; }
.wave { position:absolute; left:0; bottom:0; width:200%; height:100vh; background-repeat:repeat-x; background-position: bottom; }
#wave1 { background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDMwMCI+PHBhdGggZmlsbD0iIzA4MmY0OSIgb3BhY2l0eT0iMC41IiBkPSJNMCAyNTBDMzAwIDMwMCA0MDAgMjAwIDYwMCAyNDBDODAwIDI4MCA5MDAgMjIwIDEyMDAgMjUwVjMwMEgweiIvPjwvc3ZnPg=='); animation:wave-flow 25s linear infinite; }
#wave2 { background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDMwMCI+PHBhdGggZmlsbD0iIzBjNGE2ZSIgb3BhY2l0eT0iMC41IiBkPSJNMCAyNjBDMjgwIDMxMCA0MjAgMjEwIDYwMCAyNTBDNzgwIDI5MCA5MjAgMjMwIDEyMDAgMjYwVjMwMEgweiIvPjwvc3ZnPg=='); animation:wave-flow 20s linear infinite reverse; }
.theme-ocean .main-gradient-text { background: linear-gradient(to right, #38bdf8, #67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- New Animated Themes --- */
/* Fireflies Theme */
html.theme-fireflies body { background-color: #011422; }
.theme-fireflies .main-gradient-text { background: linear-gradient(to right, #fef08a, #fde047); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-fireflies .lecture-card:hover { border-color: #fde047; }

/* Dream Theme */
html.theme-dream-garden body { background: linear-gradient(-45deg, #4c0d6b, #a4508b, #e9a8a8); }
.theme-dream-garden .main-gradient-text { background: linear-gradient(to right, #fbcfe8, #fce7f3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-dream-garden .lecture-card:hover { border-color: #fbcfe8; }
.crystal-item { position: absolute; animation: crystal-rotate 30s linear infinite; filter: drop-shadow(0 0 15px white); transition: transform 0.3s; width: 60px; height: 60px; pointer-events: auto; }
.crystal-item:hover { transform: scale(1.2) rotate(15deg) !important; }

/* Focus Theme */
html.theme-focus-study body { background: #282a36; }
.theme-focus-study .main-gradient-text { background: linear-gradient(to right, #a5f3fc, #67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-focus-study .lecture-card:hover { border-color: #a5f3fc; }

/* Mixer Modal Button Improvements */
#mixer-modal .control-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ef 0%, #cbd5e1 100%);
    color: #2563eb;
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mixer-modal .control-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-color: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

#mixer-modal #mixer-start-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: 2px solid #4f46e5;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 1rem 0;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease-in-out;
    margin-top: 1.5rem;
}

#mixer-modal #mixer-start-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    border-color: #3730a3;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Mixer Setup Button Styling */
#mixer-setup-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: 2px solid #7c3aed;
    font-size: 1.125rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#mixer-setup-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-color: #6d28d9;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

#mixer-setup-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

/* Login Modal Button Styling */
#modal-google-login {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: 2px solid #1d4ed8;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

#modal-google-login:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#modal-guest-login {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 2px solid #cbd5e1;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#modal-guest-login:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Improvements */
@media (max-width: 768px) {
    /* تحسين الهيدر للموبايل */
    header {
        transition: transform 0.3s ease-in-out;
    }
    
    header.header-hidden {
        transform: translateY(-100%);
    }
    
    /* تحسين الأزرار للموبايل */
    .control-btn {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.5rem !important;
        margin: 0 0.25rem !important;
    }
    
    /* تحسين المسافات بين الأزرار */
    .flex.items-center.gap-2 {
        gap: 0.5rem !important;
    }
    
    /* تحسين حجم النص في الأزرار */
    .mixer-input {
        width: 3rem !important;
        font-size: 1.1rem !important;
    }
    
    /* تحسين المسافات في grid */
    .grid.grid-cols-2.gap-4 {
        gap: 1rem !important;
    }
    
    /* جعل الأزرار تحت بعضها في الموبايل */
    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* تحسين مودال الخلاط للموبايل */
    #mixer-modal {
        padding: 1rem !important;
    }
    
    #mixer-modal > div {
        max-height: 95vh !important;
        margin: 0.5rem !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #mixer-modal .space-y-6 {
        flex: 1 !important;
        overflow-y: auto !important;
        padding-bottom: 1rem !important;
    }
    
    #mixer-modal #mixer-start-btn {
        position: sticky !important;
        bottom: 0 !important;
        background: linear-gradient(90deg, #6366f1 0%, #2563eb 100%) !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        border-radius: 1rem !important;
        box-shadow: 0 4px 16px rgba(59,130,246,0.3) !important;
        z-index: 10 !important;
    }
    
    #mixer-modal #mixer-sources-container {
        max-height: 40vh !important;
        overflow-y: auto !important;
    }
    
    #mixer-modal .mixer-step-title {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #mixer-modal .mixer-source-card {
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #mixer-modal .mixer-source-card label {
        font-size: 0.9rem !important;
    }
}


