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



:root {

  --bg-obsidian: #050711;

  --bg-surface-glass: rgba(12, 17, 34, 0.75);

  --bg-card-glass: rgba(14, 21, 42, 0.65);

  --border-glass: rgba(255, 255, 255, 0.08);

  --border-glass-hover: rgba(245, 158, 11, 0.35);

  --color-cyan: #38bdf8;

  --color-sapphire: #0284c7;

  --color-indigo: #6366f1;

  --color-gold: #fbbf24;

  --text-primary: #f8fafc;

  --text-secondary: #94a3b8;

  --text-muted: #64748b;

  --primary: #38bdf8;

  --primary-hover: #0ea5e9;

  --primary-light: #fef3c7;

  --primary-dark: #0369a1;

  --gold: #fbbf24;

  --gold-glow: rgba(245, 158, 11, 0.35);

  --bg-dark: #050711;

  --panel-dark: #0c1228;

  --border-dark: rgba(245, 158, 11, 0.25);

}



* {

  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  box-sizing: border-box;

}



html {

  width: 100%;

  min-height: 100%;

  margin: 0;

  padding: 0;

  overflow-y: auto !important;

  overflow-x: hidden !important;

}



body {

  width: 100%;

  min-height: 100%;

  margin: 0;

  padding: 0;

  overflow-x: hidden;

  background-color: #070913;

  background: radial-gradient(circle at 50% -10%, #151d32 0%, #0d1322 45%, #060810 100%);

  color: #f8fafc;

  transition: background-color 0.3s ease, color 0.3s ease;

}



#landingPage {

  overflow-y: visible !important;

  overflow-x: hidden !important;

  height: auto !important;

  min-height: 100vh !important;

}



#mainApp.hidden,

body.in-landing #mainApp {

  display: none !important;

}



#landingPage.hidden,

body.in-app #landingPage {

  display: none !important;

}



/* Instant In-App Mode overrides: Never show landing page when refreshed in-app */

html.in-app-mode #landingPage,

html.in-app-mode body.in-landing #landingPage {

  display: none !important;

}



html.in-app-mode #mainApp,

html.in-app-mode body.in-landing #mainApp {

  display: flex !important;

}



html.in-app-mode body {

  overflow: hidden !important;

}



#authScreen.hidden {

  display: none !important;

}



/* Landing Page Scrolling */

body.in-landing {

  position: static !important;

  height: auto !important;

  min-height: 100vh !important;

  overflow-y: auto !important;

  overflow-x: hidden !important;

}



html:has(body.in-landing) {

  position: static !important;

  height: auto !important;

  min-height: 100% !important;

  overflow-y: auto !important;

}



/* Interior Member App (Fixed single-screen layout) */

body.in-app {

  height: 100% !important;

  height: 100dvh !important;

  min-height: 100dvh !important;

  position: fixed !important;

  inset: 0 !important;

  overflow: hidden !important;

}



#authScreen {

  overflow-x: hidden !important;

  max-width: 100vw !important;

}



/* Custom Scrollbar for Chat & Panels */

::-webkit-scrollbar {

  width: 6px;

  height: 6px;

}

::-webkit-scrollbar-track {

  background: rgba(7, 10, 24, 0.6);

}

::-webkit-scrollbar-thumb {

  background: rgba(245, 158, 11, 0.35);

  border-radius: 4px;

}

::-webkit-scrollbar-thumb:hover {

  background: rgba(245, 158, 11, 0.65);

}



/* Completely Hide Scrollbars from Chat Input Textareas to Prevent Vertical Line Artifact */

#messageInput,

#customGroupTextInput,

#chatInputBar textarea,

.chat-input-textarea {

  scrollbar-width: none !important;

  -ms-overflow-style: none !important;

  overflow-y: hidden !important;

  resize: none !important;

}



#messageInput::-webkit-scrollbar,

#customGroupTextInput::-webkit-scrollbar,

#chatInputBar textarea::-webkit-scrollbar,

.chat-input-textarea::-webkit-scrollbar {

  display: none !important;

  width: 0 !important;

  height: 0 !important;

  background: transparent !important;

}



/* Live Lesson Discord-Style Grid Scrollbar */

#liveParticipantsList {

  overflow-y: auto !important;

  -webkit-overflow-scrolling: touch !important;

  overscroll-behavior: contain !important;

  scroll-behavior: smooth !important;

}

#liveParticipantsList::-webkit-scrollbar {

  width: 6px;

}

#liveParticipantsList::-webkit-scrollbar-track {

  background: rgba(15, 23, 42, 0.4);

  border-radius: 9999px;

}

#liveParticipantsList::-webkit-scrollbar-thumb {

  background: rgba(225, 29, 72, 0.4);

  border-radius: 9999px;

}

#liveParticipantsList::-webkit-scrollbar-thumb:hover {

  background: rgba(225, 29, 72, 0.8);

}



/* Metallic & Gold Text Accents */

.text-gold-gradient {

  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 40%, #fbbf24 70%, #d97706 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

}



.logo-glow {

  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.2);

}



.logo-border {

  border: 1.5px solid rgba(245, 158, 11, 0.55);

}



/* User Name Color Coding */

/* User Name Color Coding (Smooth Connected Kurdish Typography) */

.user-name-super-admin {

  color: #fbbf24 !important; /* Luminous Vivid Golden Amber */

  font-weight: 900 !important;

  font-size: 13px !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4) !important;

  display: inline-flex;

  align-items: center;

}



.badge-super-admin-shield {

  display: inline-flex;

  align-items: center;

  font-size: 13px;

  line-height: 1;

  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));

  vertical-align: middle;

}



/* Role-based chat message text styles (Clean & Connected Ligatures) */

.msg-text-super-admin {

  color: #fbbf24 !important; /* Warm luminous golden yellow */

  font-weight: 700;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  line-height: 1.6;

}



.msg-text-teacher {

  color: #6ee7b7 !important; /* Emerald green for teachers */

  font-weight: 700;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  line-height: 1.6;

}



.msg-text-admin {

  color: #d8b4fe !important; /* Royal purple for admins */

  font-weight: 700;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  line-height: 1.6;

}



.msg-text-student {

  color: #f8fafc !important; /* Unified crisp soft white for all student levels */

  font-weight: 500;

  line-height: 1.6;

}



.user-name-admin {

  color: #c084fc !important; /* Royal purple for admins */

  font-weight: 800;

  text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);

}



.user-name-teacher {

  color: #34d399 !important; /* Emerald green for teachers */

  font-weight: 800;

  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);

}



.user-name-boy {

  color: #38bdf8 !important; /* Sky Blue for male students */

  font-weight: 700;

}



.user-name-girl {

  color: #f472b6 !important; /* Pink for female students */

  font-weight: 700;

  text-shadow: 0 0 6px rgba(244, 114, 182, 0.25);

}



.user-name-guest {

  color: #94a3b8 !important; /* Ash/Gray color for guests */

  font-weight: 700;

}



/* Star Glow & Badges */

/* Star Glowing Name Effect (Valid for 48 hours after receiving a star) */

@keyframes starNameGlowPulse {

  0%, 100% {

    text-shadow: 

      0 0 4px rgba(254, 240, 138, 0.95),

      0 0 10px rgba(251, 191, 36, 0.8),

      0 0 18px rgba(245, 158, 11, 0.65);

    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.75));

  }

  50% {

    text-shadow: 

      0 0 6px rgba(255, 255, 255, 1),

      0 0 14px rgba(254, 240, 138, 0.95),

      0 0 24px rgba(251, 191, 36, 0.9),

      0 0 34px rgba(245, 158, 11, 0.8);

    filter: drop-shadow(0 0 7px rgba(254, 240, 138, 0.95));

  }

}



@keyframes starSparkleShimmer {

  0% { transform: scale(0.9) rotate(0deg); opacity: 0.8; }

  50% { transform: scale(1.25) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 1)); }

  100% { transform: scale(0.9) rotate(0deg); opacity: 0.8; }

}



.user-name-star-glow {

  position: relative !important;

  color: #fef08a !important; /* Luminous Warm Star Gold */

  font-weight: 900 !important;

  animation: starNameGlowPulse 2.4s ease-in-out infinite alternate !important;

  letter-spacing: 0.3px !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 3px !important;

}



.user-name-star-glow::after {

  content: "✨";

  font-size: 11px;

  line-height: 1;

  display: inline-block;

  margin-right: 2px;

  animation: starSparkleShimmer 2.5s ease-in-out infinite;

}



.user-star-glow-pill {

  box-shadow: 0 0 10px rgba(251, 191, 36, 0.45);

}



/* Interactive Action Button in Chat (@دوگمە) */

.action-chat-btn {

  border: 1px solid transparent;

  font-family: 'Vazirmatn', sans-serif;

  letter-spacing: 0.3px;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);

}



.action-btn-red {

  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%) !important;

  color: #ffffff !important;

  border-color: rgba(254, 205, 211, 0.45) !important;

  box-shadow: 0 0 16px rgba(225, 29, 72, 0.5), 0 4px 10px rgba(0, 0, 0, 0.35) !important;

  animation: actionBtnRedPulse 2.4s ease-in-out infinite alternate !important;

}



.action-btn-red:hover {

  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #e11d48 100%) !important;

  box-shadow: 0 0 24px rgba(244, 63, 94, 0.8), 0 6px 14px rgba(0, 0, 0, 0.45) !important;

  transform: translateY(-1px);

}



@keyframes actionBtnRedPulse {

  0% {

    box-shadow: 0 0 10px rgba(225, 29, 72, 0.45), 0 4px 8px rgba(0, 0, 0, 0.3);

  }

  100% {

    box-shadow: 0 0 22px rgba(244, 63, 94, 0.85), 0 0 35px rgba(225, 29, 72, 0.4), 0 6px 14px rgba(0, 0, 0, 0.4);

  }

}



.action-btn-green {

  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;

  color: #ffffff !important;

  border-color: rgba(167, 243, 208, 0.5) !important;

  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3) !important;

}



.action-btn-green:hover {

  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%) !important;

  box-shadow: 0 0 22px rgba(16, 185, 129, 0.65) !important;

}



.star-badge {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));

  border: 1px solid rgba(245, 158, 11, 0.45);

  color: #fef3c7;

  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);

}



.star-badge-gold {

  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);

  color: #070a18;

  font-weight: 900;

  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);

}



/* Role Typography (Borderless, High Contrast, Elegant Icons) */

.role-text-super-admin {

  color: #fbbf24 !important;

  font-weight: 900 !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4) !important;

  display: inline-flex;

  align-items: center;

  gap: 3px;

  line-height: normal;

}



.role-text-admin {

  color: #c084fc !important;

  font-weight: 900 !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  text-shadow: 0 0 10px rgba(192, 132, 252, 0.4) !important;

  display: inline-flex;

  align-items: center;

  gap: 3px;

  line-height: normal;

}



.role-text-teacher {

  color: #34d399 !important;

  font-weight: 900 !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  font-family: 'Vazirmatn', sans-serif !important;

  font-feature-settings: "liga" 1, "calt" 1;

  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4) !important;

  display: inline-flex;

  align-items: center;

  gap: 3px;

  line-height: normal;

}



/* Borderless Legacy Role Badge Resets (No Frame, Clean Typography) */

.badge-super-admin {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  color: #fbbf24 !important;

  font-weight: 900 !important;

  padding: 0 !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  display: inline-flex;

  align-items: center;

  gap: 3px;

}



.badge-admin {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  color: #c084fc !important;

  font-weight: 900 !important;

  padding: 0 !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  display: inline-flex;

  align-items: center;

  gap: 3px;

}



.badge-teacher {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  color: #34d399 !important;

  font-weight: 900 !important;

  padding: 0 !important;

  letter-spacing: normal !important;

  -webkit-text-stroke: 0 !important;

  display: inline-flex;

  align-items: center;

  gap: 3px;

}



.badge-student {

  background: linear-gradient(135deg, #2563eb, #1d4ed8);

  color: white;

}



.badge-student-girl {

  background: linear-gradient(135deg, #ec4899, #db2777);

  color: white;

  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);

}



.badge-new-student {

  background: linear-gradient(135deg, #0d9488, #0f766e);

  color: white;

  border: 1px solid rgba(20, 184, 166, 0.4);

  box-shadow: 0 0 10px rgba(13, 148, 136, 0.3);

}



.badge-new-student-girl {

  background: linear-gradient(135deg, #f472b6, #db2777);

  color: white;

  border: 1px solid rgba(244, 114, 182, 0.4);

  box-shadow: 0 0 10px rgba(236, 72, 153, 0.35);

}



.badge-guest {

  background: linear-gradient(135deg, #475569, #334155);

  color: #e2e8f0;

  border: 1px solid rgba(148, 163, 184, 0.3);

}



/* Question Box Animation */

.question-glow {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(14, 21, 53, 0.6) 50%, rgba(56, 189, 248, 0.18) 100%);

  border: 2px solid transparent;

  border-image: linear-gradient(to right, #fbbf24, #f59e0b, #38bdf8) 1;

  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25), 0 8px 10px -6px rgba(56, 189, 248, 0.25);

  animation: pulse-border 3s infinite ease-in-out;

}



@keyframes pulse-border {

  0%, 100% {

    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35), 0 0 30px rgba(56, 189, 248, 0.25);

  }

  50% {

    box-shadow: 0 0 25px rgba(254, 243, 199, 0.5), 0 0 40px rgba(245, 158, 11, 0.4);

  }

}



/* Star Confetti Animation */

@keyframes floatUp {

  0% {

    opacity: 1;

    transform: translateY(0) scale(1) rotate(0deg);

  }

  100% {

    opacity: 0;

    transform: translateY(-120px) scale(1.6) rotate(45deg);

  }

}



.floating-star {

  position: absolute;

  pointer-events: none;

  animation: floatUp 1.8s forwards ease-out;

}



/* Mute Banner Animation */

.mute-banner {

  background: linear-gradient(90deg, #7f1d1d, #991b1b, #7f1d1d);

  background-size: 200% 200%;

  animation: gradientShift 4s ease infinite;

}



@keyframes gradientShift {

  0% { background-position: 0% 50%; }

  50% { background-position: 100% 50%; }

  100% { background-position: 0% 50%; }

}



/* Question Jump Highlight Animation */

.question-jump-target {

  animation: questionFlash 2.5s ease-out;

}



@keyframes questionFlash {

  0%, 25% {

    box-shadow: 0 0 0 4px #fbbf24, 0 0 35px rgba(245, 158, 11, 0.85);

    transform: scale(1.02);

  }

  100% {

    box-shadow: none;

    transform: scale(1);

  }

}



/* Glassmorphism Panels */

.glass-panel {

  background: rgba(13, 20, 48, 0.85);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(245, 158, 11, 0.22);

}



/* Unread Messages Pill */

.unread-pill {

  animation: bouncePill 2s infinite ease-in-out;

}



@keyframes bouncePill {

  0%, 100% { transform: translateY(0); }

  50% { transform: translateY(-4px); }

}



/* Custom Voice Player Widget */

.voice-bubble {

  background: rgba(14, 22, 53, 0.9);

  border: 1px solid rgba(245, 158, 11, 0.25);

  border-radius: 1.25rem;

  padding: 0.6rem 1rem;

  display: flex;

  align-items: center;

  gap: 0.75rem;

  min-width: 220px;

}



/* Recording Wave Animation */

.recording-pulse {

  animation: recordingPulse 1.2s infinite;

}



@keyframes recordingPulse {

  0% { transform: scale(0.95); opacity: 0.8; }

  50% { transform: scale(1.08); opacity: 1; }

  100% { transform: scale(0.95); opacity: 0.8; }

}



/* ================= SEEREEN STAFF BRAND PALETTE THEME ================= */

.bg-slate-950,

.bg-slate-950\/95,

.bg-slate-950\/90,

.bg-slate-950\/85,

.bg-slate-950\/80,

.bg-slate-950\/60,

.bg-slate-950\/50,

.bg-slate-950\/40,

.bg-slate-950\/30 {

  background-color: rgba(8, 11, 20, 0.96) !important;

}



.bg-slate-900,

.bg-slate-900\/95,

.bg-slate-900\/90,

.bg-slate-900\/80,

.bg-slate-900\/60 {

  background-color: rgba(13, 18, 32, 0.95) !important;

}



.bg-slate-850 {

  background-color: rgba(18, 25, 42, 0.95) !important;

}



.bg-slate-800,

.bg-slate-800\/95,

.bg-slate-800\/90,

.bg-slate-800\/80,

.bg-slate-800\/70,

.bg-slate-800\/60 {

  background-color: rgba(20, 28, 48, 0.88) !important;

}



.border-slate-800,

.border-slate-800\/90,

.border-slate-800\/80,

.border-slate-800\/60,

.border-slate-800\/40 {

  border-color: rgba(255, 255, 255, 0.08) !important;

}



.border-slate-700,

.border-slate-700\/80,

.border-slate-700\/70,

.border-slate-700\/60,

.border-slate-700\/50 {

  border-color: rgba(255, 255, 255, 0.12) !important;

}



.border-slate-600 {

  border-color: rgba(245, 158, 11, 0.25) !important;

}



/* Rose-Gold & Bronze Buttons */

/* Royal Sapphire & Celestial Buttons */

button.bg-indigo-600,

button.bg-indigo-700,

.from-indigo-600.to-indigo-700,

.from-indigo-600.to-purple-600,

.from-purple-600.to-indigo-600 {

  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #1e3a8a 100%) !important;

  color: #ffffff !important;

  font-weight: 800 !important;

  border: 1px solid rgba(56, 189, 248, 0.4) !important;

  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.28) !important;

}



button.bg-indigo-600:hover,

button.bg-indigo-700:hover {

  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #38bdf8 100%) !important;

  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45) !important;

  color: #ffffff !important;

}



/* Input Fields Styling */

input[type="text"],

input[type="password"],

input[type="number"],

input[type="datetime-local"],

textarea,

select {

  background-color: rgba(9, 14, 34, 0.85) !important;

  border: 1px solid rgba(255, 255, 255, 0.14) !important;

  color: #ffffff !important;

}



input:focus,

textarea:focus,

select:focus {

  border-color: #f59e0b !important;

  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;

  outline: none !important;

}



/* ================= LIGHT MODE OVERRIDES (MODERN WHITE & PILL CAPSULE AESTHETIC) ================= */

body.light-theme {

  background: #f8fafc !important;

  color: #0f172a !important;

}



body.light-theme .bg-slate-950,
body.light-theme .bg-slate-950\/95,
body.light-theme .bg-slate-950\/90,
body.light-theme .bg-slate-950\/85,
body.light-theme .bg-slate-950\/80,
body.light-theme .bg-slate-950\/70,
body.light-theme .bg-slate-950\/60,
body.light-theme .bg-slate-950\/50,
body.light-theme .bg-slate-950\/40,
body.light-theme .bg-slate-900,
body.light-theme .bg-slate-900\/95,
body.light-theme .bg-slate-900\/90,
body.light-theme .bg-slate-900\/80,
body.light-theme .bg-slate-900\/60,
body.light-theme .bg-slate-850 {
  background-color: rgba(247, 240, 228, 0.96) !important;
  border-color: rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}



body.light-theme .bg-slate-800,
body.light-theme .bg-slate-800\/95,
body.light-theme .bg-slate-800\/90,
body.light-theme .bg-slate-800\/80,
body.light-theme .bg-slate-800\/70,
body.light-theme .bg-slate-800\/60,
body.light-theme .bg-slate-800\/50 {
  background-color: rgba(239, 227, 209, 0.95) !important;
  border-color: rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}



body.light-theme .bg-slate-750,

body.light-theme .bg-slate-700 {

  background-color: #e2e8f0 !important;

}



body.light-theme .border-slate-800,

body.light-theme .border-slate-800\/80,

body.light-theme .border-slate-800\/60,

body.light-theme .border-slate-800\/40,

body.light-theme .border-slate-700,

body.light-theme .border-slate-700\/80,

body.light-theme .border-slate-700\/70,

body.light-theme .border-slate-700\/60,

body.light-theme .border-slate-700\/50 {

  border-color: #e2e8f0 !important;

}



/* Light Theme Typography & High Contrast Fixes */

body.light-theme .text-slate-100 {

  color: #000000 !important;

}



body.light-theme .text-slate-200 {

  color: #0f172a !important;

}



body.light-theme .text-slate-300 {

  color: #1e293b !important;

}



/* Headings and body text that use text-white get high-contrast slate in light mode */

body.light-theme h1.text-white,

body.light-theme h2.text-white,

body.light-theme h3.text-white,

body.light-theme h4.text-white,

body.light-theme p.text-white,

body.light-theme .sub-answer-box,

body.light-theme div.text-white:not(button *):not([class*="bg-indigo"]):not([class*="bg-emerald"]):not([class*="bg-rose"]):not([class*="bg-sky"]):not([class*="bg-purple"]):not([class*="bg-[#552776]"]),

body.light-theme span.text-white:not(button *):not([class*="bg-indigo"]):not([class*="bg-emerald"]):not([class*="bg-rose"]):not([class*="bg-sky"]):not([class*="bg-purple"]):not([class*="bg-[#552776]"]) {

  color: #0f172a !important;

}



/* Explicitly preserve crisp WHITE text on all colored buttons and badges */

body.light-theme button.bg-indigo-600,

body.light-theme button.bg-indigo-700,

body.light-theme button.bg-emerald-600,

body.light-theme button.bg-emerald-700,

body.light-theme button.bg-rose-600,

body.light-theme button.bg-rose-700,

body.light-theme button.bg-sky-600,

body.light-theme button.bg-sky-700,

body.light-theme button.bg-purple-600,

body.light-theme button.bg-purple-700,

body.light-theme .bg-indigo-600,

body.light-theme .bg-emerald-600,

body.light-theme .bg-rose-600,

body.light-theme .bg-sky-600,

body.light-theme .bg-purple-600,

body.light-theme .btn-primary,

body.light-theme [class*="bg-[#552776]"] {

  color: #ffffff !important;

}



body.light-theme button.bg-indigo-600 *,

body.light-theme button.bg-indigo-700 *,

body.light-theme button.bg-emerald-600 *,

body.light-theme button.bg-emerald-700 *,

body.light-theme button.bg-rose-600 *,

body.light-theme button.bg-rose-700 *,

body.light-theme button.bg-sky-600 *,

body.light-theme button.bg-sky-700 *,

body.light-theme button.bg-purple-600 *,

body.light-theme button.bg-purple-700 *,

body.light-theme .bg-indigo-600 *,

body.light-theme .bg-emerald-600 *,

body.light-theme .bg-rose-600 *,

body.light-theme .bg-sky-600 *,

body.light-theme .bg-purple-600 *,

body.light-theme .btn-primary *,

body.light-theme [class*="bg-[#552776]"] * {

  color: #ffffff !important;

}



/* Deepen pastel colors on light backgrounds for crisp legibility */

body.light-theme .text-amber-200,

body.light-theme .text-amber-300,

body.light-theme .text-amber-400 {

  color: #b45309 !important;

}



body.light-theme .text-sky-200,

body.light-theme .text-sky-300,

body.light-theme .text-sky-400 {

  color: #0369a1 !important;

}



body.light-theme .text-emerald-200,

body.light-theme .text-emerald-300,

body.light-theme .text-emerald-400 {

  color: #047857 !important;

}



body.light-theme .text-teal-200,

body.light-theme .text-teal-300,

body.light-theme .text-teal-400 {

  color: #0f766e !important;

}



body.light-theme .text-rose-200,

body.light-theme .text-rose-300,

body.light-theme .text-rose-400 {

  color: #be123c !important;

}



body.light-theme .text-purple-200,

body.light-theme .text-purple-300,

body.light-theme .text-purple-400 {

  color: #6b21a8 !important;

}



body.light-theme .text-indigo-200,

body.light-theme .text-indigo-300,

body.light-theme .text-indigo-400 {

  color: #4338ca !important;

}



/* Borderless Role Typography in Light Theme */

body.light-theme .role-text-super-admin,

body.light-theme .badge-super-admin,

body.light-theme .user-name-super-admin {

  color: #b45309 !important;

  text-shadow: none !important;

}



body.light-theme .role-text-admin,

body.light-theme .badge-admin,

body.light-theme .user-name-admin {

  color: #7e22ce !important;

  text-shadow: none !important;

}



body.light-theme .role-text-teacher,

body.light-theme .badge-teacher,

body.light-theme .user-name-teacher {

  color: #047857 !important;

  text-shadow: none !important;

}



/* Chat messages text: pure black for readability in light mode */

body.light-theme .chat-msg-item .text-slate-100,

body.light-theme .chat-msg-item .text-slate-200,

body.light-theme .chat-msg-item .text-slate-300,

body.light-theme .msg-text-student,

body.light-theme [class*="msg-text-student"],

body.light-theme .chat-msg-item .msg-text-student,

body.light-theme .chat-msg-item div.msg-text-student,

body.light-theme .chat-msg-item div[class*="msg-text-student"] {

  color: #0f172a !important;

  text-shadow: none !important;

}



body.light-theme .chat-msg-item .bg-slate-800\/90,
body.light-theme .chat-msg-item .bg-slate-800,
body.light-theme .chat-msg-item .bg-slate-900\/95,
body.light-theme .chat-msg-item .bg-slate-900 {
  background-color: rgba(247, 240, 228, 0.98) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
  box-shadow: 0 2px 6px rgba(50, 35, 20, 0.06) !important;
}



body.light-theme .chat-msg-item .bg-gradient-to-r.from-indigo-600.to-indigo-700,

body.light-theme .chat-msg-item .bg-indigo-600 {

  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;

}



body.light-theme .chat-msg-item .bg-gradient-to-r.from-indigo-600.to-indigo-700 *,

body.light-theme .chat-msg-item .bg-indigo-600 * {

  color: #ffffff !important;

}



body.light-theme .text-slate-400 {

  color: #475569 !important;

}



body.light-theme .text-slate-500 {

  color: #64748b !important;

}



body.light-theme input,
body.light-theme textarea,
body.light-theme select {
  background-color: #fbf7f0 !important;
  color: #361c0c !important;
  border-color: rgba(156, 120, 78, 0.35) !important;
}



body.light-theme input::placeholder,

body.light-theme textarea::placeholder {

  color: #94a3b8 !important;

}



body.light-theme input:focus,

body.light-theme textarea:focus {

  background-color: #ffffff !important;

  border-color: #2563eb !important;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;

}



body.light-theme .voice-bubble {

  background-color: #f8fafc !important;

  border-color: #e2e8f0 !important;

}



/* Light Theme Revealed Answers Card */

body.light-theme .revealed-answers-card {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05) !important;

  border-radius: 1.5rem !important;

}



body.light-theme .revealed-answers-card .bg-slate-950\/70,

body.light-theme .revealed-answers-card .bg-slate-950\/60 {

  background-color: #f8fafc !important;

  border-color: #e2e8f0 !important;

}



body.light-theme .submission-card-item {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

  border-radius: 1rem !important;

}



body.light-theme .answer-box-turquoise {

  background-color: #f0fdfa !important;

  border: 1.5px solid #0d9488 !important;

  color: #042f2e !important;

  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.1) !important;

  border-radius: 1rem !important;

}



body.light-theme .answer-box-yellow {

  background-color: #fffbeb !important;

  border: 1.5px solid #d97706 !important;

  color: #451a03 !important;

  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.1) !important;

  border-radius: 1rem !important;

}



body.light-theme .revealed-answers-card .bg-emerald-950\/40 {

  background-color: #ecfdf5 !important;

  border-color: #10b981 !important;

}



body.light-theme .revealed-answers-card .bg-slate-900\/90 {

  background-color: #ffffff !important;

  border-color: #6ee7b7 !important;

  color: #064e3b !important;

}



/* ================= LIGHT THEME: ATTENDANCE SESSION CARD & PASTEL PILLS ================= */

body.light-theme [data-attendance-session] > div,
body.light-theme [id^="msg-"] .max-w-xl.rounded-3xl {
  background: linear-gradient(165deg, rgba(241, 228, 209, 0.98) 0%, rgba(228, 211, 188, 0.97) 100%) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.08), 0 2px 6px -1px rgba(50, 35, 20, 0.02) !important;
  border-radius: 1.5rem !important;
  color: #361c0c !important;
}



body.light-theme [data-attendance-session] .border-slate-800,

body.light-theme [id^="msg-"] .border-slate-800 {

  border-color: #f1f5f9 !important;

}



body.light-theme .bg-emerald-500\/20 {

  background-color: #dcfce7 !important;

  color: #15803d !important;

  border-color: #bbf7d0 !important;

  border-radius: 9999px !important;

}



body.light-theme .bg-sky-500\/20 {

  background-color: #e0f2fe !important;

  color: #0369a1 !important;

  border-color: #bae6fd !important;

  border-radius: 9999px !important;

}



body.light-theme .bg-amber-500\/20,

body.light-theme .bg-amber-500\/10 {

  background-color: #fef3c7 !important;

  color: #b45309 !important;

  border-color: #fde68a !important;

  border-radius: 9999px !important;

}



body.light-theme .bg-rose-500\/20,

body.light-theme .bg-rose-500\/10,

body.light-theme .bg-rose-600\/20 {

  background-color: #fee2e2 !important;

  color: #dc2626 !important;

  border-color: #fecaca !important;

  border-radius: 9999px !important;

}



body.light-theme .bg-purple-950\/60,

body.light-theme .bg-purple-950\/40,

body.light-theme .bg-purple-500\/20 {

  background-color: #f3e8ff !important;

  color: #7e22ce !important;

  border-color: #e9d5ff !important;

  border-radius: 9999px !important;

}



body.light-theme .bg-teal-600\/20 {

  background-color: #ccfbf1 !important;

  color: #0f766e !important;

  border-color: #99f6e4 !important;

  border-radius: 9999px !important;

}



/* ================= LIGHT THEME: MAIN MENU DRAWER & MENUS CONTRAST ================= */

/* Hamburger Button in Header (Borderless & Seamless Tool) */

body.light-theme #mainMenuBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  color: #0f172a !important;

  border-radius: 9999px !important;

}

body.light-theme #mainMenuBtn:hover,

body.light-theme #mainMenuBtn:active {

  background-color: #f1f5f9 !important;

  color: #000000 !important;

}

body.light-theme #mainMenuBtn * {

  color: #0f172a !important;

}

body.light-theme #mainMenuBtn:hover * {

  color: #000000 !important;

}



/* Slide-out Menu Drawer Panel */

body.light-theme #mainMenuDrawerPanel {

  background-color: #ffffff !important;

  border-left: 1px solid #e2e8f0 !important;

  box-shadow: -10px 0 35px -5px rgba(15, 23, 42, 0.1) !important;

}



/* Drawer Header */

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 {

  background-color: #f8fafc !important;

  border-bottom-color: #e2e8f0 !important;

}

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 h3 {

  color: #0f172a !important;

}

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 p {

  color: #64748b !important;

}

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 .w-8.h-8.rounded-xl.bg-amber-400\/15,

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 .w-10.h-10.rounded-2xl.bg-amber-400\/15 {

  background-color: #fef3c7 !important;

  border-color: #fde68a !important;

  color: #b45309 !important;

}

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 button[onclick="closeMainMenuDrawer()"] {

  background-color: #f1f5f9 !important;

  border-color: #e2e8f0 !important;

  color: #475569 !important;

}

body.light-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 button[onclick="closeMainMenuDrawer()"]:hover {

  background-color: #e2e8f0 !important;

  color: #0f172a !important;

}



/* User Profile Preview Card */

body.light-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] {

  background-color: #f8fafc !important;

  border-color: #e2e8f0 !important;

  border-radius: 1.25rem !important;

}

body.light-theme #mainMenuDrawerPanel [onclick*="openMyProfile"]:hover {

  background-color: #f1f5f9 !important;

  border-color: #cbd5e1 !important;

}

body.light-theme #drawerUserName {

  color: #0f172a !important;

}

body.light-theme #drawerUserAvatar {

  background: #f1f5f9 !important;

  border-color: #e2e8f0 !important;

  color: #2563eb !important;

}

body.light-theme #drawerUserRoleBadge {

  background-color: #dbeafe !important;

  border-color: #bfdbfe !important;

  color: #1d4ed8 !important;

  border-radius: 9999px !important;

}

body.light-theme #drawerProfileText,

body.light-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] span.text-amber-300,

body.light-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] span.text-\[\#00f2fe\],

body.light-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] i {

  color: #78350f !important;

}



/* Drawer Section Headers */

body.light-theme #drawerGeneralHeader {

  color: #64748b !important;

  font-weight: 900 !important;

}

body.light-theme #drawerStaffHeader {

  color: #b45309 !important;

  font-weight: 900 !important;

}

body.light-theme #drawerCustomGroupsSection span {

  color: #4338ca !important;

}



/* All Drawer Service & Action Buttons */

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button {

  background-color: #f8fafc !important;

  border-color: #e2e8f0 !important;

  color: #0f172a !important;

  border-radius: 1rem !important;

}

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:hover,

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:active,

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:focus {

  background-color: #f1f5f9 !important;

  border-color: #cbd5e1 !important;

  color: #000000 !important;

}

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button span {

  color: #0f172a !important;

}

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:hover span,

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:active span {

  color: #000000 !important;

}

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button i {
  color: #b45309 !important;
}

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:hover i {

  color: #1d4ed8 !important;

}

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button span.border,

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button span[class*="rounded-lg"],

body.light-theme #mainMenuDrawerPanel .overflow-y-auto button span[class*="rounded-md"] {

  background-color: #f1f5f9 !important;

  border-color: #e2e8f0 !important;

  color: #334155 !important;

  font-weight: 800 !important;

  border-radius: 9999px !important;

}



/* Drawer Settings Accordion Section */

body.light-theme #drawerSettingsSection {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;

  border-radius: 1.25rem !important;

}

body.light-theme #drawerSettingsToggleBtn {

  color: #1e293b !important;

}

body.light-theme #drawerSettingsToggleBtn:hover {

  background-color: #f8fafc !important;

}

body.light-theme #drawerSettingsTitle {

  color: #0f172a !important;

}

body.light-theme #drawerSettingsToggleBtn i {
  color: #b45309 !important;
}

body.light-theme #drawerSettingsBadge {

  background-color: #f1f5f9 !important;

  border-color: #e2e8f0 !important;

  color: #334155 !important;

  border-radius: 9999px !important;

}

body.light-theme #drawerSettingsList {

  background-color: #f8fafc !important;

  border-top-color: #e2e8f0 !important;

}

body.light-theme #drawerSettingsList button {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

  color: #0f172a !important;

}

body.light-theme #drawerSettingsList button:hover {

  background-color: #f1f5f9 !important;

  border-color: #cbd5e1 !important;

}

body.light-theme #drawerSettingsList button span {

  color: #0f172a !important;

}

body.light-theme #drawerSettingsList button .text-\[9px\] {

  color: #64748b !important;

}

body.light-theme #drawerNotificationStatusBadge,

body.light-theme #drawerAllChatNotificationBadge,

body.light-theme #drawerThemeBadge {

  background-color: #f1f5f9 !important;

  color: #1e293b !important;

  border-color: #e2e8f0 !important;

  border-radius: 9999px !important;

}

body.light-theme #drawerSettingsList .bg-slate-900\/60 {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

}

body.light-theme #langBtn_ar,

body.light-theme #langBtn_en,

body.light-theme #fontBtn_small,

body.light-theme #fontBtn_large,

body.light-theme #fontBtn_xl,

body.light-theme #fontBtn_xxl {

  background-color: #f1f5f9 !important;

  color: #1e293b !important;

  border-color: #e2e8f0 !important;

}

body.light-theme #langBtn_ku,

body.light-theme #fontBtn_normal {

  color: #000000 !important;

  font-weight: 900 !important;

}



/* Drawer Footer Logout Button */

body.light-theme #mainMenuDrawerPanel .border-t.border-slate-800\/80 {

  background-color: #f8fafc !important;

  border-top-color: #e2e8f0 !important;

}

body.light-theme #mainMenuDrawerPanel button[onclick*="handleLogout"] {

  background-color: #fee2e2 !important;

  border-color: #fecaca !important;

  color: #dc2626 !important;

  border-radius: 9999px !important;

}

body.light-theme #mainMenuDrawerPanel button[onclick*="handleLogout"]:hover {

  background-color: #fecaca !important;

  border-color: #fca5a5 !important;

  color: #b91c1c !important;

}

body.light-theme #mainMenuDrawerPanel button[onclick*="handleLogout"] * {

  color: #dc2626 !important;

}

body.light-theme #mainMenuDrawerPanel button[onclick*="handleLogout"]:hover * {

  color: #b91c1c !important;

}



/* Specific White Text Preservation on Red Badges */

body.light-theme #mainMenuDrawerPanel .bg-rose-500,

body.light-theme #mainMenuDrawerPanel [class*="bg-rose-500"] {

  color: #ffffff !important;

}



/* Chat Tools & Output Menus */

body.light-theme #publicChatToolsMenu,

body.light-theme #customGroupToolsMenu,

body.light-theme #liveAudioOutputMenu {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1) !important;

  border-radius: 1.25rem !important;

}

body.light-theme #publicChatToolsMenu button,

body.light-theme #customGroupToolsMenu button,

body.light-theme #liveAudioOutputMenu button {

  color: #0f172a !important;

  border-radius: 0.75rem !important;

}

body.light-theme #publicChatToolsMenu button:hover,

body.light-theme #customGroupToolsMenu button:hover,

body.light-theme #liveAudioOutputMenu button:hover {

  background-color: #f1f5f9 !important;

  color: #000000 !important;

}

body.light-theme #publicChatToolsMenu button *,

body.light-theme #customGroupToolsMenu button *,

body.light-theme #liveAudioOutputMenu button * {

  color: #0f172a !important;

}

body.light-theme #publicChatToolsMenu button:hover *,

body.light-theme #customGroupToolsMenu button:hover *,

body.light-theme #liveAudioOutputMenu button:hover * {

  color: #000000 !important;

}



/* Members Sidebar Light Theme Overrides */

body.light-theme #membersSidebar,

body.light-theme #classroomMembersSidebar {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

}

body.light-theme #membersSidebar .border-b.border-slate-800,

body.light-theme #classroomMembersSidebar .border-b.border-slate-800 {

  border-bottom-color: #e2e8f0 !important;

}

body.light-theme #membersSidebar h3,

body.light-theme #classroomMembersSidebar h3 {

  color: #0f172a !important;

}

body.light-theme #membersSidebarCount {

  background-color: #f1f5f9 !important;

  color: #334155 !important;

  border-radius: 9999px !important;

}

body.light-theme #tabMemberStudents,

body.light-theme #tabMemberAdmins {

  color: #475569 !important;

}

body.light-theme #tabMemberStudents:hover,

body.light-theme #tabMemberAdmins:hover {

  color: #0f172a !important;

}



/* Theme Modal in Light Theme */

body.light-theme #themeModal .bg-slate-900 {

  background-color: #ffffff !important;

  border-color: #e2e8f0 !important;

  border-radius: 1.5rem !important;

}

body.light-theme #themeCardsList > div {

  background-color: #f8fafc !important;

  border-color: #e2e8f0 !important;

  border-radius: 1rem !important;

}

body.light-theme #themeCardsList > div:hover {

  background-color: #f1f5f9 !important;

}

body.light-theme #themeCardsList h4 {

  color: #0f172a !important;

}

body.light-theme #themeCardsList p,

body.light-theme #themeCardsList span {

  color: #475569 !important;

}



/* Classroom Navbar (Unified Seamless Dock - NO BORDERS ON ICONS/BUTTONS) */

body.light-theme header {

  background-color: #ffffff !important;

  border-bottom: 1px solid #f1f5f9 !important;

  box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.04) !important;

}



body.light-theme header img[alt*="فێرگەی م. ئازاد"] {

  border: none !important;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;

  outline: none !important;

  --tw-ring-color: transparent !important;

  --tw-ring-shadow: none !important;

}



body.light-theme header h2 {

  color: #0f172a !important;

  background: none !important;

  -webkit-background-clip: unset !important;

  -webkit-text-fill-color: #0f172a !important;

}



body.light-theme header #onlineCountText {

  color: #64748b !important;

}



/* Back to Classrooms Lobby Button (Borderless & Seamless) */

body.light-theme #backToClassroomsLobbyBtn {

  background: transparent !important;

  color: #b45309 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #backToClassroomsLobbyBtn:hover {

  background-color: #fef3c7 !important;

  color: #92400e !important;

}

body.light-theme #backToClassroomsLobbyBtn i {

  color: #d97706 !important;

}



/* Active Room Badge (Seamless inline text, no colorful border box) */

body.light-theme #headerActiveRoomBadge {

  background: transparent !important;

  color: #0369a1 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  font-weight: 800 !important;

}

body.light-theme #headerActiveRoomIcon {

  color: #0284c7 !important;

}



/* Live Lesson Nav Button (Seamless icon & text, no border) */

body.light-theme #liveLessonNavBtn {

  background: transparent !important;

  color: #dc2626 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #liveLessonNavBtn:hover {

  background-color: #fee2e2 !important;

  color: #b91c1c !important;

}

body.light-theme #liveLessonNavBtn i {

  color: #ef4444 !important;

}



/* Dream Interpretation Nav Button (Seamless, no border) */

body.light-theme #dreamAdminNavBtn {

  background: transparent !important;

  color: #6b21a8 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #dreamAdminNavBtn:hover {

  background-color: #f3e8ff !important;

  color: #581c87 !important;

}

body.light-theme #dreamAdminNavBtn i {

  color: #9333ea !important;

}



/* Main / Home Nav Button (Seamless, no border) */

body.light-theme #topExecutiveHubBtn {

  background: transparent !important;

  color: #475569 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #topExecutiveHubBtn:hover {

  background-color: #f1f5f9 !important;

  color: #0f172a !important;

}

body.light-theme #topExecutiveHubBtn i {

  color: #0284c7 !important;

}



/* Theme Toggle Button (Clean icon & text, no border) */

body.light-theme #themeToggleBtn {

  background: transparent !important;

  color: #475569 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #themeToggleBtn:hover {

  background-color: #f1f5f9 !important;

  color: #0f172a !important;

}

body.light-theme #themeToggleBtn #themeToggleIcon {

  color: #d97706 !important;

}



/* Push Notification Button (Seamless, no border) */

body.light-theme #pushNotificationBtn {

  background: transparent !important;

  color: #475569 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #pushNotificationBtn:hover {

  background-color: #f1f5f9 !important;

  color: #0f172a !important;

}

body.light-theme #pushNotificationBtn #pushNotificationIcon {

  color: #0284c7 !important;

}



/* User Profile Pill (Seamless, no border box) */

body.light-theme [onclick="openMyProfile()"] {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme [onclick="openMyProfile()"]:hover {

  background-color: #f1f5f9 !important;

}

body.light-theme [onclick="openMyProfile()"] #headerFullName {

  color: #0f172a !important;

}

body.light-theme [onclick="openMyProfile()"] #headerRoleBadge {

  background-color: #f1f5f9 !important;

  color: #475569 !important;

  border: none !important;

}



/* Leaderboard & Podium Buttons (Seamless, no border) */

body.light-theme #leaderboardDropdownBtn,

body.light-theme [onclick*="openLeaderboardModal"] {

  background: transparent !important;

  color: #b45309 !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}

body.light-theme #leaderboardDropdownBtn:hover,

body.light-theme [onclick*="openLeaderboardModal"]:hover {

  background-color: #fef3c7 !important;

}



/* Chat Input Bar Capsule Dock in Light Theme (Floating White Capsule) */

body.light-theme #classroomChatFormContainer,

body.light-theme .chat-input-container {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1px solid #e2e8f0 !important;

  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08) !important;

  border-radius: 9999px !important;

}



body.light-theme #chatInputBar {

  background-color: transparent !important;

  border-top-color: transparent !important;

  padding: 8px 12px 14px 12px !important;

}



body.light-theme #chatInputBar form {
  background: rgba(247, 240, 228, 0.98) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.08), 0 2px 6px -1px rgba(50, 35, 20, 0.02) !important;
  padding: 4px 8px !important;
  align-items: center !important;
}



body.light-theme #chatInputBar #messageInput {

  background-color: transparent !important;

  border: none !important;

  color: #0f172a !important;

  box-shadow: none !important;

  padding: 8px 12px !important;

}



body.light-theme #chatInputBar #publicChatToolsBtn {
  background-color: rgba(239, 227, 209, 0.95) !important;
  border-color: rgba(156, 120, 78, 0.35) !important;
  color: #b45309 !important;
  border-radius: 9999px !important;
}



body.light-theme #chatInputBar #publicChatToolsBtn:hover {

  background-color: #e0e7ff !important;

  color: #1d4ed8 !important;

}



body.light-theme #chatInputBar #sendBtn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3) !important;
}



/* Members Sidebar Light Theme Tab Pills */

body.light-theme #tabMemberAll,

body.light-theme #tabMemberStudents,

body.light-theme #tabMemberAdmins {

  border-radius: 9999px !important;

}



body.light-theme #tabMemberAll.bg-indigo-600 {

  background-color: #2563eb !important;

  color: #ffffff !important;

}



/* Top Podium Widget (Seamless, No Borders) */

body.light-theme #topPodiumWidget {

  background-color: #ffffff !important;

  border-bottom: 1px solid #f1f5f9 !important;

}



body.light-theme #togglePodiumBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  color: #b45309 !important;

  border-radius: 9999px !important;

}

body.light-theme #togglePodiumBtn:hover {

  background-color: #fef3c7 !important;

}

body.light-theme #togglePodiumBtn i {

  color: #d97706 !important;

}



/* ================= SEPIA THEME (EYE CARE & READING MODE) ================= */

body.sepia-theme {

  background: radial-gradient(ellipse at 50% 0%, #fbf5ea 0%, #f4ebd9 50%, #e8dcbf 100%) !important;

  background-color: #f4ebd9 !important;

  color: #2e2114 !important;

}



body.sepia-theme ::-webkit-scrollbar-track {

  background: rgba(232, 220, 191, 0.7);

}

body.sepia-theme ::-webkit-scrollbar-thumb {

  background: rgba(184, 134, 78, 0.45);

}



body.sepia-theme .bg-slate-950,

body.sepia-theme .bg-slate-950\/95,

body.sepia-theme .bg-slate-950\/90,

body.sepia-theme .bg-slate-950\/85,

body.sepia-theme .bg-slate-950\/80,

body.sepia-theme .bg-slate-950\/70,

body.sepia-theme .bg-slate-950\/60,

body.sepia-theme .bg-slate-950\/50,

body.sepia-theme .bg-slate-950\/40 {

  background-color: #ede2cd !important;

}



body.sepia-theme .bg-slate-900,

body.sepia-theme .bg-slate-900\/95,

body.sepia-theme .bg-slate-900\/90,

body.sepia-theme .bg-slate-900\/80 {

  background-color: #fbf7ee !important;

}



body.sepia-theme .bg-slate-800,

body.sepia-theme .bg-slate-800\/95,

body.sepia-theme .bg-slate-800\/90,

body.sepia-theme .bg-slate-800\/80,

body.sepia-theme .bg-slate-800\/70,

body.sepia-theme .bg-slate-800\/60 {

  background-color: #f2e7d3 !important;

}



body.sepia-theme .border-slate-800,

body.sepia-theme .border-slate-800\/80,

body.sepia-theme .border-slate-800\/60,

body.sepia-theme .border-slate-800\/40,

body.sepia-theme .border-slate-700,

body.sepia-theme .border-slate-700\/80,

body.sepia-theme .border-slate-700\/70,

body.sepia-theme .border-slate-700\/60 {

  border-color: rgba(184, 134, 78, 0.28) !important;

}



body.sepia-theme .text-slate-100 { color: #1e1309 !important; }

body.sepia-theme .text-slate-200 { color: #2e2114 !important; }

body.sepia-theme .text-slate-300 { color: #3d2c1b !important; }

body.sepia-theme .text-slate-400 { color: #6b533e !important; }

body.sepia-theme .text-slate-500 { color: #8c7159 !important; }



body.sepia-theme h1.text-white,

body.sepia-theme h2.text-white,

body.sepia-theme h3.text-white,

body.sepia-theme h4.text-white,

body.sepia-theme p.text-white,

body.sepia-theme .sub-answer-box,

body.sepia-theme div.text-white:not(button *):not([class*="bg-indigo"]):not([class*="bg-emerald"]):not([class*="bg-rose"]):not([class*="bg-sky"]):not([class*="bg-purple"]):not([class*="bg-[#552776]"]),

body.sepia-theme span.text-white:not(button *):not([class*="bg-indigo"]):not([class*="bg-emerald"]):not([class*="bg-rose"]):not([class*="bg-sky"]):not([class*="bg-purple"]):not([class*="bg-[#552776]"]) {

  color: #2e2114 !important;

}



body.sepia-theme button.bg-indigo-600,

body.sepia-theme button.bg-indigo-700,

body.sepia-theme button.bg-emerald-600,

body.sepia-theme button.bg-emerald-700,

body.sepia-theme button.bg-rose-600,

body.sepia-theme button.bg-rose-700,

body.sepia-theme button.bg-sky-600,

body.sepia-theme button.bg-sky-700,

body.sepia-theme button.bg-purple-600,

body.sepia-theme button.bg-purple-700,

body.sepia-theme .bg-indigo-600,

body.sepia-theme .bg-emerald-600,

body.sepia-theme .bg-rose-600,

body.sepia-theme .bg-sky-600,

body.sepia-theme .bg-purple-600,

body.sepia-theme .btn-primary,

body.sepia-theme [class*="bg-[#552776]"] {

  color: #ffffff !important;

}



body.sepia-theme button.bg-indigo-600 *,

body.sepia-theme button.bg-indigo-700 *,

body.sepia-theme button.bg-emerald-600 *,

body.sepia-theme button.bg-emerald-700 *,

body.sepia-theme button.bg-rose-600 *,

body.sepia-theme button.bg-rose-700 *,

body.sepia-theme button.bg-sky-600 *,

body.sepia-theme button.bg-sky-700 *,

body.sepia-theme button.bg-purple-600 *,

body.sepia-theme button.bg-purple-700 *,

body.sepia-theme .bg-indigo-600 *,

body.sepia-theme .bg-emerald-600 *,

body.sepia-theme .bg-rose-600 *,

body.sepia-theme .bg-sky-600 *,

body.sepia-theme .bg-purple-600 *,

body.sepia-theme .btn-primary *,

body.sepia-theme [class*="bg-[#552776]"] * {

  color: #ffffff !important;

}



body.sepia-theme .text-amber-200,

body.sepia-theme .text-amber-300,

body.sepia-theme .text-amber-400 {

  color: #a1550c !important;

}

body.sepia-theme .text-sky-200,

body.sepia-theme .text-sky-300,

body.sepia-theme .text-sky-400 {

  color: #0369a1 !important;

}

body.sepia-theme .text-emerald-200,

body.sepia-theme .text-emerald-300,

body.sepia-theme .text-emerald-400 {

  color: #047857 !important;

}



/* Borderless Role Typography in Sepia Theme */

body.sepia-theme .role-text-super-admin,

body.sepia-theme .badge-super-admin,

body.sepia-theme .user-name-super-admin {

  color: #9a4c0a !important;

  text-shadow: none !important;

}



body.sepia-theme .role-text-admin,

body.sepia-theme .badge-admin,

body.sepia-theme .user-name-admin {

  color: #6b21a8 !important;

  text-shadow: none !important;

}



body.sepia-theme .role-text-teacher,

body.sepia-theme .badge-teacher,

body.sepia-theme .user-name-teacher {

  color: #065f46 !important;

  text-shadow: none !important;

}



body.sepia-theme .chat-msg-item .text-slate-100,

body.sepia-theme .chat-msg-item .text-slate-200,

body.sepia-theme .chat-msg-item .text-slate-300,

body.sepia-theme .msg-text-student,

body.sepia-theme [class*="msg-text-student"],

body.sepia-theme .chat-msg-item .msg-text-student,

body.sepia-theme .chat-msg-item div.msg-text-student {

  color: #24170c !important;

  text-shadow: none !important;

}



body.sepia-theme .chat-msg-item .bg-slate-800\/90,

body.sepia-theme .chat-msg-item .bg-slate-800,

body.sepia-theme .chat-msg-item .bg-slate-900\/95,

body.sepia-theme .chat-msg-item .bg-slate-900 {

  background-color: #fffaf0 !important;

  border-color: #d8c7ad !important;

  color: #24170c !important;

  box-shadow: 0 2px 6px rgba(46, 33, 20, 0.06) !important;

}



body.sepia-theme input,

body.sepia-theme textarea,

body.sepia-theme select {

  background-color: #fffdf7 !important;

  color: #24170c !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

}

body.sepia-theme input::placeholder,

body.sepia-theme textarea::placeholder {

  color: #9c846e !important;

}



body.sepia-theme .voice-bubble {

  background-color: #f2e7d3 !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

}



/* ================= SEPIA THEME: MAIN MENU DRAWER & MENUS CONTRAST ================= */

/* Hamburger Button in Header */

body.sepia-theme #mainMenuBtn {

  background-color: rgba(184, 134, 78, 0.18) !important;

  border-color: rgba(184, 134, 78, 0.45) !important;

  color: #7a3e12 !important;

}

body.sepia-theme #mainMenuBtn:hover,

body.sepia-theme #mainMenuBtn:active {

  background-color: rgba(184, 134, 78, 0.28) !important;

  color: #5a2b0a !important;

}

body.sepia-theme #mainMenuBtn * {

  color: #7a3e12 !important;

}

body.sepia-theme #mainMenuBtn:hover * {

  color: #5a2b0a !important;

}



/* Slide-out Menu Drawer Panel */

body.sepia-theme #mainMenuDrawerPanel {

  background-color: #fbf7ee !important;

  border-left: 1px solid rgba(184, 134, 78, 0.35) !important;

  box-shadow: -10px 0 35px -5px rgba(46, 33, 20, 0.18) !important;

}



/* Drawer Header */

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 {

  background-color: #f2e7d3 !important;

  border-bottom-color: rgba(184, 134, 78, 0.3) !important;

}

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 h3 {

  color: #2e2114 !important;

}

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 p {

  color: #6b533e !important;

}

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 .w-8.h-8.rounded-xl.bg-amber-400\/15,

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 .w-10.h-10.rounded-2xl.bg-amber-400\/15 {

  background-color: rgba(184, 134, 78, 0.18) !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

  color: #7a3e12 !important;

}

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 button[onclick="closeMainMenuDrawer()"] {

  background-color: #e8dcbf !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

  color: #4a3623 !important;

}

body.sepia-theme #mainMenuDrawerPanel .border-b.border-slate-800\/80 button[onclick="closeMainMenuDrawer()"]:hover {

  background-color: #ded0b0 !important;

  color: #1e1309 !important;

}



/* User Profile Preview Card */

body.sepia-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] {

  background-color: #f2e7d3 !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

}

body.sepia-theme #mainMenuDrawerPanel [onclick*="openMyProfile"]:hover {

  background-color: #e8dcbf !important;

  border-color: rgba(184, 134, 78, 0.6) !important;

}

body.sepia-theme #drawerUserName {

  color: #2e2114 !important;

}

body.sepia-theme #drawerUserAvatar {

  background: #ede0cd !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

  color: #7a3e12 !important;

}

body.sepia-theme #drawerUserRoleBadge {

  background-color: rgba(184, 134, 78, 0.18) !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

  color: #7a3e12 !important;

}

body.sepia-theme #drawerProfileText,

body.sepia-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] span.text-amber-300,

body.sepia-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] span.text-\[\#00f2fe\],

body.sepia-theme #mainMenuDrawerPanel [onclick*="openMyProfile"] i {

  color: #7a3e12 !important;

}



/* Drawer Section Headers */

body.sepia-theme #drawerGeneralHeader {

  color: #6b533e !important;

  font-weight: 900 !important;

}

body.sepia-theme #drawerStaffHeader {

  color: #8a4816 !important;

  font-weight: 900 !important;

}

body.sepia-theme #drawerCustomGroupsSection span {

  color: #4c3f91 !important;

}



/* All Drawer Service & Action Buttons */

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button {

  background-color: #f2e7d3 !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

  color: #2e2114 !important;

}

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button:hover,

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button:active,

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button:focus {

  background-color: #e8dcbf !important;

  border-color: rgba(184, 134, 78, 0.6) !important;

  color: #150d06 !important;

}

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button span {

  color: #2e2114 !important;

}

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button:hover span,

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button:active span {

  color: #150d06 !important;

}

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button i {

  color: #7a3e12 !important;

}

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button:hover i {

  color: #5a2b0a !important;

}

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button span.border,

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button span[class*="rounded-lg"],

body.sepia-theme #mainMenuDrawerPanel .overflow-y-auto button span[class*="rounded-md"] {

  background-color: rgba(184, 134, 78, 0.2) !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

  color: #5a2b0a !important;

  font-weight: 800 !important;

}



/* Drawer Settings Accordion Section */

body.sepia-theme #drawerSettingsSection {

  background-color: #f7efe1 !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

  box-shadow: 0 4px 12px rgba(46, 33, 20, 0.08) !important;

}

body.sepia-theme #drawerSettingsToggleBtn {

  color: #5a2b0a !important;

}

body.sepia-theme #drawerSettingsToggleBtn:hover {

  background-color: #ede2cd !important;

}

body.sepia-theme #drawerSettingsTitle {

  color: #5a2b0a !important;

}

body.sepia-theme #drawerSettingsToggleBtn i {

  color: #7a3e12 !important;

}

body.sepia-theme #drawerSettingsBadge {

  background-color: rgba(184, 134, 78, 0.2) !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

  color: #5a2b0a !important;

}

body.sepia-theme #drawerSettingsList {

  background-color: #ede2cd !important;

  border-top-color: rgba(184, 134, 78, 0.35) !important;

}

body.sepia-theme #drawerSettingsList button {

  background-color: #fbf7ee !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

  color: #2e2114 !important;

}

body.sepia-theme #drawerSettingsList button:hover {

  background-color: #f2e7d3 !important;

  border-color: rgba(184, 134, 78, 0.55) !important;

}

body.sepia-theme #drawerSettingsList button span {

  color: #2e2114 !important;

}

body.sepia-theme #drawerSettingsList button .text-\[9px\] {

  color: #6b533e !important;

}

body.sepia-theme #drawerNotificationStatusBadge,

body.sepia-theme #drawerAllChatNotificationBadge,

body.sepia-theme #drawerThemeBadge {

  background-color: #e0d1b4 !important;

  color: #2e2114 !important;

  border-color: #caa87b !important;

}

body.sepia-theme #drawerSettingsList .bg-slate-900\/60 {

  background-color: #fbf7ee !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

}

body.sepia-theme #langBtn_ar,

body.sepia-theme #langBtn_en,

body.sepia-theme #fontBtn_small,

body.sepia-theme #fontBtn_large,

body.sepia-theme #fontBtn_xl,

body.sepia-theme #fontBtn_xxl {

  background-color: #e8dcbf !important;

  color: #2e2114 !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

}

body.sepia-theme #langBtn_ku,

body.sepia-theme #fontBtn_normal {

  color: #000000 !important;

  font-weight: 900 !important;

}



/* Drawer Footer Logout Button */

body.sepia-theme #mainMenuDrawerPanel .border-t.border-slate-800\/80 {

  background-color: #f2e7d3 !important;

  border-top-color: rgba(184, 134, 78, 0.3) !important;

}

body.sepia-theme #mainMenuDrawerPanel button[onclick*="handleLogout"] {

  background-color: rgba(225, 29, 72, 0.12) !important;

  border-color: rgba(225, 29, 72, 0.3) !important;

  color: #9f1239 !important;

}

body.sepia-theme #mainMenuDrawerPanel button[onclick*="handleLogout"]:hover {

  background-color: rgba(225, 29, 72, 0.22) !important;

  border-color: rgba(225, 29, 72, 0.45) !important;

  color: #881337 !important;

}

body.sepia-theme #mainMenuDrawerPanel button[onclick*="handleLogout"] * {

  color: #9f1239 !important;

}

body.sepia-theme #mainMenuDrawerPanel button[onclick*="handleLogout"]:hover * {

  color: #881337 !important;

}



/* Specific White Text Preservation on Red Badges */

body.sepia-theme #mainMenuDrawerPanel .bg-rose-500,

body.sepia-theme #mainMenuDrawerPanel [class*="bg-rose-500"] {

  color: #ffffff !important;

}



/* Chat Tools & Output Menus */

body.sepia-theme #publicChatToolsMenu,

body.sepia-theme #customGroupToolsMenu,

body.sepia-theme #liveAudioOutputMenu {

  background-color: #fbf7ee !important;

  border-color: rgba(184, 134, 78, 0.4) !important;

  box-shadow: 0 10px 25px -5px rgba(46, 33, 20, 0.15) !important;

}

body.sepia-theme #publicChatToolsMenu button,

body.sepia-theme #customGroupToolsMenu button,

body.sepia-theme #liveAudioOutputMenu button {

  color: #2e2114 !important;

}

body.sepia-theme #publicChatToolsMenu button:hover,

body.sepia-theme #customGroupToolsMenu button:hover,

body.sepia-theme #liveAudioOutputMenu button:hover {

  background-color: #ede2cd !important;

  color: #150d06 !important;

}

body.sepia-theme #publicChatToolsMenu button *,

body.sepia-theme #customGroupToolsMenu button *,

body.sepia-theme #liveAudioOutputMenu button * {

  color: #2e2114 !important;

}

body.sepia-theme #publicChatToolsMenu button:hover *,

body.sepia-theme #customGroupToolsMenu button:hover *,

body.sepia-theme #liveAudioOutputMenu button:hover * {

  color: #150d06 !important;

}



/* Members Sidebar Sepia Theme Overrides */

body.sepia-theme #membersSidebar {

  background-color: #fbf7ee !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

}

body.sepia-theme #membersSidebar .border-b.border-slate-800 {

  border-bottom-color: rgba(184, 134, 78, 0.28) !important;

}

body.sepia-theme #membersSidebar h3 {

  color: #2e2114 !important;

}

body.sepia-theme #membersSidebarCount {

  background-color: #ede2cd !important;

  color: #4a3623 !important;

}

body.sepia-theme #tabMemberStudents,

body.sepia-theme #tabMemberAdmins {

  color: #6b533e !important;

}

body.sepia-theme #tabMemberStudents:hover,

body.sepia-theme #tabMemberAdmins:hover {

  color: #2e2114 !important;

}



/* Theme Modal in Sepia Theme */

body.sepia-theme #themeModal .bg-slate-900 {

  background-color: #fbf7ee !important;

  border-color: rgba(184, 134, 78, 0.35) !important;

}

body.sepia-theme #themeCardsList > div {

  background-color: #f2e7d3 !important;

  border-color: rgba(184, 134, 78, 0.3) !important;

}

body.sepia-theme #themeCardsList > div:hover {

  background-color: #e8dcbf !important;

}

body.sepia-theme #themeCardsList h4 {

  color: #2e2114 !important;

}

body.sepia-theme #themeCardsList p,

body.sepia-theme #themeCardsList span {

  color: #6b533e !important;

}



/* ================= EMERALD THEME (ISLAMIC GREEN & FOCUS MODE) ================= */

body.emerald-theme {

  background: radial-gradient(ellipse at 50% 0%, #0c2b21 0%, #061913 50%, #030e0a 100%) !important;

  background-color: #061913 !important;

  color: #e6f7f0 !important;

}



body.emerald-theme ::-webkit-scrollbar-track {

  background: rgba(3, 16, 12, 0.7);

}

body.emerald-theme ::-webkit-scrollbar-thumb {

  background: rgba(52, 211, 153, 0.35);

}



body.emerald-theme .bg-slate-950,

body.emerald-theme .bg-slate-950\/95,

body.emerald-theme .bg-slate-950\/90,

body.emerald-theme .bg-slate-950\/85,

body.emerald-theme .bg-slate-950\/80,

body.emerald-theme .bg-slate-950\/70,

body.emerald-theme .bg-slate-950\/60,

body.emerald-theme .bg-slate-950\/50,

body.emerald-theme .bg-slate-950\/40 {

  background-color: #03100c !important;

}



body.emerald-theme .bg-slate-900,

body.emerald-theme .bg-slate-900\/95,

body.emerald-theme .bg-slate-900\/90,

body.emerald-theme .bg-slate-900\/80 {

  background-color: #08221a !important;

}



body.emerald-theme .bg-slate-800,

body.emerald-theme .bg-slate-800\/95,

body.emerald-theme .bg-slate-800\/90,

body.emerald-theme .bg-slate-800\/80,

body.emerald-theme .bg-slate-800\/70,

body.emerald-theme .bg-slate-800\/60 {

  background-color: #0e3025 !important;

}



body.emerald-theme .border-slate-800,

body.emerald-theme .border-slate-800\/80,

body.emerald-theme .border-slate-800\/60,

body.emerald-theme .border-slate-800\/40,

body.emerald-theme .border-slate-700,

body.emerald-theme .border-slate-700\/80,

body.emerald-theme .border-slate-700\/70,

body.emerald-theme .border-slate-700\/60 {

  border-color: rgba(52, 211, 153, 0.22) !important;

}



body.emerald-theme .text-slate-100 { color: #f0fdf4 !important; }

body.emerald-theme .text-slate-200 { color: #dcfce7 !important; }

body.emerald-theme .text-slate-300 { color: #bbf7d0 !important; }

body.emerald-theme .text-slate-400 { color: #6ee7b7 !important; }

body.emerald-theme .text-slate-500 { color: #34d399 !important; }



/* Borderless Role Typography in Emerald Theme */

body.emerald-theme .role-text-super-admin,

body.emerald-theme .badge-super-admin,

body.emerald-theme .user-name-super-admin {

  color: #fcd34d !important;

  text-shadow: 0 0 8px rgba(252, 211, 77, 0.4) !important;

}



body.emerald-theme .role-text-admin,

body.emerald-theme .badge-admin,

body.emerald-theme .user-name-admin {

  color: #d8b4fe !important;

  text-shadow: 0 0 8px rgba(216, 180, 254, 0.4) !important;

}



body.emerald-theme .role-text-teacher,

body.emerald-theme .badge-teacher,

body.emerald-theme .user-name-teacher {

  color: #6ee7b7 !important;

  text-shadow: 0 0 8px rgba(110, 231, 183, 0.4) !important;

}



body.emerald-theme .chat-msg-item .text-slate-100,

body.emerald-theme .chat-msg-item .text-slate-200,

body.emerald-theme .chat-msg-item .text-slate-300,

body.emerald-theme .msg-text-student,

body.emerald-theme [class*="msg-text-student"],

body.emerald-theme .chat-msg-item .msg-text-student,

body.emerald-theme .chat-msg-item div.msg-text-student {

  color: #f0fdf4 !important;

}



body.emerald-theme .chat-msg-item .bg-slate-800\/90,

body.emerald-theme .chat-msg-item .bg-slate-800,

body.emerald-theme .chat-msg-item .bg-slate-900\/95,

body.emerald-theme .chat-msg-item .bg-slate-900 {

  background-color: #09261d !important;

  border-color: rgba(52, 211, 153, 0.28) !important;

  color: #e6f7f0 !important;

}



body.emerald-theme input,

body.emerald-theme textarea,

body.emerald-theme select {

  background-color: #061b14 !important;

  color: #f0fdf4 !important;

  border-color: rgba(52, 211, 153, 0.35) !important;

}

body.emerald-theme input::placeholder,

body.emerald-theme textarea::placeholder {

  color: #059669 !important;

}



body.emerald-theme .voice-bubble {

  background-color: #0e3025 !important;

  border-color: rgba(52, 211, 153, 0.3) !important;

}



/* ================= OLED THEME (PITCH BLACK & BATTERY SAVER MODE) ================= */

body.oled-theme {

  background: #000000 !important;

  background-color: #000000 !important;

  color: #f5f5f5 !important;

}



body.oled-theme ::-webkit-scrollbar-track {

  background: #000000;

}

body.oled-theme ::-webkit-scrollbar-thumb {

  background: #333333;

}



body.oled-theme .bg-slate-950,

body.oled-theme .bg-slate-950\/95,

body.oled-theme .bg-slate-950\/90,

body.oled-theme .bg-slate-950\/85,

body.oled-theme .bg-slate-950\/80,

body.oled-theme .bg-slate-950\/70,

body.oled-theme .bg-slate-950\/60,

body.oled-theme .bg-slate-950\/50,

body.oled-theme .bg-slate-950\/40 {

  background-color: #000000 !important;

}



body.oled-theme .bg-slate-900,

body.oled-theme .bg-slate-900\/95,

body.oled-theme .bg-slate-900\/90,

body.oled-theme .bg-slate-900\/80 {

  background-color: #080808 !important;

}



body.oled-theme .bg-slate-800,

body.oled-theme .bg-slate-800\/95,

body.oled-theme .bg-slate-800\/90,

body.oled-theme .bg-slate-800\/80,

body.oled-theme .bg-slate-800\/70,

body.oled-theme .bg-slate-800\/60 {

  background-color: #121212 !important;

}



body.oled-theme .border-slate-800,

body.oled-theme .border-slate-800\/80,

body.oled-theme .border-slate-800\/60,

body.oled-theme .border-slate-800\/40,

body.oled-theme .border-slate-700,

body.oled-theme .border-slate-700\/80,

body.oled-theme .border-slate-700\/70,

body.oled-theme .border-slate-700\/60 {

  border-color: rgba(255, 255, 255, 0.16) !important;

}



body.oled-theme .text-slate-100 { color: #ffffff !important; }

body.oled-theme .text-slate-200 { color: #f0f0f0 !important; }

body.oled-theme .text-slate-300 { color: #d6d6d6 !important; }

body.oled-theme .text-slate-400 { color: #aaaaaa !important; }

body.oled-theme .text-slate-500 { color: #777777 !important; }



/* Borderless Role Typography in OLED Theme */

body.oled-theme .role-text-super-admin,

body.oled-theme .badge-super-admin,

body.oled-theme .user-name-super-admin {

  color: #fbbf24 !important;

  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5) !important;

}



body.oled-theme .role-text-admin,

body.oled-theme .badge-admin,

body.oled-theme .user-name-admin {

  color: #c084fc !important;

  text-shadow: 0 0 10px rgba(192, 132, 252, 0.5) !important;

}



body.oled-theme .role-text-teacher,

body.oled-theme .badge-teacher,

body.oled-theme .user-name-teacher {

  color: #34d399 !important;

  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5) !important;

}



body.oled-theme .chat-msg-item .text-slate-100,

body.oled-theme .chat-msg-item .text-slate-200,

body.oled-theme .chat-msg-item .text-slate-300,

body.oled-theme .msg-text-student,

body.oled-theme [class*="msg-text-student"],

body.oled-theme .chat-msg-item .msg-text-student,

body.oled-theme .chat-msg-item div.msg-text-student {

  color: #ffffff !important;

}



body.oled-theme .chat-msg-item .bg-slate-800\/90,

body.oled-theme .chat-msg-item .bg-slate-800,

body.oled-theme .chat-msg-item .bg-slate-900\/95,

body.oled-theme .chat-msg-item .bg-slate-900 {

  background-color: #0b0b0b !important;

  border-color: rgba(255, 255, 255, 0.16) !important;

  color: #f5f5f5 !important;

}



body.oled-theme input,

body.oled-theme textarea,

body.oled-theme select {

  background-color: #050505 !important;

  color: #ffffff !important;

  border-color: rgba(255, 255, 255, 0.22) !important;

}

body.oled-theme input::placeholder,

body.oled-theme textarea::placeholder {

  color: #666666 !important;

}



body.oled-theme .voice-bubble {

  background-color: #121212 !important;

  border-color: rgba(255, 255, 255, 0.18) !important;

}



/* ================= MATTE BLACK THEME (LUXURY GRAPHITE / NON-REFLECTIVE) ================= */

body.matte-theme {

  background: #141416 !important;

  background-color: #141416 !important;

  color: #f4f4f5 !important;

}



body.matte-theme ::-webkit-scrollbar-track {

  background: #121214;

}

body.matte-theme ::-webkit-scrollbar-thumb {

  background: #2e2e34;

}



body.matte-theme .bg-slate-950,

body.matte-theme .bg-slate-950\/95,

body.matte-theme .bg-slate-950\/90,

body.matte-theme .bg-slate-950\/85,

body.matte-theme .bg-slate-950\/80,

body.matte-theme .bg-slate-950\/70,

body.matte-theme .bg-slate-950\/60,

body.matte-theme .bg-slate-950\/50,

body.matte-theme .bg-slate-950\/40 {

  background-color: #101012 !important;

}



body.matte-theme .bg-slate-900,

body.matte-theme .bg-slate-900\/95,

body.matte-theme .bg-slate-900\/90,

body.matte-theme .bg-slate-900\/80 {

  background-color: #18181b !important;

}



body.matte-theme .bg-slate-800,

body.matte-theme .bg-slate-800\/95,

body.matte-theme .bg-slate-800\/90,

body.matte-theme .bg-slate-800\/80,

body.matte-theme .bg-slate-800\/70,

body.matte-theme .bg-slate-800\/60 {

  background-color: #212125 !important;

}



body.matte-theme .border-slate-800,

body.matte-theme .border-slate-800\/80,

body.matte-theme .border-slate-800\/60,

body.matte-theme .border-slate-800\/40,

body.matte-theme .border-slate-700,

body.matte-theme .border-slate-700\/80,

body.matte-theme .border-slate-700\/70,

body.matte-theme .border-slate-700\/60 {

  border-color: rgba(255, 255, 255, 0.1) !important;

}



body.matte-theme .text-slate-100 { color: #f4f4f5 !important; }

body.matte-theme .text-slate-200 { color: #e4e4e7 !important; }

body.matte-theme .text-slate-300 { color: #d4d4d8 !important; }

body.matte-theme .text-slate-400 { color: #a1a1aa !important; }

body.matte-theme .text-slate-500 { color: #71717a !important; }



/* Borderless Role Typography in Matte Black Theme */

body.matte-theme .role-text-super-admin,

body.matte-theme .badge-super-admin,

body.matte-theme .user-name-super-admin {

  color: #f59e0b !important;

  text-shadow: 0 0 8px rgba(245, 158, 11, 0.35) !important;

}



body.matte-theme .role-text-admin,

body.matte-theme .badge-admin,

body.matte-theme .user-name-admin {

  color: #c084fc !important;

  text-shadow: 0 0 8px rgba(192, 132, 252, 0.35) !important;

}



body.matte-theme .role-text-teacher,

body.matte-theme .badge-teacher,

body.matte-theme .user-name-teacher {

  color: #34d399 !important;

  text-shadow: 0 0 8px rgba(52, 211, 153, 0.35) !important;

}



body.matte-theme .chat-msg-item .text-slate-100,

body.matte-theme .chat-msg-item .text-slate-200,

body.matte-theme .chat-msg-item .text-slate-300,

body.matte-theme .msg-text-student,

body.matte-theme [class*="msg-text-student"],

body.matte-theme .chat-msg-item .msg-text-student,

body.matte-theme .chat-msg-item div.msg-text-student {

  color: #f4f4f5 !important;

}



body.matte-theme .chat-msg-item .bg-slate-800\/90,

body.matte-theme .chat-msg-item .bg-slate-800,

body.matte-theme .chat-msg-item .bg-slate-900\/95,

body.matte-theme .chat-msg-item .bg-slate-900 {

  background-color: #1c1c20 !important;

  border-color: rgba(255, 255, 255, 0.1) !important;

  color: #f4f4f5 !important;

}



body.matte-theme input,

body.matte-theme textarea,

body.matte-theme select {

  background-color: #17171a !important;

  color: #f4f4f5 !important;

  border-color: rgba(255, 255, 255, 0.15) !important;

}

body.matte-theme input::placeholder,

body.matte-theme textarea::placeholder {

  color: #71717a !important;

}



body.matte-theme .voice-bubble {

  background-color: #1f1f24 !important;

  border-color: rgba(255, 255, 255, 0.12) !important;

}



/* Strict Avatar Privacy: No user can click, zoom, drag, or bring forward another user's avatar */

.no-zoom-avatar {

  pointer-events: none !important;

  user-select: none !important;

  -webkit-user-select: none !important;

  -webkit-user-drag: none !important;

  -webkit-touch-callout: none !important;

  cursor: default !important;

}



/* Telegram-style Unread Messages Divider */

.chat-unread-divider {

  position: relative;

  width: 100%;

}

.chat-unread-divider span {

  transition: all 0.2s ease;

}

body.light-theme .chat-unread-divider span {

  background-color: #f1f5f9 !important;

  border-color: #cbd5e1 !important;

  color: #475569 !important;

}

body.light-theme .chat-unread-divider div {

  background-color: #cbd5e1 !important;

}

body.sepia-theme .chat-unread-divider span {

  background-color: #e4d4ba !important;

  border-color: #b8864e !important;

  color: #78350f !important;

}

body.sepia-theme .chat-unread-divider div {

  background-color: rgba(184, 134, 78, 0.4) !important;

}

body.emerald-theme .chat-unread-divider span {

  background-color: #0c2b21 !important;

  border-color: #059669 !important;

  color: #6ee7b7 !important;

}

body.emerald-theme .chat-unread-divider div {

  background-color: rgba(16, 185, 129, 0.4) !important;

}

body.oled-theme .chat-unread-divider span {

  background-color: #121212 !important;

  border-color: #333333 !important;

  color: #38bdf8 !important;

}

body.oled-theme .chat-unread-divider div {

  background-color: rgba(255, 255, 255, 0.2) !important;

}

body.matte-theme .chat-unread-divider span {

  background-color: #1c1c20 !important;

  border-color: rgba(255, 255, 255, 0.15) !important;

  color: #e4e4e7 !important;

}

body.matte-theme .chat-unread-divider div {

  background-color: rgba(255, 255, 255, 0.15) !important;

}



/* ================= MOBILE OPTIMIZATIONS ================= */

.scrollbar-none::-webkit-scrollbar {

  display: none;

}

.scrollbar-none {

  -ms-overflow-style: none;

  scrollbar-width: none;

}



* {

  -webkit-tap-highlight-color: transparent;

}



.overflow-y-auto {

  -webkit-overflow-scrolling: touch;

}



#mainApp {

  height: 100% !important;

  height: 100dvh !important;

  max-height: 100dvh !important;

  width: 100%;

  display: flex;

  flex-direction: column;

  overflow: hidden !important;

  position: relative;

}



#mainApp.hidden,

body.in-landing #mainApp {

  display: none !important;

}



main {

  min-height: 0 !important;

}



#messagesContainer {

  min-height: 0 !important;

  flex: 1 1 0% !important;

}



#chatInputBar {

  padding-bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;

  z-index: 20;

}



@media (max-width: 768px) {

  input[type="text"],

  input[type="password"],

  input[type="number"],

  input[type="datetime-local"],

  textarea,

  select {

    font-size: 16px !important;

  }

}



/* ================= DYNAMIC FONT SCALING (NUMERIC 1-6 & EXPANDED) ================= */

html {

  font-size: 14px;

  --app-font-multiplier: 1;

}

html[data-font-size="1"],

html[data-font-size="small"] {

  font-size: 12px;

  --app-font-multiplier: 0.9;

}

html[data-font-size="2"],

html[data-font-size="normal"] {

  font-size: 14px;

  --app-font-multiplier: 1;

}

html[data-font-size="3"] {

  font-size: 16.5px;

  --app-font-multiplier: 1.12;

}

html[data-font-size="4"],

html[data-font-size="large"] {

  font-size: 19.5px;

  --app-font-multiplier: 1.25;

}

html[data-font-size="5"],

html[data-font-size="xl"] {

  font-size: 23px;

  --app-font-multiplier: 1.38;

}

html[data-font-size="6"],

html[data-font-size="xxl"] {

  font-size: 27px;

  --app-font-multiplier: 1.5;

}

.chat-msg-item {

  font-size: calc(1rem * var(--app-font-multiplier, 1));

  line-height: 1.55;

}



/* ================= STAR & PROGRESSION BADGES ================= */

.star-badge-yellow {

  background: rgba(245, 158, 11, 0.15);

  border: 1px solid rgba(245, 158, 11, 0.4);

  color: #fbbf24;

}

.star-badge-green {

  background: rgba(16, 185, 129, 0.15);

  border: 1px solid rgba(16, 185, 129, 0.45);

  color: #34d399;

  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);

}

.star-badge-purple {

  background: rgba(168, 85, 247, 0.15);

  border: 1px solid rgba(168, 85, 247, 0.45);

  color: #c084fc;

  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);

}

.star-badge-trophy {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));

  border: 1px solid rgba(245, 158, 11, 0.6);

  color: #fef08a;

  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);

}



/* ================= GROUP MENTION ALL ALERT ================= */

.msg-mention-all {

  animation: mentionPulse 2s ease-in-out infinite alternate;

  border: 2px solid #f59e0b !important;

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.95)) !important;

}

@keyframes mentionPulse {

  0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.25); }

  100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.65); }

}



/* ================= LOGO POPUP 3D ANIMATION ================= */

.logo-popup-zoom {

  animation: logoZoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

}

@keyframes logoZoomIn {

  0% { transform: scale(0.65) translateY(-25px); opacity: 0; }

  100% { transform: scale(1) translateY(0); opacity: 1; }

}



/* ================= DREAM VOICE HIGHLIGHT ================= */

.dream-has-voice-card {

  border: 1.5px solid rgba(16, 185, 129, 0.7) !important;

  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.95)) !important;

  box-shadow: 0 0 14px rgba(16, 185, 129, 0.22) !important;

}



/* ================= QUESTION ANSWER EVALUATION STYLES ================= */

.answer-box-turquoise {

  background-color: rgba(4, 47, 46, 0.85) !important;

  border: 2px solid #2dd4bf !important;

  color: #ccfbf1 !important;

  box-shadow: 0 0 16px rgba(45, 212, 191, 0.25) !important;

}



.answer-box-yellow {

  background-color: rgba(69, 26, 3, 0.85) !important;

  border: 2px solid #f59e0b !important;

  color: #fef3c7 !important;

  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;

}



.eval-corner-star {

  position: absolute;

  top: -12px;

  left: 12px;

  background: linear-gradient(135deg, #f59e0b, #d97706);

  border: 2px solid #5eead4;

  color: #022c22;

  font-weight: 900;

  font-size: 13px;

  padding: 2px 10px;

  border-radius: 9999px;

  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4), 0 2px 6px rgba(0,0,0,0.4);

  display: inline-flex;

  align-items: center;

  gap: 4px;

  z-index: 10;

  animation: starPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

}



.eval-corner-wrong {

  position: absolute;

  top: -12px;

  left: 12px;

  background: linear-gradient(135deg, #e11d48, #be123c);

  border: 2px solid #f59e0b;

  color: #ffffff;

  font-weight: 900;

  font-size: 12px;

  padding: 2px 8px;

  border-radius: 9999px;

  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), 0 2px 6px rgba(0,0,0,0.4);

  display: inline-flex;

  align-items: center;

  gap: 4px;

  z-index: 10;

  animation: starPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

}



@keyframes starPopIn {

  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }

  70% { transform: scale(1.15) rotate(5deg); }

  100% { transform: scale(1) rotate(0deg); opacity: 1; }

}



/* AI Advisor Morphing Badge Button */

.advisor-morph-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  height: 26px;

  line-height: 1;

  font-weight: 900;

  cursor: pointer;

  white-space: nowrap;

  vertical-align: middle;

  border: 1.5px solid #e11d48;

  animation: advisorMorphPulse 7s ease-in-out infinite;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  user-select: none;

  outline: none;

}



.advisor-morph-badge:hover {

  animation-play-state: paused;

  transform: scale(1.06);

}



.advisor-morph-icon {

  font-size: 11px;

  line-height: 1;

  transition: transform 0.3s ease;

}



.advisor-morph-text {

  font-size: 10px;

  font-weight: 900;

  letter-spacing: -0.2px;

  overflow: hidden;

  display: inline-block;

  white-space: nowrap;

  animation: advisorTextMorph 7s ease-in-out infinite;

}



@keyframes advisorMorphPulse {

  0%, 38% {

    padding: 0 7px;

    background: rgba(225, 29, 72, 0.12);

    border-color: rgba(244, 63, 94, 0.7);

    color: #ff385c;

    box-shadow: 0 0 6px rgba(225, 29, 72, 0.25);

    border-radius: 9999px;

  }

  44%, 78% {

    padding: 0 9px;

    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);

    border-color: #fda4af;

    color: #ffffff;

    box-shadow: 0 0 12px rgba(225, 29, 72, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4);

    border-radius: 8px;

  }

  84%, 100% {

    padding: 0 7px;

    background: rgba(225, 29, 72, 0.12);

    border-color: rgba(244, 63, 94, 0.7);

    color: #ff385c;

    box-shadow: 0 0 6px rgba(225, 29, 72, 0.25);

    border-radius: 9999px;

  }

}



@keyframes advisorTextMorph {

  0%, 38% {

    max-width: 0;

    opacity: 0;

    margin-right: 0;

    transform: translateX(4px);

  }

  44%, 78% {

    max-width: 70px;

    opacity: 1;

    margin-right: 5px;

    transform: translateX(0);

  }

  84%, 100% {

    max-width: 0;

    opacity: 0;

    margin-right: 0;

    transform: translateX(4px);

  }

}



/* ================= FAINT MESSAGE TIME & DATE BADGE (REVEALED ON TAP) ================= */

.msg-faint-time {

  transition: all 0.2s ease;

  user-select: none;

}

.msg-faint-time:hover {

  opacity: 1 !important;

  text-shadow: 0 0 6px rgba(165, 180, 252, 0.4);

}

body.light-theme .msg-faint-time {

  color: #64748b !important;

}

body.sepia-theme .msg-faint-time {

  color: #78624f !important;

}



/* ================= LIBRARY COMPACT BOOKSHELF STYLES ================= */

.line-clamp-2 {

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

}

.no-scrollbar::-webkit-scrollbar {

  display: none;

}

.no-scrollbar {

  -ms-overflow-style: none;

  scrollbar-width: none;

}



/* ================= CUSTOM PRIVATE GROUP CHATS & RADIANT DOT ================= */

@keyframes radiant-pulse {

  0% {

    transform: scale(0.9);

    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.8), 0 0 10px rgba(52, 211, 153, 0.9);

  }

  60% {

    transform: scale(1.2);

    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0), 0 0 18px rgba(52, 211, 153, 0.6);

  }

  100% {

    transform: scale(0.9);

    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0), 0 0 10px rgba(52, 211, 153, 0.9);

  }

}



.radiant-dot {

  display: inline-block;

  width: 9px;

  height: 9px;

  border-radius: 9999px;

  background-color: #34d399;

  animation: radiant-pulse 1.8s infinite ease-in-out;

  flex-shrink: 0;

}



.advisor-chat-card {

  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);

  border: 1px solid rgba(129, 140, 248, 0.35);

  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.25);

}













/* ============================================================

   FERGA ACADEMY CUSTOM LANDING PAGE & TWEAKS

   ============================================================ */



/* Body state toggling */

body.in-landing {

  overflow-y: auto !important;

  overflow-x: hidden !important;

  position: relative !important;

  height: auto !important;

  min-height: 100vh !important;

}



body.in-app {

  overflow: hidden !important;

  height: 100vh !important;

  position: fixed !important;

  inset: 0 !important;

}



/* Landing Page Navbar & Header */

.landing-header {

  background: rgba(7, 10, 24, 0.85);

  backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(245, 158, 11, 0.15);

}



/* Dialect Selector Dropdown */

#dialectDropdownMenu {

  z-index: 9999 !important;

  background: #0c1228 !important;

  border: 1px solid rgba(245, 158, 11, 0.3) !important;

  border-radius: 1.25rem !important;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75) !important;

  backdrop-filter: blur(20px) !important;

  min-width: 220px !important;

}



/* Reactions Bar Enhancement (Fix for Image 4 & Image 5) */

.reaction-bar-popup {

  padding: 8px 14px !important;

  background: rgba(12, 18, 38, 0.95) !important;

  backdrop-filter: blur(14px) !important;

  border: 1px solid rgba(245, 158, 11, 0.35) !important;

  border-radius: 9999px !important;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;

  display: flex !important;

  align-items: center !important;

  gap: 12px !important;

  transition: opacity 0.25s ease, transform 0.25s ease !important;

  pointer-events: auto !important;

}



.reaction-btn-item {

  transform: scale(1);

  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);

  cursor: pointer;

  padding: 4px;

}

.reaction-btn-item:hover, .reaction-btn-item:active {

  transform: scale(1.35);

}



/* Remove unwanted bottom cyan line (Image 5 fix) */

.no-bottom-line, [data-card-footer] {

  border-bottom: none !important;

  box-shadow: none !important;

}



/* Announcements Slider / Cards */

.announcement-card {

  background: rgba(14, 21, 42, 0.65);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(245, 158, 11, 0.18);

  border-radius: 1.5rem;

  transition: all 0.3s ease;

}

.announcement-card:hover {

  border-color: rgba(245, 158, 11, 0.45);

  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

}



/* New Post Admin Placeholder Card (Image 1 fix) */

.admin-new-post-card {

  border: 2px dashed rgba(245, 158, 11, 0.35);

  border-radius: 1.5rem;

  background: rgba(12, 17, 34, 0.4);

  transition: all 0.25s ease;

  cursor: pointer;

}

.admin-new-post-card:hover {

  border-color: rgba(245, 158, 11, 0.8);

  background: rgba(245, 158, 11, 0.05);

  transform: scale(1.01);

}





/* ============================================================

   ORIGINAL CYBER-SAPPHIRE & OBSIDIAN BRANDING EFFECTS

   ============================================================ */



/* Animated Sliding & Emerging "پریاسکەی عەبدی" Logo from behind emblem */

@keyframes pryaskaUnderLogo {

  /* 0% to 35.7% (3.0s): Completely hidden inside/behind logo */

  0%, 35.7% {

    opacity: 0;

    transform: translateX(45px) scale(0.65);

    filter: blur(8px);

    pointer-events: none;

    clip-path: inset(0 0 0 100%);

  }

  /* 35.7% to 47.6% (1.0s): Smoothly blossoms and emerges from inside the emblem */

  39% {

    opacity: 0.4;

    filter: blur(4px);

  }

  47.6% {

    opacity: 1;

    transform: translateX(0) scale(1);

    filter: blur(0px);

    pointer-events: auto;

    clip-path: inset(0 0 0 0%);

  }

  /* 47.6% to 95.2% (4.0s): Stays visible with crystal clear presence */

  95.2% {

    opacity: 1;

    transform: translateX(0) scale(1);

    filter: blur(0px);

    pointer-events: auto;

    clip-path: inset(0 0 0 0%);

  }

  /* 95.2% to 100% (0.4s): Melts and retracts smoothly back inside the logo */

  98% {

    opacity: 0.3;

    filter: blur(4px);

  }

  100% {

    opacity: 0;

    transform: translateX(45px) scale(0.65);

    filter: blur(8px);

    pointer-events: none;

    clip-path: inset(0 0 0 100%);

  }

}



.logo-text-animated {

  display: inline-block;

  animation: pryaskaUnderLogo 8.4s cubic-bezier(0.25, 1, 0.5, 1) infinite !important;

  transform-origin: right center;

  will-change: transform, opacity, filter, clip-path;

}



/* Primary Cyan-to-Indigo Gradient Button */

.btn-primary-gradient {

  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;

  color: #050711 !important;

  font-weight: 800 !important;

  border-radius: 0.85rem;

  box-shadow: 0 0 22px rgba(245, 158, 11, 0.32);

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  display: inline-flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

}

.btn-primary-gradient:hover {

  transform: translateY(-2px);

  box-shadow: 0 0 30px rgba(245, 158, 11, 0.55);

  filter: brightness(1.08);

}

.btn-primary-gradient:active {

  transform: translateY(0);

}



.btn-secondary-glass {

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #f8fafc;

  border-radius: 0.85rem;

  transition: all 0.2s ease;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

}

.btn-secondary-glass:hover {

  background: rgba(245, 158, 11, 0.1);

  border-color: rgba(245, 158, 11, 0.4);

  color: #fef08a;

}



#landingHeader {

  position: fixed !important;

  top: 0 !important;

  left: 0 !important;

  right: 0 !important;

  width: 100% !important;

  z-index: 45 !important;

}



.glass-header {

  background: rgba(5, 7, 17, 0.92) !important;

  backdrop-filter: blur(20px) !important;

  -webkit-backdrop-filter: blur(20px) !important;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;

}



.glass-card {

  background: rgba(12, 17, 34, 0.75);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 1.25rem;

  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

}

.glass-card:hover {

  border-color: rgba(245, 158, 11, 0.35);

  box-shadow: 0 14px 35px -10px rgba(245, 158, 11, 0.18);

}



/* ============================================================

   Announcements Sequential Carousel (دیزاین و جوڵەی مۆدێرن و پڕۆفیشناڵ)

   ============================================================ */

.ann-content-wrapper {

  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease, filter 0.38s ease;

  will-change: transform, opacity, filter;

}



/* Forward Exit: slide out smoothly */

.ann-slide-out-left {

  transform: translateX(-42px) scale(0.96) !important;

  opacity: 0 !important;

  filter: blur(5px) !important;

}



/* Forward Entrance: slide in smoothly */

.ann-slide-in-right {

  animation: annSlideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;

}



/* Backward Exit: slide out smoothly */

.ann-slide-out-right {

  transform: translateX(42px) scale(0.96) !important;

  opacity: 0 !important;

  filter: blur(5px) !important;

}



/* Backward Entrance: slide in smoothly */

.ann-slide-in-left {

  animation: annSlideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;

}



@keyframes annSlideInRight {

  0% {

    transform: translateX(48px) scale(0.96);

    opacity: 0;

    filter: blur(6px);

  }

  100% {

    transform: translateX(0) scale(1);

    opacity: 1;

    filter: blur(0);

  }

}



@keyframes annSlideInLeft {

  0% {

    transform: translateX(-48px) scale(0.96);

    opacity: 0;

    filter: blur(6px);

  }

  100% {

    transform: translateX(0) scale(1);

    opacity: 1;

    filter: blur(0);

  }

}



.landing-ann-card.ann-pulsing {

  box-shadow: 0 20px 48px -10px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;

  border-right-color: #fbbf24 !important;

}



/* Top Progress Timer Line */

.ann-progress-track {

  opacity: 0.85;

}



.ann-progress-bar {

  width: 0%;

  transform-origin: right center;

  transition: width 0.1s linear;

}



.ann-progress-bar.animate-progress {

  animation: annProgressFill 4s linear forwards;

}



@keyframes annProgressFill {

  0% { width: 0%; }

  100% { width: 100%; }

}



.ann-dot {

  width: 8px;

  height: 8px;

  border-radius: 9999px;

  background: rgba(255, 255, 255, 0.22);

  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  cursor: pointer;

  display: inline-block;

}



.ann-dot:hover {

  background: rgba(255, 255, 255, 0.5);

  transform: scale(1.15);

}



.ann-dot.active {

  width: 26px;

  background: linear-gradient(90deg, #38bdf8 0%, #fbbf24 100%);

  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);

  border-radius: 999px;

}



body.light-mode .ann-dot {

  background: rgba(148, 163, 184, 0.45);

}



body.light-mode .ann-dot:hover {

  background: rgba(100, 116, 139, 0.7);

}



body.light-mode .ann-dot.active {

  background: linear-gradient(90deg, #0284c7 0%, #d97706 100%);

  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);

}



body.light-mode .ann-dot.active {

  background: #0284c7;

  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);

}



/* Hide Announcement Bottom Progress Bar Line per user request */

#annProgressBar,

.ann-progress-bar {

  display: none !important;

  opacity: 0 !important;

  visibility: hidden !important;

  height: 0 !important;

}



/* Dreams Gateway Card Styling */

#dreamsGatewaySection .glass-card {

  border-color: rgba(245, 158, 11, 0.25);

}



#dreamsGatewaySection .glass-card:hover {

  border-color: rgba(245, 158, 11, 0.5) !important;

  box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.2) !important;

}



.hero-compact-card {

  margin-top: -0.25rem;

}



/* ============================================================

   EYE-FRIENDLY LIGHT MODE

   Soft Alabaster & Cyan Glow - Comfortable on the eyes

   ============================================================ */



body.light-mode,

body.light-theme {

  background-color: #f8fafc !important;

  background: #f8fafc !important;

  background-image: 

    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),

    radial-gradient(circle at 85% 25%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),

    radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%) !important;

  color: #0f172a !important;

}



body.light-mode #landingPage,

body.light-theme #landingPage {

  background-color: transparent !important;

  background: transparent !important;

  color: #0f172a !important;

}



/* Header in Light Mode */

body.light-mode .glass-header,

body.light-theme .glass-header {

  background: rgba(255, 255, 255, 0.94) !important;

  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;

  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;

}



/* Glass Cards in Light Mode */

body.light-mode .glass-card,

body.light-theme .glass-card {

  background: linear-gradient(165deg, rgba(239, 226, 207, 0.98) 0%, rgba(228, 211, 188, 0.97) 100%) !important;

  border-color: rgba(156, 120, 78, 0.28) !important;

  box-shadow: 0 14px 36px -10px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;

}



body.light-mode .glass-card:hover,

body.light-theme .glass-card:hover {

  border-color: rgba(2, 132, 199, 0.45) !important;

  box-shadow: 0 16px 36px -6px rgba(2, 132, 199, 0.12) !important;

  background: #ffffff !important;

}



/* Typography Hierarchy in Light Mode */

body.light-mode h1,

body.light-theme h1,

body.light-mode h2,

body.light-theme h2,

body.light-mode h3,

body.light-theme h3,

body.light-mode h4,

body.light-theme h4,

body.light-mode .text-white,

body.light-theme .text-white {

  color: #0f172a !important;

}



body.light-mode .text-slate-100,

body.light-theme .text-slate-100 {

  color: #0f172a !important;

}



body.light-mode .text-slate-200,

body.light-theme .text-slate-200 {

  color: #1e293b !important;

}



body.light-mode .text-slate-300,

body.light-theme .text-slate-300 {

  color: #334155 !important;

}



body.light-mode .text-slate-400,

body.light-theme .text-slate-400 {

  color: #64748b !important;

}



body.light-mode .text-slate-500,

body.light-theme .text-slate-500 {

  color: #94a3b8 !important;

}



body.light-mode .border-white\/10,

body.light-theme .border-white\/10,

body.light-mode .border-white\/5,

body.light-theme .border-white\/5,

body.light-mode .border-white\/15,

body.light-theme .border-white\/15 {

  border-color: rgba(226, 232, 240, 0.9) !important;

}



/* Theme Toggle Button in Light Mode */

body.light-mode .theme-toggle-btn,

body.light-theme .theme-toggle-btn {

  background: rgba(241, 245, 249, 0.95) !important;

  border: 1px solid rgba(203, 213, 225, 0.9) !important;

  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;

}

body.light-mode .theme-toggle-btn:hover,

body.light-theme .theme-toggle-btn:hover {

  background: #ffffff !important;

  border-color: rgba(99, 102, 241, 0.4) !important;

}



/* Primary Button in Light Mode */

body.light-mode .btn-primary-gradient,

body.light-theme .btn-primary-gradient {

  background: linear-gradient(135deg, #0284c7 0%, #0369a1 45%, #4f46e5 100%) !important;

  color: #ffffff !important;

  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.3) !important;

}



body.light-mode .btn-secondary-glass,

body.light-theme .btn-secondary-glass {

  background: rgba(241, 245, 249, 0.95) !important;

  border-color: rgba(203, 213, 225, 0.85) !important;

  color: #1e293b !important;

}

body.light-mode .btn-secondary-glass:hover,

body.light-theme .btn-secondary-glass:hover {

  background: #ffffff !important;

  color: #0f172a !important;

  border-color: rgba(148, 163, 184, 0.7) !important;

}



/* Logo Box in Light Mode */

body.light-mode .logo-box,

body.light-theme .logo-box {

  background: #ffffff !important;

  border-color: rgba(2, 132, 199, 0.35) !important;

  box-shadow: 0 0 20px rgba(2, 132, 199, 0.15) !important;

}



/* Animated Word 'فێرگە' & Brand Title in Light Mode */

body.light-mode .logo-text-animated,

body.light-theme .logo-text-animated,
body.light-mode .brand-title,
body.light-theme .brand-title,
.brand-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #361c0c !important;
  color: #361c0c !important;
  filter: none !important;
}



/* Dialect Selector Button in Light Mode */

body.light-mode #btnDialectDropdown,
body.light-theme #btnDialectDropdown,
#btnDialectDropdown {
  background: rgba(239, 227, 209, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
  box-shadow: 0 2px 10px rgba(50, 35, 20, 0.08) !important;
}

body.light-mode #btnDialectDropdown:hover,
body.light-theme #btnDialectDropdown:hover,
#btnDialectDropdown:hover {
  background: rgba(228, 212, 189, 0.98) !important;
  color: #241206 !important;
}



/* Dialect Dropdown Menu in Light Mode */

body.light-mode #dialectDropdownMenu,
body.light-theme #dialectDropdownMenu {
  background: rgba(247, 240, 228, 0.98) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 20px 45px -10px rgba(50, 35, 20, 0.15) !important;
}

body.light-mode .dialect-option,

body.light-theme .dialect-option {

  color: #1e293b !important;

}

body.light-mode .dialect-option:hover,

body.light-theme .dialect-option:hover {

  background: rgba(241, 245, 249, 0.95) !important;

  color: #0f172a !important;

}



/* Announcements in Light Mode */

body.light-mode #annActiveTitle,

body.light-theme #annActiveTitle {

  color: #0f172a !important;

}

body.light-mode #annActiveContent,

body.light-theme #annActiveContent {

  color: #334155 !important;

}

body.light-mode #annCounter,

body.light-theme #annCounter {

  background: rgba(2, 132, 199, 0.1) !important;

  border-color: rgba(2, 132, 199, 0.3) !important;

  color: #0284c7 !important;

}

body.light-mode .ann-dot,

body.light-theme .ann-dot {

  background: rgba(148, 163, 184, 0.45) !important;

}

body.light-mode .ann-dot.active,

body.light-theme .ann-dot.active {

  background: #0284c7 !important;

  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4) !important;

}



/* Dreams Gateway Card in Light Mode */

body.light-mode #dreamsGatewaySection .glass-card,

body.light-theme #dreamsGatewaySection .glass-card {

  background: rgba(255, 255, 255, 0.95) !important;

  border-color: rgba(245, 158, 11, 0.35) !important;

  box-shadow: 0 14px 35px -8px rgba(245, 158, 11, 0.12) !important;

}

body.light-mode #dreamsGatewaySection .glass-card:hover,

body.light-theme #dreamsGatewaySection .glass-card:hover {

  border-color: rgba(245, 158, 11, 0.6) !important;

  box-shadow: 0 18px 40px -8px rgba(245, 158, 11, 0.2) !important;

}



/* Footer in Light Mode */

body.light-mode footer,

body.light-theme footer {

  background: rgba(248, 250, 252, 0.9) !important;

  border-top-color: rgba(226, 232, 240, 0.9) !important;

  color: #64748b !important;

}



/* Modals & Inputs in Light Mode */

body.light-mode .modal-overlay,

body.light-theme .modal-overlay {

  background: rgba(15, 23, 42, 0.45) !important;

}

body.light-mode .modal-content,

body.light-theme .modal-content {

  background: rgba(255, 255, 255, 0.98) !important;

  border-color: rgba(203, 213, 225, 0.9) !important;

  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;

}

body.light-mode .modal-content input,

body.light-theme .modal-content input,

body.light-mode .modal-content textarea,

body.light-theme .modal-content textarea {

  background: rgba(241, 245, 249, 0.95) !important;

  border-color: rgba(203, 213, 225, 0.9) !important;

  color: #0f172a !important;

}



/* ========================================================

   MAIN MENU DRAWER: DESKTOP & LARGE SCREEN RESPONSIVENESS

   ======================================================== */

#mainMenuDrawerPanel {

  width: 90vw !important;

  max-width: 380px !important;

  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;

}



@media (min-width: 640px) {

  #mainMenuDrawerPanel {

    width: 480px !important;

    max-width: 85vw !important;

  }

}



@media (min-width: 768px) {

  #mainMenuDrawerPanel {

    width: 560px !important;

    max-width: 80vw !important;

  }

}



@media (min-width: 1024px) {

  #mainMenuDrawerPanel {

    width: 620px !important;

    max-width: 70vw !important;

  }

}



@media (min-width: 1280px) {

  #mainMenuDrawerPanel {

    width: 680px !important;

    max-width: 60vw !important;

  }

}



/* Tool Buttons / Bars ("توڵەکان") */

.drawer-tool-btn {

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0.75rem 1rem;

  border-radius: 1rem;

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(51, 65, 85, 0.7);

  color: #e2e8f0;

  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

  cursor: pointer;

  margin-bottom: 0.35rem;

}



@media (min-width: 768px) {

  .drawer-tool-btn {

    padding: 0.95rem 1.25rem;

    border-radius: 1.15rem;

    margin-bottom: 0.5rem;

  }

}



.drawer-tool-btn:hover {

  background: rgba(30, 41, 59, 0.95);

  border-color: rgba(245, 158, 11, 0.55);

  color: #ffffff;

  transform: translateY(-1.5px);

  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18);

}



.drawer-tool-btn:active {

  transform: scale(0.99);

}



.drawer-tool-icon-box {

  width: 2.35rem;

  height: 2.35rem;

  border-radius: 0.75rem;

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);

  border: 1px solid rgba(245, 158, 11, 0.35);

  color: #fef08a;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1rem;

  flex-shrink: 0;

  transition: all 0.25s ease;

  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);

}



@media (min-width: 768px) {

  .drawer-tool-icon-box {

    width: 2.85rem;

    height: 2.85rem;

    border-radius: 0.9rem;

    font-size: 1.25rem;

  }

}



.drawer-tool-btn:hover .drawer-tool-icon-box {

  transform: scale(1.08);

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.45) 100%);

  border-color: rgba(245, 158, 11, 0.75);

  box-shadow: 0 0 20px rgba(245, 158, 11, 0.38);

}



.drawer-tool-title {

  font-size: 0.875rem;

  font-weight: 800;

  color: #f1f5f9;

  transition: color 0.2s ease;

  letter-spacing: 0.01em;

}



@media (min-width: 768px) {

  .drawer-tool-title {

    font-size: 1.05rem;

  }

}



.drawer-tool-btn:hover .drawer-tool-title {

  color: #ffffff;

  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);

}



.drawer-tool-badge {

  font-size: 0.75rem;

  font-weight: 800;

  padding: 0.25rem 0.65rem;

  border-radius: 0.65rem;

  background: rgba(245, 158, 11, 0.15);

  color: #fef08a;

  border: 1px solid rgba(245, 158, 11, 0.3);

  flex-shrink: 0;

}



@media (min-width: 768px) {

  .drawer-tool-badge {

    font-size: 0.85rem;

    padding: 0.35rem 0.85rem;

    border-radius: 0.75rem;

  }

}



/* Light & Sepia Themes for Drawer Tools */

body.light-theme .drawer-tool-btn,

body.light-mode .drawer-tool-btn {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  color: #1e293b !important;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;

}



body.light-theme .drawer-tool-btn:hover,

body.light-mode .drawer-tool-btn:hover {

  background: #f8fafc !important;

  border-color: #0284c7 !important;

  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15) !important;

}



body.light-theme .drawer-tool-title,

body.light-mode .drawer-tool-title {

  color: #0f172a !important;

}



body.light-theme .drawer-tool-icon-box,
body.light-mode .drawer-tool-icon-box,
.drawer-tool-icon-box {
  background: rgba(217, 119, 6, 0.14) !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
  color: #b45309 !important;
}



body.light-theme .drawer-tool-badge,
body.light-mode .drawer-tool-badge,
.drawer-tool-badge {
  background: rgba(217, 119, 6, 0.12) !important;
  border-color: rgba(180, 83, 9, 0.25) !important;
  color: #78350f !important;
}



body.sepia-theme .drawer-tool-btn {

  background: #fbf5e8 !important;

  border-color: #e2d3b8 !important;

  color: #2b1d0c !important;

}



body.sepia-theme .drawer-tool-btn:hover {

  background: #f4ebd7 !important;

  border-color: #b8860b !important;

}



body.sepia-theme .drawer-tool-title {

  color: #24170c !important;

}



/* ========================================================

   EXECUTIVE HUB MODAL (دیوانی بەڕێوەبەر و هێمن)

   ======================================================== */

.exec-tab-btn {

  background: rgba(15, 23, 42, 0.65);

  border: 1px solid rgba(51, 65, 85, 0.7);

  color: #94a3b8;

  font-weight: 800;

}



.exec-tab-btn:hover {

  background: rgba(30, 41, 59, 0.9);

  color: #ffffff;

  border-color: rgba(245, 158, 11, 0.45);

}



.exec-tab-btn.active {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(59, 130, 246, 0.28) 100%);

  border-color: #fef08a;

  color: #ffffff;

  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);

}



body.light-theme .exec-tab-btn,

body.light-mode .exec-tab-btn {

  background: #f1f5f9;

  border-color: #cbd5e1;

  color: #475569;

}



body.light-theme .exec-tab-btn.active,

body.light-mode .exec-tab-btn.active {

  background: #e0f2fe;

  border-color: #0284c7;

  color: #0369a1;

}



/* ========================================================

   INNOVATIVE CELESTIAL THEME TRANSITION

   ======================================================== */

::view-transition-old(root),

::view-transition-new(root) {

  animation: none;

  mix-blend-mode: normal;

}

::view-transition-old(root) {

  z-index: 1;

}

::view-transition-new(root) {

  z-index: 99999;

}



/* Button Pop & Subtle Tap Animation (Minimal & Calmer Motion) */

.theme-btn-pop {

  animation: themeBtnSubtle 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;

}

@keyframes themeBtnSubtle {

  0% { transform: scale(1); }

  45% { transform: scale(0.92); }

  100% { transform: scale(1); }

}



/* Subtle icon crossfade */

#themeIconSun, #themeIconMoon {

  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;

}



/* Smooth Global Element Morpher during theme change - Slower & Calmer Transition */

html.theme-transitioning,

html.theme-transitioning *,

html.theme-transitioning *:before,

html.theme-transitioning *:after {

  transition: background-color 0.85s cubic-bezier(0.25, 1, 0.5, 1),

              background 0.85s cubic-bezier(0.25, 1, 0.5, 1),

              border-color 0.85s cubic-bezier(0.25, 1, 0.5, 1),

              color 0.75s cubic-bezier(0.25, 1, 0.5, 1),

              box-shadow 0.85s cubic-bezier(0.25, 1, 0.5, 1) !important;

  transition-delay: 0s !important;

}



/* Fallback Ripple Wave Element */

#themeFallbackRipple {

  position: fixed;

  border-radius: 50%;

  pointer-events: none;

  z-index: 99998;

  transform: translate(-50%, -50%) scale(0);

  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.75s ease;

  will-change: transform, opacity;

}



/* ==========================================================================

   DREAM POSTS & FACEBOOK-STYLE FLOATING REACTION DOCK

   ========================================================================== */



/* Post Card Container */

.fb-post-card {

  background: rgba(15, 23, 42, 0.82);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 1.25rem;

  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.05);

  overflow: visible;

  position: relative;

  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;

}

.fb-post-card:hover {

  border-color: rgba(245, 158, 11, 0.22);

  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.12);

}



/* Reactions Summary & Overlapping Icon Cluster */

.reactions-cluster {

  display: inline-flex;

  align-items: center;

  flex-direction: row-reverse;

  padding: 1px;

}

.reaction-cluster-icon {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 22px;

  height: 22px;

  border-radius: 50%;

  font-size: 11px;

  margin-left: -6px;

  border: 2px solid #0f172a;

  background: #1e293b;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);

  position: relative;

  user-select: none;

}

.reaction-cluster-like { background: #0284c7; }

.reaction-cluster-dua { background: #059669; }

.reaction-cluster-heart { background: #e11d48; }



/* Floating Reaction Picker Dock Wrapper */

.fb-reaction-wrapper {

  position: relative;

  flex: 1;

  display: flex;

  justify-content: center;

  align-items: center;

}



/* Floating Reaction Dock (Facebook / iOS Style) */

.fb-reaction-dock {

  position: absolute;

  bottom: calc(100% + 10px);

  right: 50%;

  display: flex !important;

  align-items: center;

  gap: 10px;

  padding: 6px 14px;

  border-radius: 9999px;

  background: rgba(10, 16, 32, 0.98) !important;

  backdrop-filter: blur(18px) !important;

  -webkit-backdrop-filter: blur(18px) !important;

  border: 1px solid rgba(251, 191, 36, 0.4) !important;

  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.22) !important;

  z-index: 50;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform: translateX(50%) translateY(12px) scale(0.85);

  transform-origin: bottom center;

  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 

              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 

              visibility 0.22s;

}



/* Invisible bridge so mouse hover doesn't break between button and dock */

.fb-reaction-dock::after {

  content: '';

  position: absolute;

  left: 0;

  right: 0;

  top: 100%;

  height: 16px;

  background: transparent;

}



/* Reveal reaction dock on wrapper hover or active-dock class */

.fb-reaction-wrapper:hover .fb-reaction-dock,

.fb-reaction-wrapper.active-dock .fb-reaction-dock {

  opacity: 1 !important;

  visibility: visible !important;

  pointer-events: auto !important;

  transform: translateX(50%) translateY(0) scale(1) !important;

}



/* Individual Reaction Item inside the Dock */

.fb-reaction-item {

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 44px;

  height: 44px;

  border-radius: 50%;

  background: transparent;

  border: none;

  cursor: pointer;

  padding: 0;

  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;

  -webkit-tap-highlight-color: transparent;

}

.fb-reaction-item:hover {

  transform: scale(1.35) translateY(-6px);

  background-color: rgba(255, 255, 255, 0.12);

}

.fb-reaction-item:active {

  transform: scale(1.15) translateY(-2px);

}



/* Emoji Icon */

.fb-reaction-emoji {

  font-size: 26px;

  line-height: 1;

  display: block;

  user-select: none;

  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));

}



/* Tooltip Label Above Each Emoji (Strictly hidden by default, shown only on item hover) */

.fb-reaction-tooltip {

  position: absolute !important;

  bottom: calc(100% + 10px) !important;

  left: 50% !important;

  transform: translateX(-50%) translateY(4px) !important;

  background: rgba(6, 10, 23, 0.98) !important;

  backdrop-filter: blur(8px) !important;

  color: #fef08a !important;

  font-size: 11px !important;

  font-weight: 800 !important;

  padding: 3px 10px !important;

  border-radius: 9999px !important;

  white-space: nowrap !important;

  opacity: 0 !important;

  visibility: hidden !important;

  pointer-events: none !important;

  transition: opacity 0.15s ease, transform 0.15s ease !important;

  border: 1px solid rgba(251, 191, 36, 0.35) !important;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;

  z-index: 60 !important;

}

.fb-reaction-item:hover .fb-reaction-tooltip {

  opacity: 1 !important;

  visibility: visible !important;

  transform: translateX(-50%) translateY(0) !important;

}



/* Action Buttons (Reaction Trigger & Share) */

.fb-action-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 9px 16px;

  border-radius: 12px;

  font-size: 13px;

  font-weight: 700;

  color: #94a3b8;

  background: transparent;

  border: 1px solid transparent;

  cursor: pointer;

  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;

  user-select: none;

  -webkit-tap-highlight-color: transparent;

}

.fb-action-btn:hover {

  background-color: rgba(255, 255, 255, 0.06);

  border-color: rgba(255, 255, 255, 0.08);

  color: #f8fafc;

}

.fb-action-btn:active {

  transform: scale(0.97);

}



/* Reaction Active States */

.fb-action-btn.reacted-like {

  color: #38bdf8 !important;

  background-color: rgba(56, 189, 248, 0.12) !important;

  border-color: rgba(56, 189, 248, 0.3) !important;

}

.fb-action-btn.reacted-dua {

  color: #10b981 !important;

  background-color: rgba(16, 185, 129, 0.12) !important;

  border-color: rgba(16, 185, 129, 0.3) !important;

}

.fb-action-btn.reacted-heart {

  color: #f43f5e !important;

  background-color: rgba(244, 63, 94, 0.12) !important;

  border-color: rgba(244, 63, 94, 0.3) !important;

}



/* Light Mode Overrides for Dream Posts & Reaction Dock */

body.light-mode .fb-post-card,

body.light-theme .fb-post-card {

  background: rgba(255, 255, 255, 0.95);

  border-color: rgba(0, 0, 0, 0.08);

  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

}

body.light-mode .fb-post-card .fb-post-title,

body.light-theme .fb-post-card .fb-post-title {

  color: #0f172a !important;

}

body.light-mode .fb-post-dream-box,

body.light-theme .fb-post-dream-box {

  background: rgba(241, 245, 249, 0.9) !important;

}

body.light-mode .fb-post-dream-box p,

body.light-theme .fb-post-dream-box p {

  color: #334155 !important;

}

body.light-mode .fb-post-interpretation-box,

body.light-theme .fb-post-interpretation-box {

  background: rgba(254, 252, 232, 0.9) !important;

}

body.light-mode .fb-post-interpretation-box p,

body.light-theme .fb-post-interpretation-box p {

  color: #1e293b !important;

}

body.light-mode .reaction-cluster-icon,

body.light-theme .reaction-cluster-icon {

  border-color: #ffffff;

}

body.light-mode .fb-reaction-dock,

body.light-theme .fb-reaction-dock {

  background: rgba(255, 255, 255, 0.98);

  border-color: rgba(0, 0, 0, 0.12);

  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.18);

}

body.light-mode .fb-reaction-item:hover,

body.light-theme .fb-reaction-item:hover {

  background-color: rgba(0, 0, 0, 0.06);

}

body.light-mode .fb-reaction-tooltip,

body.light-theme .fb-reaction-tooltip {

  background: rgba(15, 23, 42, 0.96);

  color: #ffffff;

  border-color: rgba(255, 255, 255, 0.15);

}

body.light-mode .fb-action-btn,

body.light-theme .fb-action-btn {

  color: #64748b;

}

body.light-mode .fb-action-btn:hover,

body.light-theme .fb-action-btn:hover {

  background-color: rgba(0, 0, 0, 0.05);

  border-color: rgba(0, 0, 0, 0.08);

  color: #0f172a;

}



/* ==========================================================================

   ROYAL CELESTIAL & ACADEMIC EXTERIOR REDESIGN (#landingPage)

   Palette: Deep Midnight Sapphire (#060a17) + Warm Royal Gold (#f59e0b) +

            Academic Emerald (#10b981) + Luminous Sky (#38bdf8)

   Light Mode: Warm Alabaster Porcelain (#faf8f5) + Deep Slate & Warm Gold

   ========================================================================== */



/* Sufi Mystical Deep Emerald & Spiritual Gold (Dark Exterior) */

body.in-landing {

  background-color: #061611 !important;

  background-image:

    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(5, 150, 105, 0.30) 0%, transparent 65%),

    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.09) 0%, transparent 45%),

    radial-gradient(circle at 15% 65%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),

    linear-gradient(180deg, #071c15 0%, #05110d 100%) !important;

}



/* Ambient Orbs & Subtle Architectural Grid */

.landing-orb {

  position: absolute;

  border-radius: 9999px;

  filter: blur(90px);

  opacity: 0.45;

  pointer-events: none;

}

.landing-orb-gold {

  width: 420px;

  height: 420px;

  top: -120px;

  right: 8%;

  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);

}

.landing-orb-sapphire {

  width: 480px;

  height: 480px;

  top: 22%;

  left: -120px;

  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);

}

.landing-orb-emerald {

  width: 400px;

  height: 400px;

  bottom: 5%;

  right: 18%;

  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);

}



.landing-grid-pattern {

  position: absolute;

  inset: 0;

  background-image:

    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),

    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);

  background-size: 44px 44px;

  mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 25%, transparent 100%);

  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 25%, transparent 100%);

}



/* Top Navbar Frosted Glass & Hairline Shimmer */

.landing-navbar-premium {

  background: rgba(7, 11, 24, 0.78) !important;

  backdrop-filter: blur(24px) saturate(170%) !important;

  -webkit-backdrop-filter: blur(24px) saturate(170%) !important;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;

  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(245, 158, 11, 0.12) !important;

}



/* Jewel-Crafted Brand Logo Box */

.landing-emblem-box {

  background: linear-gradient(145deg, #0f172a 0%, #090d1a 100%) !important;

  border: 1px solid rgba(245, 158, 11, 0.45) !important;

  box-shadow:

    0 0 22px rgba(245, 158, 11, 0.2),

    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

  overflow: hidden !important;

}

.landing-emblem-box img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: 12px;

  display: block;

}

.landing-emblem-icon {

  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 55%, #38bdf8 100%);

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));

}



/* Steadily Visible, Dignified Brand Word "فێرگە" */

body.light-mode .landing-brand-word,
body.light-theme .landing-brand-word,
.landing-brand-word {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #361c0c !important;
  color: #361c0c !important;
  filter: none !important;
  text-shadow: none !important;
}



/* Theme Toggle Button in Navbar */

.landing-theme-btn {

  background: rgba(15, 23, 42, 0.75) !important;

  border: 1px solid rgba(255, 255, 255, 0.11) !important;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.25) !important;

}

.landing-theme-btn:hover {

  border-color: rgba(245, 158, 11, 0.45) !important;

  background: rgba(30, 41, 59, 0.85) !important;

}



/* Executive Navbar Login Button (Royal Celestial & Academic Styling) */

.landing-nav-login-btn {

  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;

  color: #f8fafc !important;

  border: 1px solid rgba(251, 191, 36, 0.45) !important;

  box-shadow:

    inset 0 1px 0 rgba(255, 255, 255, 0.16),

    0 4px 16px -2px rgba(245, 158, 11, 0.22) !important;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;

}

.landing-nav-login-btn:hover {

  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;

  border-color: #fde68a !important;

  color: #090d16 !important;

  transform: translateY(-1.5px) !important;

  box-shadow:

    inset 0 1px 0 rgba(255, 255, 255, 0.3),

    0 8px 24px -3px rgba(245, 158, 11, 0.45) !important;

}



/* Grand Academy Hero Stage */

.landing-hero-stage {

  background: linear-gradient(165deg, rgba(17, 25, 48, 0.82) 0%, rgba(9, 14, 28, 0.88) 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.11) !important;

  border-radius: 1.75rem !important;

  box-shadow:

    0 25px 60px -15px rgba(0, 0, 0, 0.65),

    0 0 40px -10px rgba(245, 158, 11, 0.08),

    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;

}

.landing-hero-stage:hover {

  border-color: rgba(245, 158, 11, 0.28) !important;

}



.landing-hero-top-beam {

  position: absolute;

  top: 0;

  left: 15%;

  right: 15%;

  height: 1px;

  background: linear-gradient(90deg, transparent 0%, rgba(251, 191, 36, 0.65) 50%, transparent 100%);

}



/* Dialect Pill in Hero */

.landing-dialect-pill {

  background: rgba(15, 23, 42, 0.78);

  border: 1px solid rgba(245, 158, 11, 0.32);

  color: #fde68a;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.3);

}

.landing-dialect-pill:hover {

  background: rgba(245, 158, 11, 0.14);

  border-color: rgba(251, 191, 36, 0.6);

  color: #ffffff;

}



/* Hero Title & Subtitle */

.landing-hero-title {

  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 65%, #cbd5e1 100%);

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

}

.landing-hero-subtitle {

  color: #94a3b8;

}



/* Primary Hero CTA Button (Royal Gold & Amber) */

.landing-hero-cta {

  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);

  color: #090d16 !important;

  border: 1px solid rgba(254, 243, 199, 0.45);

  box-shadow:

    0 12px 28px -6px rgba(245, 158, 11, 0.45),

    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}

.landing-hero-cta:hover {

  transform: translateY(-2px);

  filter: brightness(1.06);

  box-shadow:

    0 18px 36px -6px rgba(245, 158, 11, 0.6),

    inset 0 1px 0 rgba(255, 255, 255, 0.6);

}

.landing-hero-cta:active {

  transform: translateY(0);

}



/* Section Headers & Icon Badges */

.landing-section-header {

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}

.landing-section-icon-badge {

  width: 2.35rem;

  height: 2.35rem;

  border-radius: 0.8rem;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}

.landing-badge-sapphire {

  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.06) 100%);

  border: 1px solid rgba(56, 189, 248, 0.35);

  color: #38bdf8;

  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);

}

.landing-badge-emerald {

  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.06) 100%);

  border: 1px solid rgba(16, 185, 129, 0.35);

  color: #34d399;

  box-shadow: 0 0 18px rgba(16, 185, 129, 0.15);

}



/* Announcements Counter & Carousel Arrows */

.landing-counter-pill {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(56, 189, 248, 0.3);

  color: #7dd3fc;

}

.landing-carousel-arrow {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #cbd5e1;

}

.landing-carousel-arrow:hover {

  background: rgba(56, 189, 248, 0.15);

  border-color: rgba(56, 189, 248, 0.45);

  color: #ffffff;

}



/* Editorial Announcement Card */

.landing-ann-card {

  background: linear-gradient(160deg, rgba(15, 23, 42, 0.84) 0%, rgba(9, 14, 28, 0.88) 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.09) !important;

  border-right: 4px solid #38bdf8 !important;

  border-radius: 1.4rem !important;

  box-shadow:

    0 18px 40px -12px rgba(0, 0, 0, 0.5),

    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;

}

.landing-ann-card:hover {

  border-color: rgba(56, 189, 248, 0.3) !important;

  border-right-color: #fbbf24 !important;

}

.landing-ann-tag {

  background: rgba(56, 189, 248, 0.13);

  border: 1px solid rgba(56, 189, 248, 0.3);

  color: #7dd3fc;

}

.landing-ann-author {

  color: #fcd34d;

}



/* 3 Core Pillars Cards (Sapphire, Emerald, Amber) */

.landing-pillar-card {

  background: linear-gradient(165deg, rgba(15, 23, 42, 0.8) 0%, rgba(9, 13, 26, 0.88) 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.09) !important;

  border-radius: 1.5rem !important;

  box-shadow:

    0 14px 34px -10px rgba(0, 0, 0, 0.45),

    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;

}

.landing-pillar-card:hover {

  transform: translateY(-4px);

}

.landing-pillar-icon {

  width: 3.25rem;

  height: 3.25rem;

}



/* Variant 1: Sapphire */

.landing-pillar-sapphire .landing-pillar-icon {

  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(3, 105, 161, 0.1) 100%);

  border: 1px solid rgba(56, 189, 248, 0.38);

  color: #38bdf8;

  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);

}

.landing-pillar-sapphire:hover {

  border-color: rgba(56, 189, 248, 0.45) !important;

  box-shadow: 0 20px 42px -12px rgba(14, 165, 233, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

}

.landing-pillar-sapphire .landing-pillar-action { color: #38bdf8; }

.landing-pillar-sapphire .landing-pillar-arrow {

  background: rgba(56, 189, 248, 0.12);

  border: 1px solid rgba(56, 189, 248, 0.25);

}



/* Variant 2: Emerald */

.landing-pillar-emerald .landing-pillar-icon {

  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(4, 120, 87, 0.1) 100%);

  border: 1px solid rgba(16, 185, 129, 0.38);

  color: #34d399;

  box-shadow: 0 0 20px rgba(16, 185, 129, 0.18);

}

.landing-pillar-emerald:hover {

  border-color: rgba(16, 185, 129, 0.45) !important;

  box-shadow: 0 20px 42px -12px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

}

.landing-pillar-emerald .landing-pillar-action { color: #34d399; }

.landing-pillar-emerald .landing-pillar-arrow {

  background: rgba(16, 185, 129, 0.12);

  border: 1px solid rgba(16, 185, 129, 0.25);

}



/* Variant 3: Amber Gold */

.landing-pillar-amber .landing-pillar-icon {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(180, 83, 9, 0.1) 100%);

  border: 1px solid rgba(245, 158, 11, 0.4);

  color: #fbbf24;

  box-shadow: 0 0 20px rgba(245, 158, 11, 0.18);

}

.landing-pillar-amber:hover {

  border-color: rgba(245, 158, 11, 0.48) !important;

  box-shadow: 0 20px 42px -12px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

}

.landing-pillar-amber .landing-pillar-action { color: #fbbf24; }

.landing-pillar-amber .landing-pillar-arrow {

  background: rgba(245, 158, 11, 0.12);

  border: 1px solid rgba(245, 158, 11, 0.28);

}



/* Dedicated Dreams Showcase Banner */

.landing-dreams-banner {

  background: linear-gradient(135deg, rgba(23, 21, 52, 0.88) 0%, rgba(12, 16, 33, 0.92) 55%, rgba(36, 25, 18, 0.85) 100%) !important;

  border: 1px solid rgba(245, 158, 11, 0.35) !important;

  box-shadow:

    0 24px 55px -12px rgba(0, 0, 0, 0.65),

    0 0 35px -8px rgba(245, 158, 11, 0.15),

    inset 0 1px 0 rgba(254, 243, 199, 0.2) !important;

}

.landing-dreams-banner:hover {

  border-color: rgba(251, 191, 36, 0.6) !important;

  box-shadow:

    0 28px 60px -12px rgba(0, 0, 0, 0.72),

    0 0 45px -5px rgba(245, 158, 11, 0.25),

    inset 0 1px 0 rgba(254, 243, 199, 0.28) !important;

}

.landing-dreams-orb {

  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.28), rgba(30, 27, 75, 0.6));

  border: 1px solid rgba(251, 191, 36, 0.45);

  box-shadow: 0 0 28px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);

}

.landing-dreams-badge {

  background: rgba(245, 158, 11, 0.16);

  border: 1px solid rgba(251, 191, 36, 0.38);

  color: #fde68a;

}

.landing-btn-gold {

  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #d97706 100%);

  color: #090d16 !important;

  border: 1px solid rgba(255, 255, 255, 0.45);

  box-shadow:

    0 12px 30px -6px rgba(245, 158, 11, 0.45),

    inset 0 1px 0 rgba(255, 255, 255, 0.55);

}

.landing-btn-gold:hover {

  transform: translateY(-2px);

  filter: brightness(1.05);

  box-shadow:

    0 18px 38px -6px rgba(245, 158, 11, 0.62),

    inset 0 1px 0 rgba(255, 255, 255, 0.7);

}



/* Footer */

.landing-footer {

  background: rgba(5, 8, 17, 0.75);

  backdrop-filter: blur(12px);

}

.landing-footer-brand {

  color: #fbbf24;

}



/* ==========================================================================

   WARM ALABASTER & PORCELAIN LIGHT MODE FOR EXTERIOR REDESIGN

   ========================================================================== */

/* Soft Pale Sufi Sage Green (سەوزی سۆفیانەی کاڵ و ئارامبەخش) */

body.light-mode.in-landing,
body.light-theme.in-landing {
  background-color: #86b89c !important;
  background: #86b89c !important;
  background-image: none !important;
}



body.light-mode.in-landing .landing-grid-pattern,

body.light-theme.in-landing .landing-grid-pattern {

  background-image:

    linear-gradient(to right, rgba(16, 185, 129, 0.06) 1px, transparent 1px),

    linear-gradient(to bottom, rgba(16, 185, 129, 0.06) 1px, transparent 1px) !important;

}



body.light-mode.in-landing .landing-navbar-premium,
body.light-theme.in-landing .landing-navbar-premium {
  background: rgba(236, 222, 202, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 4px 20px -4px rgba(50, 35, 20, 0.08) !important;
}



body.light-mode.in-landing .glass-card,

body.light-theme.in-landing .glass-card,

body.light-mode.in-landing .landing-pillar-card,

body.light-theme.in-landing .landing-pillar-card,

body.light-mode.in-landing .hero-compact-card,

body.light-theme.in-landing .hero-compact-card {

  background: linear-gradient(165deg, rgba(239, 226, 207, 0.98) 0%, rgba(228, 211, 188, 0.97) 100%) !important;

  border: 1px solid rgba(156, 120, 78, 0.28) !important;

  box-shadow: 0 14px 36px -10px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;

}



body.light-mode.in-landing .glass-card:hover,

body.light-theme.in-landing .glass-card:hover,

body.light-mode.in-landing .landing-pillar-card:hover,

body.light-theme.in-landing .landing-pillar-card:hover {

  border-color: rgba(16, 185, 129, 0.45) !important;

  box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.15) !important;

}



body.light-mode .landing-grid-pattern,

body.light-theme .landing-grid-pattern {

  background-image:

    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),

    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);

}



body.light-mode .landing-navbar-premium,

body.light-theme .landing-navbar-premium {

  background: rgba(236, 222, 202, 0.94) !important;

  border-bottom: 1px solid rgba(156, 120, 78, 0.24) !important;

  box-shadow: 0 8px 25px -8px rgba(50, 35, 20, 0.08) !important;

}



body.light-mode .landing-emblem-box,

body.light-theme .landing-emblem-box {

  background: linear-gradient(145deg, #ffffff 0%, #fef3c7 100%) !important;

  border-color: rgba(160, 120, 70, 0.38) !important;

  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.14) !important;

}

body.light-mode .landing-emblem-icon,

body.light-theme .landing-emblem-icon {

  background: linear-gradient(135deg, #b45309 0%, #d97706 55%, #0284c7 100%);

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

}



body.light-mode .landing-brand-word,
body.light-theme .landing-brand-word,
body.light-mode .landing-brand-word,
body.light-theme .landing-brand-word,
.landing-brand-word {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #361c0c !important;
  color: #361c0c !important;
  filter: none !important;
  text-shadow: none !important;
}



body.light-mode .landing-nav-login-btn,

body.light-theme .landing-nav-login-btn {

  background: #0f172a;

  color: #ffffff;

  border-color: #1e293b;

  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.22);

}

body.light-mode .landing-nav-login-btn:hover,

body.light-theme .landing-nav-login-btn:hover {

  background: #1e293b;

  color: #fde68a;

  border-color: #d97706;

}



body.light-mode .landing-hero-stage,

body.light-theme .landing-hero-stage {

  background: linear-gradient(165deg, rgba(241, 228, 209, 0.98) 0%, rgba(228, 211, 188, 0.97) 100%) !important;

  border: 1px solid rgba(156, 120, 78, 0.28) !important;

  box-shadow:

    0 22px 50px -15px rgba(15, 23, 42, 0.08),

    0 0 0 1px rgba(245, 158, 11, 0.12) !important;

}



body.light-mode #btnDialectDropdown.landing-dialect-pill,

body.light-theme #btnDialectDropdown.landing-dialect-pill {

  background: rgba(222, 204, 180, 0.95) !important;

  border-color: rgba(160, 120, 70, 0.38) !important;

  color: #92400e !important;

  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08) !important;

}

body.light-mode #btnDialectDropdown.landing-dialect-pill:hover,

body.light-theme #btnDialectDropdown.landing-dialect-pill:hover {

  background: rgba(214, 196, 172, 0.98) !important;

  color: #78350f !important;

}



body.light-mode .landing-hero-title,

body.light-theme .landing-hero-title {

  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent !important;

  text-shadow: none;

}

body.light-mode .landing-hero-subtitle,

body.light-theme .landing-hero-subtitle {

  color: #475569 !important;

}



body.light-mode .landing-section-header,

body.light-theme .landing-section-header {

  border-bottom-color: rgba(226, 232, 240, 0.9);

}



body.light-mode .landing-counter-pill,

body.light-theme .landing-counter-pill {

  background: #f0f9ff;

  border-color: #bae6fd;

  color: #0369a1;

}

body.light-mode .landing-carousel-arrow,

body.light-theme .landing-carousel-arrow {

  background: #ffffff;

  border-color: #e2e8f0;

  color: #475569;

  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);

}

body.light-mode .landing-carousel-arrow:hover,

body.light-theme .landing-carousel-arrow:hover {

  background: #f8fafc;

  border-color: #0284c7;

  color: #0f172a;

}



body.light-mode .landing-ann-card,

body.light-theme .landing-ann-card {

  background: #ffffff !important;

  border: 1px solid #e2e8f0 !important;

  border-right: 4px solid #0284c7 !important;

  box-shadow: 0 14px 35px -10px rgba(15, 23, 42, 0.07) !important;

}

body.light-mode .landing-ann-tag,

body.light-theme .landing-ann-tag {

  background: #e0f2fe;

  border-color: #bae6fd;

  color: #0369a1;

}

body.light-mode .landing-ann-author,

body.light-theme .landing-ann-author {

  color: #b45309;

}



body.light-mode .landing-pillar-card,

body.light-theme .landing-pillar-card {

  background: #ffffff !important;

  border: 1px solid #e2e8f0 !important;

  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.06) !important;

}

body.light-mode .landing-pillar-sapphire .landing-pillar-action,

body.light-theme .landing-pillar-sapphire .landing-pillar-action { color: #0284c7; }

body.light-mode .landing-pillar-emerald .landing-pillar-action,

body.light-theme .landing-pillar-emerald .landing-pillar-action { color: #059669; }

body.light-mode .landing-pillar-amber .landing-pillar-action,

body.light-theme .landing-pillar-amber .landing-pillar-action { color: #d97706; }



body.light-mode #dreamsGatewaySection .landing-dreams-banner,
body.light-theme #dreamsGatewaySection .landing-dreams-banner,
#dreamsGatewaySection .landing-dreams-banner,
#dreamsGatewaySection .glass-card {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 16px 38px -10px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

body.light-mode .landing-dreams-orb,

body.light-theme .landing-dreams-orb {

  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);

  border-color: rgba(217, 119, 6, 0.35);

  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.18);

}

body.light-mode .landing-dreams-badge,

body.light-theme .landing-dreams-badge {

  background: #fef3c7;

  border-color: rgba(217, 119, 6, 0.35);

  color: #92400e;

}



body.light-mode .landing-footer,
body.light-theme .landing-footer,
.landing-footer {
  background: rgba(235, 219, 198, 0.98) !important;
  border-top: 1px solid rgba(156, 120, 78, 0.28) !important;
  backdrop-filter: blur(16px) !important;
  color: #54371f !important;
}

body.light-mode .landing-footer-brand,

body.light-theme .landing-footer-brand {

  color: #b45309;

}



/* ==========================================================================

   ROYAL CELESTIAL AUTHENTICATION MODAL (#authScreen)

   ========================================================================== */

#authScreen .auth-royal-card {

  position: relative;

  border: 1px solid rgba(245, 158, 11, 0.35) !important;

  box-shadow: 

    0 25px 70px -15px rgba(0, 0, 0, 0.85),

    0 0 45px -10px rgba(245, 158, 11, 0.18),

    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;

}



#authScreen input:focus {

  border-color: rgba(245, 158, 11, 0.85) !important;

  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;

}



#tabLogin, #tabRegister {

  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

}



/* Inside Drawer & Navbar Accents in Royal Palette */

.drawer-tool-icon-box {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(251, 191, 36, 0.25);

  color: #fbbf24;

}

.drawer-tool-btn:hover .drawer-tool-icon-box {

  border-color: rgba(251, 191, 36, 0.65);

  color: #fef08a;

  background: rgba(245, 158, 11, 0.15);

  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);

}













/* ========================================================

   CLASSROOMS & MULTI-ROOM LOBBY SYSTEM

======================================================== */

.classroom-lobby-card {

  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.88) 60%), #0b0f19;

  border: 1px solid rgba(51, 65, 85, 0.7);

  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(14px);

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.classroom-lobby-card:hover {

  transform: translateY(-4px);

  border-color: rgba(245, 158, 11, 0.5);

  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.2);

}



.classroom-lobby-card.is-live {

  border-color: rgba(244, 63, 94, 0.65);

  box-shadow: 0 0 25px rgba(244, 63, 94, 0.25);

  background: radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.15) 0%, rgba(15, 23, 42, 0.92) 65%), #0b0f19;

}





/* ========================================================

   MOBILE NAVBAR LUXURY DESIGN & ZERO OVERFLOW

======================================================== */

@media (max-width: 639px) {

  #mainApp > header {

    padding-left: 0.5rem !important;

    padding-right: 0.5rem !important;

    min-height: 52px;

    gap: 0.35rem !important;

  }



  /* Hamburger Menu Button MUST NEVER BE HIDDEN on mobile */

  #mainMenuBtn {

    display: inline-flex !important;

    flex-shrink: 0 !important;

    z-index: 40 !important;

    padding: 0.4rem 0.65rem !important;

    border: none !important;

    box-shadow: none !important;

    background: transparent !important;

  }



  /* Hide auxiliary buttons (Dream, Theme Toggle, Push Notification) on mobile navbar to eliminate clutter */

  #dreamAdminNavBtn,

  #pushNotificationBtn,

  #themeToggleBtn {

    display: none !important;

  }



  /* Home Button (🏠) MUST BE PROMINENT & VISIBLE on mobile alongside Profile & Menu */

  #topExecutiveHubBtn {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    flex-shrink: 0 !important;

    padding: 0.35rem 0.5rem !important;

  }



  /* On mobile: Hide Active Classroom Badge so only "هۆبەکان" displays without clashing */

  #headerActiveRoomBadge {

    display: none !important;

  }



  /* Back to Classrooms Lobby Button on Mobile: clean, prominent "هۆبەکان" */

  #backToClassroomsLobbyBtn {

    display: inline-flex !important;

    align-items: center !important;

    gap: 0.25rem !important;

    padding: 0.25rem 0.6rem !important;

    font-size: 11px !important;

    font-weight: 800 !important;

  }



  /* Responsive User Pill on mobile: clean and legible */

  #mainApp > header [onclick="openMyProfile()"] {

    max-width: 140px !important;

    padding: 0.25rem 0.5rem !important;

    flex-shrink: 1 !important;

    border: none !important;

    box-shadow: none !important;

  }



  #headerFullName {

    font-size: 11px !important;

    max-width: 92px !important;

  }

}



@media (max-width: 380px) {

  

  #mainApp > header [onclick="openMyProfile()"] {

    max-width: 110px !important;

  }

  #headerFullName {

    max-width: 70px !important;

  }

}





/* ========================================================

   LANDING HERO STAGE OVERLAP & DIALECT PILL FIX

======================================================== */

.hero-compact-card {

  margin-top: 0 !important;

}



#landingPage main {

  padding-top: max(5.75rem, calc(68px + 1.25rem)) !important;

}



@media (min-width: 640px) {

  #landingPage main {

    padding-top: max(7.25rem, calc(72px + 2rem)) !important;

  }

}



#dialectDropdownContainer {

  margin-bottom: 0.5rem;

}





/* ========================================================

   COMPACT & ELEGANT 3 CORE PILLARS (مەرجەکان، کتێبخانە، زانیاری)

======================================================== */

@media (max-width: 767px) {

  .landing-pillar-card {

    padding: 0.75rem 0.95rem !important;

    border-radius: 1.15rem !important;

    min-height: auto !important;

  }

  .landing-pillar-icon {

    width: 2.5rem !important;

    height: 2.5rem !important;

    font-size: 1rem !important;

    border-radius: 0.75rem !important;

  }

  .landing-pillar-title {

    font-size: 0.95rem !important;

    line-height: 1.25 !important;

  }

  .landing-pillar-desc {

    font-size: 0.75rem !important;

    line-height: 1.35 !important;

  }

}





/* ========================================================

   COMPACT CLASSROOM LOBBY CARDS FOR MOBILE

======================================================== */

@media (max-width: 639px) {

  .classroom-lobby-card {

    padding: 0.65rem 0.85rem !important;

    border-radius: 1.15rem !important;

    min-height: auto !important;

  }

}





/* ================= ADMIN SUBTAB SQUARE TILES (NO SCROLL) ================= */

.admin-subtab-tile {

  position: relative;

  padding: 0.5rem 0.35rem;

  border-radius: 1rem;

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(51, 65, 85, 0.6);

  color: #94a3b8;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 0.35rem;

  min-height: 64px;

  cursor: pointer;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);

  user-select: none;

  overflow: hidden;

}

.admin-subtab-tile:hover {

  background: rgba(30, 41, 59, 0.85);

  border-color: rgba(100, 116, 139, 0.85);

  color: #f1f5f9;

  transform: translateY(-1.5px);

}

.admin-subtab-tile:active {

  transform: scale(0.96);

}

.admin-subtab-tile.active {

  background: linear-gradient(135deg, rgba(79, 70, 229, 0.32) 0%, rgba(30, 27, 75, 0.85) 100%) !important;

  border: 2px solid #818cf8 !important;

  color: #ffffff !important;

  font-weight: 900 !important;

  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35), inset 0 0 12px rgba(129, 140, 248, 0.15) !important;

}

.admin-subtab-tile.active .admin-subtab-icon-box {

  background: rgba(99, 102, 241, 0.35) !important;

  border-color: rgba(165, 180, 252, 0.6) !important;

  color: #ffffff !important;

  transform: scale(1.08);

}

.admin-subtab-tile.active span.admin-tile-label {

  color: #ffffff !important;

  font-weight: 900 !important;

}



/* ==========================================================================

   PREMIUM DREAM AUDIO & VOICE NOTE PLAYER (دیزاینی تایبەت و ناوازەی پۆستی دەنگ)

   ========================================================================== */

.dream-voice-player {

  position: relative;

  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.98) 100%);

  border: 1.5px solid rgba(245, 158, 11, 0.35);

  border-radius: 1.25rem;

  padding: 0.85rem 1.15rem;

  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.12);

  transition: all 0.3s ease;

  user-select: none;

  overflow: hidden;

  width: 100%;

  max-width: 560px;

  margin: 0 auto;

}



.dream-voice-player:hover {

  border-color: rgba(245, 158, 11, 0.55);

  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.2);

}



.dream-voice-player.is-playing {

  border-color: rgba(6, 182, 212, 0.65);

  box-shadow: 0 14px 40px -5px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.25);

}



.dream-voice-player::before {

  content: '';

  position: absolute;

  top: -50%;

  right: -50%;

  width: 100%;

  height: 100%;

  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);

  pointer-events: none;

  transition: opacity 0.4s ease;

  opacity: 0.5;

}



.dream-voice-player.is-playing::before {

  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);

  opacity: 0.9;

}



.voice-player-inner {

  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 0.85rem;

}



.voice-play-btn {

  position: relative;

  width: 48px;

  height: 48px;

  min-width: 48px;

  border-radius: 50%;

  background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%);

  color: #0f172a;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.1rem;

  border: none;

  cursor: pointer;

  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);

  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  outline: none;

  flex-shrink: 0;

}



.voice-play-btn:hover {

  transform: scale(1.08);

  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);

  filter: brightness(1.1);

}



.voice-play-btn:active {

  transform: scale(0.95);

}



.dream-voice-player.is-playing .voice-play-btn {

  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 60%, #2563eb 100%);

  box-shadow: 0 0 20px rgba(6, 182, 212, 0.55);

  animation: voicePulseAura 2s infinite alternate;

}



@keyframes voicePulseAura {

  0% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }

  100% { box-shadow: 0 0 28px rgba(6, 182, 212, 0.75); }

}



.voice-track-col {

  flex: 1;

  min-width: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 0.35rem;

}



.voice-waveform-container {

  display: flex;

  align-items: center;

  gap: 3px;

  height: 36px;

  padding: 3px 6px;

  cursor: pointer;

  position: relative;

  touch-action: none;

  user-select: none;

  -webkit-user-select: none;

  border-radius: 10px;

  background: rgba(15, 23, 42, 0.45);

  transition: all 0.2s ease;

}



.voice-waveform-container:hover,

.voice-waveform-container.is-scrubbing {

  background: rgba(15, 23, 42, 0.75);

  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.15);

}



.voice-wave-bar {

  flex: 1;

  min-width: 2.5px;

  max-width: 6px;

  background: rgba(148, 163, 184, 0.35);

  border-radius: 999px;

  transition: background 0.12s ease, transform 0.15s ease;

  transform-origin: center;

  pointer-events: none;

}



.voice-wave-bar.played {

  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);

  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);

}



.dream-voice-player.is-playing .voice-wave-bar.played {

  background: linear-gradient(180deg, #67e8f9 0%, #06b6d4 100%);

}



.dream-voice-player.is-playing .voice-wave-bar {

  animation: voiceBarBounce 1.1s ease-in-out infinite alternate;

}



@keyframes voiceBarBounce {

  0% { transform: scaleY(0.85); }

  50% { transform: scaleY(1.15); }

  100% { transform: scaleY(0.9); }

}



.voice-bottom-meta {

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 0.72rem;

  color: #94a3b8;

  padding: 0 4px;

  font-family: 'Plus Jakarta Sans', monospace, sans-serif;

  direction: ltr;

  gap: 0.5rem;

}



.voice-time-label {

  font-weight: 700;

  color: #cbd5e1;

  font-size: 0.75rem;

}



.voice-seek-btn {

  font-size: 0.65rem;

  font-weight: 800;

  padding: 0.15rem 0.42rem;

  border-radius: 0.45rem;

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(148, 163, 184, 0.25);

  color: #94a3b8;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 0.22rem;

  transition: all 0.2s ease;

  line-height: 1;

}



.voice-seek-btn:hover {

  background: rgba(56, 189, 248, 0.25);

  border-color: rgba(56, 189, 248, 0.5);

  color: #38bdf8;

  transform: scale(1.05);

}



.voice-seek-btn:active {

  transform: scale(0.92);

}



.voice-tag-badge {

  font-family: 'Vazirmatn', sans-serif;

  direction: rtl;

  font-size: 0.68rem;

  font-weight: 800;

  color: #f59e0b;

  display: inline-flex;

  align-items: center;

  gap: 0.3rem;

  background: rgba(245, 158, 11, 0.12);

  border: 1px solid rgba(245, 158, 11, 0.25);

  padding: 0.15rem 0.55rem;

  border-radius: 999px;

}



.voice-speed-pill {

  font-size: 0.68rem;

  font-weight: 800;

  padding: 0.15rem 0.45rem;

  border-radius: 0.5rem;

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(148, 163, 184, 0.25);

  color: #94a3b8;

  cursor: pointer;

  transition: all 0.2s ease;

}



.voice-speed-pill:hover {

  background: rgba(51, 65, 85, 0.9);

  color: #f1f5f9;

  border-color: rgba(245, 158, 11, 0.4);

}



/* Mobile & Small Screen Adaptability */

@media (max-width: 640px) {

  .dream-voice-player {

    padding: 0.65rem 0.75rem;

    border-radius: 1rem;

    max-width: 100%;

  }

  .voice-player-inner {

    gap: 0.6rem;

  }

  .voice-play-btn {

    width: 40px;

    height: 40px;

    min-width: 40px;

    font-size: 0.95rem;

  }

  .voice-waveform-container {

    height: 30px;

    gap: 2px;

    padding: 2px 4px;

  }

  .voice-bottom-meta {

    font-size: 0.65rem;

  }

  .voice-tag-badge {

    display: none !important;

  }

  .voice-seek-btn {

    padding: 0.12rem 0.35rem;

    font-size: 0.62rem;

  }

}



/* Persistent Fixed Top Header for Dreams Feed */

#dreamsHeader {

  position: fixed !important;

  top: 0 !important;

  left: 0 !important;

  right: 0 !important;

  width: 100% !important;

  z-index: 9999 !important;

}











/* ==========================================================================

   FLOATING DOCK STYLE: TOP NAVBAR BUTTONS BORDERLESS (WÊNEY NIMÛNEY DOCK)

   Every button in the top navbar has NO borders/frames, smooth seamless look,

   vibrant icons, and soft rounded hover effects (both Dark and Light modes).

   ========================================================================== */

#mainApp > header button,

#mainApp > header [onclick*="openMyProfile"],

#mainApp > header #headerActiveRoomBadge,

#mainApp > header #backToClassroomsLobbyBtn,

#mainApp > header #topExecutiveHubBtn,

#mainApp > header #mainMenuBtn,

#mainApp > header #themeToggleBtn,

#mainApp > header #dreamAdminNavBtn,

#mainApp > header #liveLessonNavBtn,

#mainApp > header #pushNotificationBtn {

  border: none !important;

  outline: none !important;

  box-shadow: none !important;

}



#mainMenuBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#mainMenuBtn:hover, #mainMenuBtn:active {

  background: rgba(245, 158, 11, 0.15) !important;

}



#topExecutiveHubBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#topExecutiveHubBtn:hover, #topExecutiveHubBtn:active {

  background: rgba(6, 182, 212, 0.15) !important;

}



#mainApp > header [onclick*="openMyProfile"] {

  background: rgba(255, 255, 255, 0.06) !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#mainApp > header [onclick*="openMyProfile"]:hover {

  background: rgba(255, 255, 255, 0.12) !important;

}

body.light-theme #mainApp > header [onclick*="openMyProfile"] {

  background: rgba(0, 0, 0, 0.05) !important;

}

body.light-theme #mainApp > header [onclick*="openMyProfile"]:hover {

  background: rgba(0, 0, 0, 0.09) !important;

}



#dreamAdminNavBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#dreamAdminNavBtn:hover, #dreamAdminNavBtn:active {

  background: rgba(168, 85, 247, 0.15) !important;

}



#themeToggleBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#themeToggleBtn:hover, #themeToggleBtn:active {

  background: rgba(245, 158, 11, 0.15) !important;

}



#liveLessonNavBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#liveLessonNavBtn:hover, #liveLessonNavBtn:active {

  background: rgba(244, 63, 94, 0.15) !important;

}



#backToClassroomsLobbyBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#backToClassroomsLobbyBtn:hover, #backToClassroomsLobbyBtn:active {

  background: rgba(245, 158, 11, 0.15) !important;

}



#headerActiveRoomBadge {

  background: rgba(14, 165, 233, 0.12) !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

}



#pushNotificationBtn {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 9999px !important;

  transition: all 0.2s ease !important;

}

#pushNotificationBtn:hover, #pushNotificationBtn:active {

  background: rgba(99, 102, 241, 0.15) !important;

}



/* Landing Page Header Buttons (Clean & Borderless) */

#landingPage header button,

#landingThemeToggleBtn,

.landing-nav-login-btn {

  border: none !important;

  box-shadow: none !important;

}

#landingThemeToggleBtn {

  background: rgba(255, 255, 255, 0.08) !important;

  border-radius: 9999px !important;

}

#landingThemeToggleBtn:hover {

  background: rgba(255, 255, 255, 0.15) !important;

}

.landing-nav-login-btn {

  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;

  color: #090d16 !important;

  border-radius: 9999px !important;

}

.landing-nav-login-btn:hover {

  filter: brightness(1.1) !important;

  transform: translateY(-1px) !important;

}







/* ==========================================================================

   DRAWER TOOLS LIST RESPONSIVE STYLING (لیستی مێنیو بە تەواوی ڕێکخراو و پڕۆفیشناڵ)

   ========================================================================== */



.drawer-tools-grid {

  display: flex !important;

  flex-direction: column !important;

  gap: 0.5rem !important;

  width: 100% !important;

  margin-bottom: 0.5rem !important;

}



.drawer-tool-btn {

  width: 100% !important;

  display: flex !important;

  align-items: center !important;

  justify-content: space-between !important;

  padding: 0.75rem 1rem !important;

  border-radius: 1.1rem !important;

  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;

  cursor: pointer !important;

  user-select: none !important;

  -webkit-user-select: none !important;

  touch-action: manipulation !important;

  text-decoration: none !important;

  position: relative !important;

  overflow: hidden !important;

}



.drawer-tool-btn > div.flex {

  display: flex !important;

  align-items: center !important;

  gap: 0.75rem !important;

  min-width: 0 !important;

}



.drawer-tool-btn .drawer-tool-icon-box {

  width: 2.65rem !important;

  height: 2.65rem !important;

  border-radius: 0.85rem !important;

  font-size: 1.15rem !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  flex-shrink: 0 !important;

  transition: transform 0.22s ease, box-shadow 0.22s ease !important;

}



.drawer-tool-btn:hover .drawer-tool-icon-box {

  transform: scale(1.06) !important;

}



.drawer-tool-btn .drawer-tool-title {

  font-size: 0.92rem !important;

  font-weight: 800 !important;

  line-height: 1.3 !important;

  white-space: nowrap !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  position: static !important;

  opacity: 1 !important;

  visibility: visible !important;

  background: transparent !important;

  box-shadow: none !important;

  border: none !important;

  padding: 0 !important;

}



.drawer-tool-btn .drawer-tool-badge {

  font-size: 0.75rem !important;

  font-weight: 800 !important;

  padding: 0.25rem 0.65rem !important;

  border-radius: 0.65rem !important;

  flex-shrink: 0 !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

}



.drawer-tool-btn > i.fa-chevron-left {

  display: inline-block !important;

  flex-shrink: 0 !important;

}



@media (min-width: 768px) {

  .drawer-tools-grid {

    gap: 0.6rem !important;

  }

  .drawer-tool-btn {

    padding: 0.85rem 1.15rem !important;

    border-radius: 1.25rem !important;

  }

  .drawer-tool-btn .drawer-tool-icon-box {

    width: 2.85rem !important;

    height: 2.85rem !important;

    border-radius: 0.95rem !important;

    font-size: 1.25rem !important;

  }

  .drawer-tool-btn .drawer-tool-title {

    font-size: 1rem !important;

  }

}



/* Light Mode Card Styling */

body.light-theme .drawer-tool-btn,

body.light-mode .drawer-tool-btn {

  background: #ffffff !important;

  border: 1px solid #e2e8f0 !important;

  color: #1e293b !important;

  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;

}



body.light-theme .drawer-tool-btn:hover,

body.light-mode .drawer-tool-btn:hover {

  background: #f8fafc !important;

  border-color: #38bdf8 !important;

  transform: translateY(-1.5px) !important;

  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.14) !important;

}



body.light-theme .drawer-tool-btn:active,

body.light-mode .drawer-tool-btn:active {

  transform: scale(0.985) !important;

}



body.light-theme .drawer-tool-btn .drawer-tool-title,

body.light-mode .drawer-tool-btn .drawer-tool-title {

  color: #0f172a !important;

}



body.light-theme .drawer-tool-btn:hover .drawer-tool-title,
body.light-mode .drawer-tool-btn:hover .drawer-tool-title {
  color: #78350f !important;
}



body.light-theme .drawer-tool-btn .drawer-tool-icon-box,
body.light-mode .drawer-tool-btn .drawer-tool-icon-box,
.drawer-tool-btn .drawer-tool-icon-box {
  background: rgba(217, 119, 6, 0.14) !important;
  border: 1px solid rgba(180, 83, 9, 0.28) !important;
  color: #b45309 !important;
  box-shadow: none !important;
}



body.light-theme .drawer-tool-btn .drawer-tool-badge,
body.light-mode .drawer-tool-btn .drawer-tool-badge,
.drawer-tool-btn .drawer-tool-badge {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid rgba(180, 83, 9, 0.25) !important;
  color: #78350f !important;
}



/* Section Headers Styling */

#drawerGeneralHeader,

#drawerStaffHeader {

  width: 100% !important;

  display: flex !important;

  align-items: center !important;

  justify-content: flex-start !important;

}



body.light-theme #drawerGeneralHeader {

  color: #475569 !important;

  font-weight: 900 !important;

}

body.light-theme #drawerStaffHeader {

  color: #b45309 !important;

  font-weight: 900 !important;

}



/* ========================================================
   QURANIC AYAH INTRO SPLASH SCREEN
   ======================================================== */
.quran-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 38%, #08291d 0%, #04160f 50%, #010805 100%);
  overflow: hidden;
  direction: rtl;
  font-family: 'Vazirmatn', -apple-system, sans-serif;
  user-select: none;
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1), transform 0.95s cubic-bezier(0.4, 0, 0.2, 1), filter 0.95s ease;
}

.quran-intro-fadeout {
  opacity: 0 !important;
  transform: scale(1.05) !important;
  filter: blur(8px) !important;
  pointer-events: none !important;
}

.quran-stars-layer {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(212, 175, 55, 0.6) 50%, transparent 100%),
    radial-gradient(2px 2px at 80% 25%, rgba(254, 240, 138, 0.75) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 75%, rgba(212, 175, 55, 0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 70% 85%, rgba(250, 204, 21, 0.65) 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 12%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 65%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
  background-size: 100% 100%;
  animation: quranAmbientGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.quran-radial-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 95vw);
  height: min(520px, 80vh);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(13, 148, 136, 0.08) 45%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
}

@keyframes quranAmbientGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.quran-card {
  position: relative;
  z-index: 10;
  max-width: 860px;
  width: 90%;
  padding: 42px 28px;
  background: radial-gradient(circle at 50% 30%, rgba(15, 45, 34, 0.65) 0%, rgba(4, 19, 14, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 28px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(212, 175, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 30px rgba(212, 175, 55, 0.06);
  text-align: center;
  cursor: pointer;
  animation: quranCardFloat 4s ease-in-out infinite alternate;
}

@keyframes quranCardFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

.quran-arch-ornament {
  margin-bottom: 16px;
  opacity: 1;
}

.quran-bismillah {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: #f6e08c;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  text-shadow: 0 0 16px rgba(246, 224, 140, 0.4), 0 2px 4px rgba(0,0,0,0.6);
  opacity: 0.95;
}

.quran-verse-container {
  margin: 16px 0;
  min-height: 105px;
  text-align: center;
  line-height: 2.3;
}

.quran-bracket {
  font-family: 'Amiri Quran', 'Scheherazade New', 'Amiri', serif;
  font-size: clamp(1.45rem, 3.8vw, 2.6rem);
  color: #d4af37;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
  margin: 0 6px;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-0.30em);
  line-height: 1;
}

.quran-ayah-text {
  font-family: 'Amiri Quran', 'Scheherazade New', 'Amiri', serif;
  font-size: clamp(1.25rem, 3.2vw, 2.35rem);
  font-weight: 600;
  color: #fffbf0;
  text-shadow: 
    0 0 25px rgba(245, 197, 66, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.9);
  display: inline-block;
  vertical-align: middle;
  direction: rtl;
  unicode-bidi: isolate;
}

.quran-cursor {
  display: inline-block;
  width: 3px;
  height: 1.35em;
  background: #e6ca65;
  margin-right: 5px;
  vertical-align: middle;
  box-shadow: 0 0 12px #f6e08c;
  animation: quranBlink 0.75s step-end infinite;
}

@keyframes quranBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.quran-meta-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.quran-meta-line {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.quran-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(180, 83, 9, 0.22) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 9999px;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.quran-hint-text {
  margin-top: 22px;
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.65);
  letter-spacing: 0.3px;
}

.quran-skip-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 20;
}

.quran-skip-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: #fef08a;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

@media (max-width: 640px) {
  .quran-card {
    padding: 28px 12px;
    width: 96%;
  }
  .quran-verse-container {
    min-height: 85px;
    margin: 12px 0;
    line-height: 2.1;
  }
  .quran-ayah-text {
    font-size: clamp(1.0rem, 3.8vw, 1.25rem);
    display: inline-block;
    vertical-align: middle;
  }
  .quran-bracket {
    font-size: clamp(1.15rem, 4.2vw, 1.5rem);
    margin: 0 3px;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-0.32em);
    line-height: 1;
  }
  .quran-meta-line {
    max-width: 40px;
  }
  .quran-skip-btn {
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}


/* ==========================================================================
   UNIFIED SAGE GREEN & WARM DESERT BEIGE PLATFORM THEME (ALL SECTIONS)
   ========================================================================== */

/* 1. Global Viewports & In-App Backgrounds */
body.light-theme,
body.light-mode,
body.in-app,
body.in-landing,
#mainApp,
#classroomsLobbyView,
#chatView {
  background-color: #86b89c !important;
  background: #86b89c !important;
  background-image: none !important;
}

/* 2. Dreams Gateway Card on Landing Page (Fix for Image 1) */
#dreamsGatewaySection .glass-card,
#dreamsGatewaySection .landing-dreams-banner,
body.light-mode #dreamsGatewaySection .glass-card,
body.light-theme #dreamsGatewaySection .glass-card,
body.light-mode #dreamsGatewaySection .landing-dreams-banner,
body.light-theme #dreamsGatewaySection .landing-dreams-banner {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 16px 38px -10px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

#dreamsGatewaySection #dreamGatewayTitle {
  color: #361c0c !important;
}

#dreamsGatewaySection #dreamGatewayDesc {
  color: #54371f !important;
}

#dreamsGatewaySection .landing-dreams-badge {
  background: rgba(160, 120, 70, 0.15) !important;
  border: 1px solid rgba(160, 120, 70, 0.30) !important;
  color: #85430e !important;
}

#dreamsGatewaySection .landing-dreams-orb {
  background: rgba(160, 120, 70, 0.15) !important;
  border: 1px solid rgba(160, 120, 70, 0.30) !important;
}

/* 3. In-App Classrooms Lobby View & Room Cards (Fix for Image 2) */
body.light-theme #classroomsLobbyView,
body.light-mode #classroomsLobbyView {
  background: transparent !important;
}

body.light-theme #classroomsLobbyView > div:first-child,
body.light-mode #classroomsLobbyView > div:first-child {
  background: rgba(236, 222, 202, 0.96) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
}

body.light-theme #classroomsLobbyView h2,
body.light-mode #classroomsLobbyView h2 {
  color: #361c0c !important;
}

body.light-theme #classroomsLobbyView p,
body.light-mode #classroomsLobbyView p {
  color: #54371f !important;
}

body.light-theme .classroom-lobby-card,
body.light-mode .classroom-lobby-card {
  background: linear-gradient(165deg, rgba(241, 229, 211, 0.98) 0%, rgba(230, 214, 192, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 10px 25px -5px rgba(50, 35, 20, 0.10) !important;
}

body.light-theme .classroom-lobby-card h3,
body.light-mode .classroom-lobby-card h3,
body.light-theme .classroom-lobby-card .font-black,
body.light-mode .classroom-lobby-card .font-black {
  color: #361c0c !important;
}

body.light-theme .classroom-lobby-card p,
body.light-mode .classroom-lobby-card p,
body.light-theme .classroom-lobby-card span,
body.light-mode .classroom-lobby-card span {
  color: #54371f !important;
}

body.light-theme #classroomsSearchInput,
body.light-mode #classroomsSearchInput {
  background: rgba(247, 240, 228, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

body.light-theme #classroomsTotalCountBadge {
  background: rgba(160, 120, 70, 0.20) !important;
  color: #361c0c !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
}

/* 4. In-App Members Sidebar (Fix for Image 2) */
body.light-theme #membersSidebar,
body.light-mode #membersSidebar,
body.light-theme #classroomMembersSidebar,
body.light-mode #classroomMembersSidebar {
  background: rgba(239, 227, 209, 0.98) !important;
  border-left: 1px solid rgba(156, 120, 78, 0.28) !important;
  border-right: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}

body.light-theme #membersSidebar .border-b,
body.light-mode #membersSidebar .border-b,
body.light-theme #classroomMembersSidebar .border-b,
body.light-mode #classroomMembersSidebar .border-b {
  background: rgba(235, 219, 198, 0.98) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.24) !important;
}

body.light-theme #membersSidebar h3,
body.light-mode #membersSidebar h3,
body.light-theme #classroomMembersSidebar h3,
body.light-mode #classroomMembersSidebar h3 {
  color: #361c0c !important;
}

body.light-theme #membersSidebarCount {
  background-color: rgba(160, 120, 70, 0.20) !important;
  color: #361c0c !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
}

body.light-theme #tabMemberStudents,
body.light-theme #tabMemberAdmins,
body.light-theme #tabMemberAll,
body.light-mode #tabMemberStudents,
body.light-mode #tabMemberAdmins,
body.light-mode #tabMemberAll {
  background: rgba(224, 210, 188, 0.90) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #54371f !important;
}

body.light-theme #tabMemberAll.bg-indigo-600,
body.light-theme #tabMemberStudents.bg-indigo-600,
body.light-theme #tabMemberAdmins.bg-indigo-600 {
  background: #85430e !important;
  color: #ffffff !important;
}

body.light-theme #membersListContainer > div,
body.light-mode #membersListContainer > div {
  background: rgba(247, 240, 228, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.22) !important;
  color: #361c0c !important;
}

body.light-theme #membersListContainer span,
body.light-mode #membersListContainer span {
  color: #361c0c !important;
}

/* 5. In-App Header & Drawer Navigation */
body.light-theme #mainApp > header,
body.light-mode #mainApp > header {
  background: rgba(236, 222, 202, 0.96) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}

body.light-theme #headerFullName,
body.light-mode #headerFullName {
  color: #361c0c !important;
}

body.light-theme #onlineCountText,
body.light-mode #onlineCountText {
  color: #54371f !important;
}

body.light-theme #mainMenuBtn,
body.light-mode #mainMenuBtn {
  color: #85430e !important;
}

body.light-theme #mainMenuDrawerPanel,
body.light-mode #mainMenuDrawerPanel {
  background: rgba(239, 227, 209, 0.98) !important;
  border-left: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}

body.light-theme #mainMenuDrawerPanel .border-b,
body.light-mode #mainMenuDrawerPanel .border-b {
  background: rgba(235, 219, 198, 0.98) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.24) !important;
}

body.light-theme #mainMenuDrawerPanel h3,
body.light-theme #mainMenuDrawerPanel h4,
body.light-mode #mainMenuDrawerPanel h3,
body.light-mode #mainMenuDrawerPanel h4 {
  color: #361c0c !important;
}

body.light-theme #mainMenuDrawerPanel p,
body.light-mode #mainMenuDrawerPanel p {
  color: #54371f !important;
}

body.light-theme .drawer-tool-btn,
body.light-mode .drawer-tool-btn {
  background: rgba(247, 240, 228, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}

/* 6. Typography & Navbar Branding Fix (Fix for Image 3) */
body.light-mode .brand-title,
body.light-theme .brand-title,
.brand-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #361c0c !important;
  color: #361c0c !important;
  text-shadow: none !important;
  filter: none !important;
}

body.light-mode #btnBackToHome,
body.light-theme #btnBackToHome,
#btnBackToHome {
  background: rgba(222, 204, 180, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

body.light-mode #btnBackToHome i,
body.light-theme #btnBackToHome i,
#btnBackToHome i {
  color: #85430e !important;
}

body.light-mode #btnDialectDropdown,
body.light-theme #btnDialectDropdown,
#btnDialectDropdown {
  background: rgba(222, 204, 180, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

body.light-mode #btnDialectDropdown i,
body.light-theme #btnDialectDropdown i,
#btnDialectDropdown i {
  color: #85430e !important;
}

body.light-mode #dreamsHeader,
body.light-theme #dreamsHeader,
body.light-mode #poemsHeader,
body.light-theme #poemsHeader,
body.light-mode #articlesHeader,
body.light-theme #articlesHeader,
body.light-mode .landing-navbar-premium,
body.light-theme .landing-navbar-premium {
  background: rgba(236, 222, 202, 0.95) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 4px 20px -4px rgba(50, 35, 20, 0.08) !important;
}

body.light-mode #dreamsPageTitle,
body.light-theme #dreamsPageTitle {
  color: #361c0c !important;
}

body.light-mode #dreamsPageSubtitle,
body.light-theme #dreamsPageSubtitle {
  color: #54371f !important;
}

body.light-mode #dreamsCountBadge,
body.light-theme #dreamsCountBadge,
body.light-mode #dreamsExpertBadge,
body.light-theme #dreamsExpertBadge {
  background: rgba(222, 204, 180, 0.90) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

body.light-mode #dreamsCountBadge i,
body.light-theme #dreamsCountBadge i,
body.light-mode #dreamsExpertBadge i,
body.light-theme #dreamsExpertBadge i {
  color: #85430e !important;
}

/* 7. Modals & Dialogs across all sections */
body.light-theme .modal-content,
body.light-mode .modal-content,
body.light-theme div[id$="Modal"] > div.bg-slate-900,
body.light-theme div[id$="Modal"] > div.bg-slate-950 {
  background: rgba(239, 227, 209, 0.98) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #361c0c !important;
}


/* ========================================================
   DEFINITIVE SAGE GREEN & WARM BEIGE HARMONIZATION OVERRIDES
   ======================================================== */

/* 1. Global Viewport Background (Inside and Outside) */
html,
body,
body.light-theme,
body.light-mode,
#mainApp,
#classroomsLobbyView,
#chatView,
main,
body.light-theme #mainApp,
body.light-theme #classroomsLobbyView,
body.light-theme #chatView,
body.light-theme main,
body.light-mode #mainApp,
body.light-mode #classroomsLobbyView,
body.light-mode #chatView,
body.light-mode main {
  background-color: #86b89c !important;
}

/* 2. Landing Dual/Trio Action Tabs (Buttons: ناردنی خەون, شیعرەکان, کورتە وتار) */
#landingFeaturedDualSection button,
#landingFeaturedDualSection a,
.landing-feature-tab,
body.light-theme #landingFeaturedDualSection button,
body.light-theme #landingFeaturedDualSection a,
body.light-mode #landingFeaturedDualSection button,
body.light-mode #landingFeaturedDualSection a {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 14px 30px -8px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

#landingFeaturedDualSection h3,
body.light-theme #landingFeaturedDualSection h3,
body.light-mode #landingFeaturedDualSection h3 {
  color: #361c0c !important;
}

#landingFeaturedDualSection p,
body.light-theme #landingFeaturedDualSection p,
body.light-mode #landingFeaturedDualSection p {
  color: #54371f !important;
}

#landingFeaturedDualSection span[class*="rounded-xl"],
#landingFeaturedDualSection div[class*="rounded-xl"] {
  background: rgba(217, 119, 6, 0.15) !important;
  border: 1px solid rgba(180, 83, 9, 0.35) !important;
  color: #78350f !important;
  font-weight: 900 !important;
}

#landingFeaturedDualSection span[class*="rounded-full"][class*="text-[10px]"] {
  background: rgba(180, 83, 9, 0.12) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #78350f !important;
}

/* 3. Dreams Gateway Section Banner (Image 4) */
#dreamsGatewaySection .landing-dreams-banner,
#dreamsGatewaySection .glass-card,
body.light-theme #dreamsGatewaySection .landing-dreams-banner,
body.light-mode #dreamsGatewaySection .landing-dreams-banner,
body.light-theme #dreamsGatewaySection .glass-card,
body.light-mode #dreamsGatewaySection .glass-card {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 16px 38px -10px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

#dreamsGatewaySection #dreamGatewayTitle {
  color: #361c0c !important;
}

#dreamsGatewaySection #dreamGatewayDesc {
  color: #54371f !important;
}

#dreamsGatewaySection .landing-dreams-badge {
  background: rgba(180, 83, 9, 0.12) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #78350f !important;
}

#dreamsGatewaySection .landing-dreams-orb {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.40) !important;
}

/* 4. Inside App Lobby & Sidebars (Image 5) */
#mainApp > header {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.25) !important;
}

#classroomsLobbyView > div:first-child {
  background: transparent !important;
}

.classroom-lobby-card,
body.light-theme .classroom-lobby-card,
body.light-mode .classroom-lobby-card {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 12px 28px -8px rgba(50, 35, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.classroom-lobby-card h3 {
  color: #361c0c !important;
}

.classroom-lobby-card p,
.classroom-lobby-card span {
  color: #54371f !important;
}

#membersSidebar,
#classroomMembersSidebar,
body.light-theme #membersSidebar,
body.light-mode #membersSidebar {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border-right: 1px solid rgba(156, 120, 78, 0.28) !important;
  border-left: 1px solid rgba(156, 120, 78, 0.28) !important;
}

#membersListContainer > div {
  background: rgba(247, 240, 228, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.22) !important;
  color: #361c0c !important;
}

#membersListContainer > div .font-bold,
#membersListContainer > div .font-black {
  color: #361c0c !important;
}

#membersListContainer > div .text-slate-400,
#membersListContainer > div .text-slate-500 {
  color: #785336 !important;
}

#classroomsSearchInput,
#membersSearchInput {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

#classroomsSearchInput::placeholder,
#membersSearchInput::placeholder {
  color: #8c6846 !important;
}

/* 5. Clean Navbar Typography & Brand Across All Subpages (Image 6) */
.brand-title,
body.light-theme .brand-title,
body.light-mode .brand-title,
a:hover .brand-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #361c0c !important;
  color: #361c0c !important;
  text-shadow: none !important;
  filter: none !important;
}

#btnBackToHome,
body.light-theme #btnBackToHome,
body.light-mode #btnBackToHome,
#btnDialectDropdown,
body.light-theme #btnDialectDropdown,
body.light-mode #btnDialectDropdown {
  background: rgba(239, 227, 209, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
  box-shadow: 0 2px 10px rgba(50, 35, 20, 0.08) !important;
}

#btnBackToHome:hover,
#btnDialectDropdown:hover {
  background: rgba(228, 212, 189, 0.98) !important;
  color: #241206 !important;
}

#btnBackToHome i,
#btnDialectDropdown i {
  color: #85430e !important;
}


/* Guaranteed Brand Word Styling (Eliminate any rectangular background box) */
.landing-brand-word,
.logo-text-animated,
.brand-title,
body.light-mode .landing-brand-word,
body.light-theme .landing-brand-word,
body.light-mode .logo-text-animated,
body.light-theme .logo-text-animated,
body.light-mode .brand-title,
body.light-theme .brand-title {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #361c0c !important;
  color: #361c0c !important;
  filter: none !important;
  text-shadow: none !important;
}


/* ========================================================
   HARMONIZED MAIN MENU DRAWER (Warm Beige & Light Warm Beige)
   ======================================================== */
#mainMenuDrawerPanel,
body.light-theme #mainMenuDrawerPanel,
body.light-mode #mainMenuDrawerPanel {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border-left: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: -12px 0 40px rgba(50, 35, 20, 0.15) !important;
  color: #361c0c !important;
}

#mainMenuDrawerPanel > div:first-child,
body.light-theme #mainMenuDrawerPanel > div:first-child,
body.light-mode #mainMenuDrawerPanel > div:first-child {
  background: rgba(235, 219, 198, 0.98) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.25) !important;
}

#mainMenuDrawerPanel h3,
#mainMenuDrawerPanel h4,
body.light-theme #mainMenuDrawerPanel h3,
body.light-mode #mainMenuDrawerPanel h3 {
  color: #361c0c !important;
}

#mainMenuDrawerPanel p,
body.light-theme #mainMenuDrawerPanel p,
body.light-mode #mainMenuDrawerPanel p {
  color: #54371f !important;
}

#mainMenuDrawerPanel button[onclick="closeMainMenuDrawer()"],
body.light-theme #mainMenuDrawerPanel button[onclick="closeMainMenuDrawer()"] {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}

#mainMenuDrawerPanel div[onclick*="openMyProfile"],
body.light-theme #mainMenuDrawerPanel div[onclick*="openMyProfile"] {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  box-shadow: 0 4px 12px rgba(50, 35, 20, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

#drawerUserName,
body.light-theme #drawerUserName {
  color: #361c0c !important;
}

#drawerGeneralHeader,
#drawerStaffHeader,
body.light-theme #drawerGeneralHeader,
body.light-theme #drawerStaffHeader {
  color: #361c0c !important;
}

#drawerGeneralHeader i,
#drawerStaffHeader i {
  color: #b45309 !important;
}

.drawer-tool-btn,
#mainMenuDrawerPanel .drawer-tool-btn,
#mainMenuDrawerPanel .overflow-y-auto button:not(#drawerCreateGroupBtn):not([onclick*="logout"]):not([onclick*="Logout"]),
body.light-theme .drawer-tool-btn,
body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:not(#drawerCreateGroupBtn):not([onclick*="logout"]):not([onclick*="Logout"]) {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.24) !important;
  color: #361c0c !important;
  box-shadow: 0 3px 10px rgba(50, 35, 20, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.drawer-tool-btn:hover,
#mainMenuDrawerPanel .drawer-tool-btn:hover,
#mainMenuDrawerPanel .overflow-y-auto button:hover {
  background: rgba(241, 230, 214, 0.98) !important;
  border-color: rgba(156, 120, 78, 0.38) !important;
}

.drawer-tool-title,
body.light-theme .drawer-tool-title {
  color: #361c0c !important;
}

.drawer-tool-icon-box,
#mainMenuDrawerPanel .drawer-tool-icon-box,
body.light-theme .drawer-tool-icon-box,
body.light-theme #mainMenuDrawerPanel .drawer-tool-icon-box {
  background: rgba(217, 119, 6, 0.14) !important;
  border: 1px solid rgba(180, 83, 9, 0.28) !important;
  color: #b45309 !important;
  box-shadow: none !important;
}

.drawer-tool-badge,
#mainMenuDrawerPanel .drawer-tool-badge,
body.light-theme .drawer-tool-badge,
body.light-theme #mainMenuDrawerPanel .drawer-tool-badge {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid rgba(180, 83, 9, 0.25) !important;
  color: #78350f !important;
}

#mainMenuDrawerPanel .fa-chevron-left {
  color: #85430e !important;
}


/* Explicit drawer icon color overrides */
.drawer-tool-icon-box i,
#mainMenuDrawerPanel .drawer-tool-icon-box i,
body.light-theme .drawer-tool-icon-box i,
body.light-mode .drawer-tool-icon-box i {
  color: #b45309 !important;
}


/* Guaranteed Amber/Brown Drawer Icons and Chevrons */
#mainMenuDrawerPanel .drawer-tool-icon-box i,
body.light-theme #mainMenuDrawerPanel .drawer-tool-icon-box i,
body.light-mode #mainMenuDrawerPanel .drawer-tool-icon-box i,
#mainMenuDrawerPanel .overflow-y-auto .drawer-tool-icon-box i {
  color: #b45309 !important;
}

#mainMenuDrawerPanel .fa-chevron-left,
body.light-theme #mainMenuDrawerPanel .fa-chevron-left,
body.light-mode #mainMenuDrawerPanel .fa-chevron-left,
#mainMenuDrawerPanel .overflow-y-auto button .fa-chevron-left {
  color: #85430e !important;
}


/* ==========================================================================
   WARM BEIGE & SAGE GREEN PLATFORM-WIDE UNIFICATION (REMOVING ALL WHITE ARTIFACTS)
   ========================================================================== */

/* 1. TOP NAVBAR (Landing & Subpages) */
.landing-navbar-premium,
header#landingHeader,
header.landing-navbar-premium,
#dreamsHeader,
#poemsHeader,
#articlesHeader,
#mainApp > header {
  background: rgba(236, 222, 202, 0.98) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 4px 20px -4px rgba(50, 35, 20, 0.08) !important;
}
#landingHeader .landing-brand-text,
.landing-brand-word,
.brand-title,
#dreamsPageTitle,
#poemsPageTitle,
#articlesPageTitle {
  color: #361c0c !important;
}
#btnDialectDropdown.landing-dialect-pill,
#btnDialectDropdown {
  background: rgba(228, 212, 189, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

/* 2. LANDING BACKGROUND & SIDES */
body.light-mode.in-landing,
body.light-theme.in-landing,
body.in-landing,
#landingPage {
  background-color: #86b89c !important;
  background: #86b89c !important;
  background-image: none !important;
}

/* 3. LANDING FOOTER */
body.light-mode .landing-footer,
body.light-theme .landing-footer,
footer.landing-footer,
.landing-footer {
  background: rgba(235, 219, 198, 0.98) !important;
  border-top: 1px solid rgba(156, 120, 78, 0.28) !important;
  backdrop-filter: blur(16px) !important;
  color: #54371f !important;
}
body.light-mode .landing-footer-brand,
body.light-theme .landing-footer-brand,
.landing-footer-brand {
  color: #361c0c !important;
}
.landing-footer p, .landing-footer span {
  color: #54371f !important;
}

/* 4. CHAT INPUT BAR & MESSAGE BUBBLES */
#chatInputBar,
#customGroupInputBar,
body.light-theme #chatInputBar {
  background: rgba(235, 219, 198, 0.98) !important;
  border-top: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 -4px 20px -4px rgba(50, 35, 20, 0.08) !important;
}
#chatInputBar form,
body.light-theme #chatInputBar form {
  background: rgba(247, 240, 228, 0.98) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 4px 14px -2px rgba(50, 35, 20, 0.08) !important;
}
#chatInputBar #messageInput,
#messageInput,
#customGroupTextInput,
body.light-theme #chatInputBar #messageInput {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}
#messageInput::placeholder,
#customGroupTextInput::placeholder {
  color: #854d0e !important;
  opacity: 0.75 !important;
}
#chatInputBar #publicChatToolsBtn,
body.light-theme #chatInputBar #publicChatToolsBtn {
  background: rgba(239, 227, 209, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #b45309 !important;
}
#chatInputBar #publicChatToolsBtn:hover,
body.light-theme #chatInputBar #publicChatToolsBtn:hover {
  background: rgba(228, 212, 189, 0.98) !important;
  color: #92400e !important;
}
#chatInputBar #sendBtn,
body.light-theme #chatInputBar #sendBtn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(180, 83, 9, 0.3) !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3) !important;
}
body.light-theme .chat-msg-item .bg-slate-800\/90,
body.light-theme .chat-msg-item .bg-slate-800,
body.light-theme .chat-msg-item .bg-slate-900\/95,
body.light-theme .chat-msg-item .bg-slate-900,
body.light-theme [id^="msg-"] .max-w-xl.rounded-3xl,
.chat-msg-bubble,
.msg-bubble {
  background: rgba(247, 240, 228, 0.98) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 4px 14px -3px rgba(50, 35, 20, 0.08) !important;
  color: #361c0c !important;
}
body.light-theme .chat-msg-item .text-slate-100,
body.light-theme .chat-msg-item .text-slate-200,
body.light-theme .chat-msg-item .text-slate-300,
body.light-theme .msg-text-student,
body.light-theme [class*="msg-text-student"] {
  color: #361c0c !important;
}
body.light-theme .chat-msg-item .bg-slate-800\/60,
body.light-theme .chat-msg-item .bg-slate-800\/80,
body.light-theme .chat-msg-item .bg-slate-700\/60,
body.light-theme .chat-msg-item button.text-slate-400 {
  background: rgba(239, 227, 209, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #78350f !important;
}
body.light-theme .chat-msg-item button.text-slate-400:hover {
  background: rgba(228, 212, 189, 0.98) !important;
  color: #451a03 !important;
}

/* 5. ATTENDANCE & ACTIVITY CARDS */
body.light-theme [data-attendance-session] > div,
body.light-theme .attendance-card,
body.light-theme .poll-card,
[data-attendance-session] > div {
  background: linear-gradient(165deg, rgba(241, 228, 209, 0.98) 0%, rgba(228, 211, 188, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.10) !important;
  color: #361c0c !important;
}
body.light-theme [data-attendance-session] .border-slate-800,
body.light-theme [data-attendance-session] .border-slate-700 {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
body.light-theme [data-attendance-session] h3,
body.light-theme [data-attendance-session] h4,
body.light-theme [data-attendance-session] .font-black {
  color: #361c0c !important;
}
body.light-theme [data-attendance-session] p,
body.light-theme [data-attendance-session] span.text-slate-300,
body.light-theme [data-attendance-session] span.text-slate-400 {
  color: #54371f !important;
}
body.light-theme [data-attendance-session] button {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(180, 83, 9, 0.3) !important;
}

/* 6. STAFF LIBRARY MODAL (#libraryModal) */
#libraryModal > div.bg-slate-900,
#libraryModal .w-full.max-w-5xl,
body.light-theme #libraryModal .bg-slate-900 {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 25px 65px -15px rgba(50, 35, 20, 0.20) !important;
  color: #361c0c !important;
}
#libraryModal .border-b,
#libraryModal .border-slate-800,
#libraryModal .border-slate-700 {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
#libraryModal h2, #libraryModal h3, #libraryModal h4 {
  color: #361c0c !important;
}
#libraryModal input,
#libraryModal textarea,
#libraryModal select,
#librarySearchInput,
body.light-theme #libraryModal input,
body.light-theme #libraryModal textarea,
body.light-theme #libraryModal select {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}
#libraryModal input::placeholder,
#libraryModal textarea::placeholder {
  color: #854d0e !important;
  opacity: 0.75 !important;
}
#libraryModal #addBookForm,
#libraryModal .bg-slate-800\/60,
#libraryModal .bg-slate-950\/60,
#libraryModal .bg-slate-800\/40 {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
}
#libraryModal .library-category-pill,
#libraryModal [onclick*="filterLibraryCategory"] {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #54371f !important;
}
#libraryModal .library-category-pill.active,
#libraryModal [onclick*="filterLibraryCategory"].active,
#libraryModal .bg-amber-500,
#libraryModal .bg-amber-600 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border-color: rgba(180, 83, 9, 0.4) !important;
}

/* 7. RECORDED LESSONS MODAL (#recordedLessonsModal) */
#recordedLessonsModal > div,
body.light-theme #recordedLessonsModal > div {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 25px 65px -15px rgba(50, 35, 20, 0.20) !important;
  color: #361c0c !important;
}
#recordedLessonsModal .border-b,
#recordedLessonsModal .bg-slate-950\/60,
#recordedLessonsModal .border-emerald-500\/30 {
  background: rgba(235, 219, 198, 0.98) !important;
  border-color: rgba(156, 120, 78, 0.25) !important;
}
#recordedLessonsModal h3,
#recordedLessonsModal h4 {
  color: #361c0c !important;
}
#recordedLessonsModal input,
#lessonSearchInput,
body.light-theme #recordedLessonsModal input {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}
#recordedLessonsModal input::placeholder {
  color: #854d0e !important;
  opacity: 0.75 !important;
}

/* 8. DREAMS MANAGEMENT SIDEBAR (#dreamSubmissionsSidebar) */
#dreamSubmissionsSidebar,
#dreamSubmissionsSidebar > div,
body.light-theme #dreamSubmissionsSidebar {
  background: rgba(235, 219, 198, 0.98) !important;
  border-left: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}
#dreamSubmissionsSidebar h4,
#dreamSubmissionsSidebar .font-black {
  color: #361c0c !important;
}
#dreamSubmissionsSidebar .bg-slate-900,
body.light-theme #dreamSubmissionsSidebar .bg-slate-900 {
  background: rgba(228, 212, 189, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
}
#dreamSubmissionsSidebar button {
  color: #54371f !important;
}
#dreamSubmissionsSidebar button.bg-purple-600,
#dreamSubmissionsSidebar button.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
}
#dreamSessionsList > div,
body.light-theme #dreamSessionsList > div,
.dream-session-item,
.dream-submission-card {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  box-shadow: 0 4px 12px -2px rgba(50, 35, 20, 0.06) !important;
  color: #361c0c !important;
}
#dreamSessionsList > div:hover,
body.light-theme #dreamSessionsList > div:hover {
  background: rgba(253, 248, 240, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.4) !important;
}
#dreamSessionsList > div.bg-purple-950\/70,
#dreamSessionsList > div.ring-1 {
  background: rgba(254, 243, 199, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.6) !important;
  box-shadow: 0 6px 18px -3px rgba(180, 83, 9, 0.15) !important;
}
#dreamSessionsList h4,
#dreamSessionsList .font-bold,
#dreamSessionsList .text-slate-100,
#dreamSessionsList .text-slate-200 {
  color: #361c0c !important;
}
#dreamSessionsList p,
#dreamSessionsList .text-slate-400,
#dreamSessionsList .text-slate-500 {
  color: #54371f !important;
}

/* 9. GLOBAL MODALS & INPUT SANITIZATION */
div[id$="Modal"]:not(#authScreen) {
  background: rgba(45, 82, 63, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
div[id$="Modal"] > div.bg-slate-900,
div[id$="Modal"] > div.bg-slate-950,
div[id$="Modal"] > div.bg-slate-900\/95,
div[id$="Modal"] > div.bg-slate-950\/90,
div[id$="Modal"] > div.bg-slate-950\/85,
div[id$="Modal"] > div > div.bg-slate-900,
div[id$="Modal"] > div > div.bg-slate-950,
#userProfileModalDialog,
.modal-content,
.executive-modal-box {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98) 0%, rgba(228, 212, 189, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 25px 65px -15px rgba(50, 35, 20, 0.20) !important;
  color: #361c0c !important;
}
div[id$="Modal"] h2,
div[id$="Modal"] h3,
div[id$="Modal"] h4,
div[id$="Modal"] .font-black {
  color: #361c0c !important;
}
div[id$="Modal"] p,
div[id$="Modal"] span.text-slate-300,
div[id$="Modal"] span.text-slate-400 {
  color: #54371f !important;
}
div[id$="Modal"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
div[id$="Modal"] textarea,
div[id$="Modal"] select {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}
div[id$="Modal"] input::placeholder,
div[id$="Modal"] textarea::placeholder {
  color: #854d0e !important;
  opacity: 0.75 !important;
}
div[id$="Modal"] button.bg-slate-800,
div[id$="Modal"] button.bg-slate-850 {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #54371f !important;
}


/* ==========================================================================
   WARM BEIGE & SAGE GREEN PLATFORM-WIDE UNIFICATION - PHASE 2
   (REMOVING ALL REMAINING WHITE, BLACK & MISMATCHED ARTIFACTS ACROSS ALL SCREENS)
   ========================================================================== */

/* --- 1. LIVE LESSON ROOM (#liveLessonModal) --- */
#liveLessonModal,
#liveLessonModal > div {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  box-shadow: 0 25px 65px -15px rgba(50, 35, 20, 0.20) !important;
  color: #361c0c !important;
}
#liveLessonModal .border-b,
#liveLessonModal > div > div:first-child,
#liveLessonModal .bg-slate-950\/90 {
  background: linear-gradient(165deg, rgba(235, 219, 198, 0.98), rgba(224, 206, 182, 0.96)) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
}
#liveLessonModal h3,
#liveLessonModal #liveLessonModalTitle {
  color: #361c0c !important;
}
#liveLessonModal p,
#liveLessonModal #liveLessonPresenterText {
  color: #54371f !important;
}
#liveLessonModal .bg-slate-950\/95,
#liveLessonModal .flex-1.bg-slate-950\/95,
#liveParticipantsList {
  background: rgba(247, 240, 228, 0.96) !important;
}
#liveLessonModal .live-action-dock,
.live-action-dock {
  background: rgba(235, 219, 198, 0.98) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.12) !important;
  divide-color: rgba(156, 120, 78, 0.25) !important;
}
#liveLessonModal .live-action-dock button,
.live-action-dock button {
  color: #361c0c !important;
}
#liveLessonModal .live-action-dock button:hover,
.live-action-dock button:hover {
  background: rgba(224, 206, 182, 0.6) !important;
}
#liveLessonModal .live-action-dock span,
.live-action-dock span {
  color: #361c0c !important;
}
#liveStartEndBtn,
#liveLessonModal #liveStartEndBtn {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  border: 1px solid rgba(180, 83, 9, 0.3) !important;
}
#liveLessonModal button.bg-slate-800 {
  background: rgba(228, 212, 189, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.3) !important;
  color: #361c0c !important;
}

/* --- 2. USER PROFILE MODAL (#userProfileModal) --- */
#userProfileModalDialog {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 2px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}
#userProfileModalDialog .border-b {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
#profFullName {
  color: #361c0c !important;
}
#profUsername {
  color: #78350f !important;
}
#profRegularStatsGrid > div,
#profRegularStatsGrid .bg-slate-950\/70,
#profStarsBox {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}
#profRegularStatsGrid span {
  color: #361c0c !important;
}
#profRegularStatsGrid span[class*="text-amber"] {
  color: #92400e !important;
}
#profSuperAdminSpecialCard,
#profPublishDreamPostContainer,
#profPublishPoemContainer,
#profCoursesViewCard,
#profCoursesEditCard,
#profNotificationContainer,
#profStarsAdjustContainer,
#profSuperAdminActions,
#profSpecialBadgeAdminCard {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
  box-shadow: 0 4px 14px -3px rgba(50, 35, 20, 0.08) !important;
}
#profPublishPoemContainer h4,
#profPublishDreamPostContainer h4,
#profSuperAdminSpecialCard span,
#profStarsAdjustContainer h4,
#profSpecialBadgeAdminCard span {
  color: #361c0c !important;
}
#profPublishPoemContainer p,
#profPublishDreamPostContainer p,
#profStarsAdjustContainer p,
#profSpecialBadgeAdminCard p {
  color: #54371f !important;
}
#profSpecialBadgeAdminCard button,
[id^="badgeBtn"] {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.3) !important;
  color: #361c0c !important;
}
#profSpecialBadgeAdminCard button span,
#profSpecialBadgeAdminCard button div {
  color: #361c0c !important;
}
#profSuperAdminActions select,
#profActionButtonsSlot select,
#userProfileModal select {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

/* --- 3. COMPLAINTS & FEEDBACK MODAL (#complaintsModal) --- */
#complaintsModal > div {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #361c0c !important;
}
#complaintsModal .border-b,
#complaintsModal > div > div:first-child,
#complaintsModal [class*="bg-gradient-to-r"] {
  background: linear-gradient(165deg, rgba(235, 219, 198, 0.98), rgba(224, 206, 182, 0.96)) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
}
#complaintsModal h3,
#complaintsModal h4 {
  color: #361c0c !important;
}
#complaintsModal p,
#complaintsModal span {
  color: #54371f !important;
}

/* --- 4. DREAMS ADMIN SESSIONS SIDEBAR (#dreamAdminSessionsSidebar) --- */
#dreamAdminSessionsSidebar,
#dreamAdminSessionsSidebar > div,
body.light-theme #dreamAdminSessionsSidebar {
  background: rgba(235, 219, 198, 0.98) !important;
  border-left: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}
#dreamAdminSessionsSidebar h4,
#dreamAdminSessionsSidebar .font-black {
  color: #361c0c !important;
}
#dreamAdminSessionsSidebar .border-b {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
#dreamAdminSessionsSidebar .bg-slate-900,
body.light-theme #dreamAdminSessionsSidebar .bg-slate-900 {
  background: rgba(224, 206, 182, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
}
#dreamAdminSessionsSidebar button {
  color: #54371f !important;
}
#dreamAdminSessionsSidebar button.bg-purple-600,
#dreamAdminSessionsSidebar button.active {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
}

/* --- 5. DIALECT SELECTOR DROPDOWN (#dialectDropdownMenu) --- */
#dialectDropdownMenu,
body.light-mode #dialectDropdownMenu,
body.light-theme #dialectDropdownMenu {
  background: rgba(247, 240, 228, 0.98) !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 20px 45px -10px rgba(50, 35, 20, 0.15) !important;
}
#dialectDropdownMenu .border-b {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
#dialectDropdownMenu .border-b span {
  color: #78350f !important;
}
#dialectDropdownMenu button,
body.light-mode .dialect-option,
body.light-theme .dialect-option {
  color: #361c0c !important;
}
#dialectDropdownMenu button:hover,
body.light-mode .dialect-option:hover,
body.light-theme .dialect-option:hover {
  background: rgba(224, 206, 182, 0.6) !important;
  color: #361c0c !important;
}
#dialectDropdownMenu span.rounded-full[class*="bg-"] {
  background-color: #d97706 !important;
}

/* --- 6. AI GUARD / SECURITY COMMAND CENTER (#aiSecurityModal) --- */
#aiSecurityModal > div {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #361c0c !important;
}
#aiSecurityModal .border-b,
#aiSecurityModal > div > div:first-child,
#aiSecurityModal [class*="bg-gradient-to-r"] {
  background: linear-gradient(165deg, rgba(235, 219, 198, 0.98), rgba(224, 206, 182, 0.96)) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
}
#aiSecurityModal h3,
#aiSecurityModal h4 {
  color: #361c0c !important;
}
#aiSecurityModal p,
#aiSecurityModal span {
  color: #54371f !important;
}
#aiSecurityModal .from-rose-950\/60 {
  background: rgba(254, 242, 242, 0.95) !important;
  border: 1.5px solid rgba(244, 63, 94, 0.4) !important;
}
#aiSecurityModal .from-rose-950\/60 h4 {
  color: #881337 !important;
}
#aiSecurityModal .from-rose-950\/60 p {
  color: #9f1239 !important;
}
#aiSecurityModal .grid > div,
#aiSecurityModal .bg-slate-950\/70 {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
}
#aiSecurityModal .grid p {
  color: #54371f !important;
}
#aiSecurityModal .grid h5 {
  color: #361c0c !important;
}
#aiSecurityModal .border.border-slate-800,
#aiSecIncidentsList,
#aiSecIncidentsList > div {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}
#aiSecIncidentsList p,
#aiSecIncidentsList span {
  color: #361c0c !important;
}

/* --- 7. ACTIVITY DATABASE / ATTENDANCE LOGS MODAL (#activityDatabaseModal) --- */
#activityDatabaseModal > div {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #361c0c !important;
}
#activityDatabaseModal .border-b,
#activityDatabaseModal > div > div:first-child,
#activityDatabaseModal [class*="bg-gradient-to-r"] {
  background: linear-gradient(165deg, rgba(235, 219, 198, 0.98), rgba(224, 206, 182, 0.96)) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
}
#activityDatabaseModal h3 {
  color: #361c0c !important;
}
#activityDatabaseModal span {
  color: #54371f !important;
}
#activityDatabaseModal .bg-slate-950\/70,
#activityDatabaseModal .bg-slate-950 {
  background: rgba(228, 212, 189, 0.96) !important;
  border-color: rgba(156, 120, 78, 0.25) !important;
}
#activityDatabaseModal input {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}
#activityDatabaseModal input::placeholder {
  color: #854d0e !important;
  opacity: 0.75 !important;
}
#activityDatabaseModal [class*="rounded-2xl"],
#activityLogsList > div {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}
#activityDatabaseModal [class*="rounded-2xl"] h4,
#activityDatabaseModal [class*="rounded-2xl"] p {
  color: #361c0c !important;
}
#activityDatabaseModal [class*="rounded-2xl"] .rounded-2xl,
#activityDatabaseModal [class*="rounded-2xl"] .rounded-xl {
  background: rgba(239, 227, 209, 0.95) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}

/* --- 8. GENERAL MODAL & COMPONENT CLEANUP (ELIMINATING ALL BLACK / WHITE OVERRIDES) --- */
div[id$="Modal"] > div > div:first-child,
div[id$="Modal"] .modal-header,
div[id$="Modal"] [class*="bg-gradient-to-r"][class*="border-b"] {
  background: linear-gradient(165deg, rgba(235, 219, 198, 0.98), rgba(224, 206, 182, 0.96)) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
}
div[id$="Modal"] > div > div:first-child h2,
div[id$="Modal"] > div > div:first-child h3,
div[id$="Modal"] > div > div:first-child h4 {
  color: #361c0c !important;
}
div[id$="Modal"] .bg-slate-950\/80,
div[id$="Modal"] .bg-slate-950\/70,
div[id$="Modal"] .bg-slate-950\/60,
div[id$="Modal"] .bg-slate-900\/90,
div[id$="Modal"] .bg-slate-900\/80,
div[id$="Modal"] .bg-slate-900\/60 {
  background: rgba(247, 240, 228, 0.96) !important;
  border-color: rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}


/* ==========================================================================
   FEED CARDS: POLLS, ALARMS, COUNTDOWNS, QUESTIONS, REVEALED ANSWERS
   Eliminating all dark/black slate cards across feed and chat
   ========================================================================== */

/* Clear chat-msg-item containers so they are completely transparent and have no borders */
.chat-msg-item,
.chat-msg-item[data-poll-id],
.chat-msg-item[data-alarm-id],
.chat-msg-item[data-question-id],
[id^="poll-msg-slot-"],
[id^="cg-poll-msg-slot-"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 1. Poll Cards */
div.poll-card,
div[id^="poll-card-"] {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.10) !important;
  color: #361c0c !important;
}
[id^="poll-card-"] h3,
[id^="poll-card-"] h4,
[id^="poll-card-"] .font-black {
  color: #361c0c !important;
}
[id^="poll-card-"] span,
[id^="poll-card-"] p,
[id^="poll-card-"] .text-slate-400,
[id^="poll-card-"] .text-slate-500 {
  color: #54371f !important;
}
[id^="poll-card-"] .border-b,
[id^="poll-card-"] .border-t,
[id^="poll-card-"] [class*="border-amber-500"],
[id^="poll-card-"] [class*="border-slate-800"] {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
[id^="poll-card-"] .relative.overflow-hidden.rounded-2xl {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}
[id^="poll-card-"] .relative.overflow-hidden.rounded-2xl:hover {
  background: rgba(253, 248, 240, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.45) !important;
}
[id^="poll-card-"] .relative.overflow-hidden.rounded-2xl span {
  color: #361c0c !important;
}
[id^="poll-card-"] .relative.overflow-hidden.rounded-2xl > div.absolute {
  background: rgba(217, 119, 6, 0.18) !important;
}
[id^="poll-card-"] span.w-5.h-5.rounded-full {
  border-color: rgba(180, 83, 9, 0.5) !important;
}

/* 2. Alarm / Countdown Cards */
div.alarm-card,
div[id^="alarm-card-"] {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.10) !important;
  color: #361c0c !important;
}
[id^="alarm-card-"] h3,
[id^="alarm-card-"] h4,
[id^="alarm-card-"] .text-rose-200 {
  color: #361c0c !important;
}
[id^="alarm-card-"] span.font-mono,
[id^="alarm-card-"] .text-slate-400,
[id^="alarm-card-"] .text-slate-500 {
  color: #54371f !important;
}
[id^="alarm-card-"] .border-b,
[id^="alarm-card-"] .border-t,
[id^="alarm-card-"] [class*="border-rose-500"],
[id^="alarm-card-"] [class*="border-slate-800"] {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
[id^="alarm-card-"] span.rounded-2xl.bg-rose-500\/20,
[id^="alarm-card-"] span.rounded-2xl {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  color: #be123c !important;
}
[id^="alarm-card-"] .bg-slate-950\/80,
[id^="alarm-card-"] [id^="alarm-timer-box-"] > div,
[id^="alarm-timer-box-"] > div {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 2px 6px rgba(50, 35, 20, 0.06) !important;
}
[id^="alarm-card-"] .alarm-digit-days,
[id^="alarm-card-"] .alarm-digit-hours,
[id^="alarm-card-"] .alarm-digit-minutes,
[id^="alarm-card-"] .alarm-digit-seconds,
[id^="alarm-timer-box-"] span:first-child {
  color: #361c0c !important;
}
[id^="alarm-card-"] span.text-\[9px\],
[id^="alarm-timer-box-"] span.text-\[9px\] {
  color: #78350f !important;
}
[id^="alarm-status-badge-"] {
  color: #166534 !important;
}

/* 3. Question Glow & Revealed Answers */
.question-glow,
[data-question-id] > div.question-glow,
.revealed-answers-card {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 10px 30px -5px rgba(50, 35, 20, 0.10) !important;
  color: #361c0c !important;
}
.question-glow h3, .question-glow h4,
.revealed-answers-card h3, .revealed-answers-card h4 {
  color: #361c0c !important;
}
.question-glow p, .question-glow span,
.revealed-answers-card p, .revealed-answers-card span {
  color: #54371f !important;
}
.question-glow .border-b, .question-glow .border-t,
.revealed-answers-card .border-b, .revealed-answers-card .border-t {
  border-color: rgba(156, 120, 78, 0.25) !important;
}
.revealed-answers-card .bg-slate-950\/70,
.question-glow .bg-slate-950\/60,
.question-glow .bg-slate-950\/70 {
  background: rgba(247, 240, 228, 0.96) !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}

/* 4. Classroom Lobby & Waveform Cards */
.classroom-lobby-card {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 4px 14px -3px rgba(50, 35, 20, 0.08) !important;
  color: #361c0c !important;
}
.classroom-lobby-card h3 {
  color: #361c0c !important;
}
.classroom-lobby-card p {
  color: #54371f !important;
}
.voice-waveform-card {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
}


/* ==========================================================================
   DRAWER & TOOLS MENU: WARM BEIGE PALETTE & MOBILE ICON-ONLY VIEW
   ========================================================================== */

/* Main Menu Drawer Styling - 100% Warm Beige */
#mainMenuDrawerPanel,
body.light-theme #mainMenuDrawerPanel,
body.light-mode #mainMenuDrawerPanel {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border-left: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
  box-shadow: -10px 0 35px rgba(50, 35, 20, 0.15) !important;
}
#mainMenuDrawerPanel > div:first-child,
body.light-theme #mainMenuDrawerPanel > div:first-child {
  background: linear-gradient(165deg, rgba(235, 219, 198, 0.98), rgba(224, 206, 182, 0.96)) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
}
#mainMenuDrawerPanel h3,
#mainMenuDrawerPanel h4 {
  color: #361c0c !important;
}
#mainMenuDrawerPanel p {
  color: #54371f !important;
}
.drawer-tool-btn,
#mainMenuDrawerPanel .drawer-tool-btn,
#mainMenuDrawerPanel .overflow-y-auto button:not(#drawerCreateGroupBtn):not([onclick*="logout"]):not([onclick*="Logout"]),
body.light-theme .drawer-tool-btn,
body.light-theme #mainMenuDrawerPanel .overflow-y-auto button:not(#drawerCreateGroupBtn):not([onclick*="logout"]):not([onclick*="Logout"]) {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #361c0c !important;
  box-shadow: 0 4px 14px -3px rgba(50, 35, 20, 0.08) !important;
}
.drawer-tool-btn:hover,
#mainMenuDrawerPanel .drawer-tool-btn:hover {
  background: rgba(253, 248, 240, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.45) !important;
}
.drawer-tool-icon-box,
#mainMenuDrawerPanel .drawer-tool-icon-box {
  background: rgba(217, 119, 6, 0.15) !important;
  border: 1px solid rgba(180, 83, 9, 0.35) !important;
  color: #b45309 !important;
}
.drawer-tool-title,
#mainMenuDrawerPanel .drawer-tool-title {
  color: #361c0c !important;
}
.drawer-tool-badge,
#mainMenuDrawerPanel .drawer-tool-badge {
  background: rgba(217, 119, 6, 0.18) !important;
  border: 1px solid rgba(180, 83, 9, 0.3) !important;
  color: #78350f !important;
}
#mainMenuDrawerPanel .fa-chevron-left {
  color: #a16207 !important;
}
#drawerSettingsList,
#drawerSettingsSection {
  background: rgba(235, 219, 198, 0.95) !important;
  border-color: rgba(156, 120, 78, 0.25) !important;
}

/* Floating Chat Tools Menu (#publicChatToolsMenu & #customGroupToolsMenu) */
#publicChatToolsMenu,
#customGroupToolsMenu {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  box-shadow: 0 15px 35px -5px rgba(50, 35, 20, 0.18) !important;
  color: #361c0c !important;
}
#publicChatToolsMenu button,
#customGroupToolsMenu button {
  background: rgba(247, 240, 228, 0.96) !important;
  border: 1px solid rgba(156, 120, 78, 0.25) !important;
  color: #361c0c !important;
}
#publicChatToolsMenu button:hover,
#customGroupToolsMenu button:hover {
  background: rgba(253, 248, 240, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.45) !important;
}
#publicChatToolsMenu button span,
#customGroupToolsMenu button span {
  color: #361c0c !important;
}

/* Modals: Create & Edit Poll */
#createPollModal > div > div,
#editPollModal > div > div {
  background: linear-gradient(165deg, rgba(239, 227, 209, 0.98), rgba(228, 212, 189, 0.97)) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}
#createPollModal h4, #editPollModal h4 {
  color: #361c0c !important;
}
#createPollModal input, #createPollModal textarea,
#editPollModal input, #editPollModal textarea {
  background: #fbf7f0 !important;
  border: 1px solid rgba(156, 120, 78, 0.35) !important;
  color: #361c0c !important;
}

/* ================= MOBILE VIEW: ONLY SHOW ICONS ================= */
@media (max-width: 640px) {
  /* 1. Main Menu Drawer on Mobile: Compact Icon Rail / Dock */
  #mainMenuDrawerPanel {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    padding: 0.5rem 0.25rem !important;
  }
  #mainMenuDrawerPanel > div:first-child {
    padding: 0.6rem 0.25rem !important;
    justify-content: center !important;
  }
  #mainMenuDrawerPanel > div:first-child > div:first-child > div:last-child {
    display: none !important; /* Hide title & subtitle */
  }
  #mainMenuDrawerPanel div[onclick*="openMyProfile"] {
    margin: 0.25rem auto !important;
    padding: 0.35rem !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 1rem !important;
  }
  #mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:first-child > div:last-child,
  #mainMenuDrawerPanel div[onclick*="openMyProfile"] span,
  #mainMenuDrawerPanel div[onclick*="openMyProfile"] i:not(.fa-user) {
    display: none !important; /* Hide profile texts, only show avatar */
  }
  .drawer-tool-btn,
  #mainMenuDrawerPanel .drawer-tool-btn,
  #mainMenuDrawerPanel .overflow-y-auto button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    margin: 0.35rem auto !important;
    border-radius: 1rem !important;
  }
  .drawer-tool-title,
  .drawer-tool-badge,
  #mainMenuDrawerPanel .drawer-tool-title,
  #mainMenuDrawerPanel .drawer-tool-badge,
  #mainMenuDrawerPanel span:not(.fa-solid):not(.fa-regular):not(.fa-brands),
  #mainMenuDrawerPanel .fa-chevron-left,
  #mainMenuDrawerPanel p {
    display: none !important; /* ONLY ICONS APPEAR ON MOBILE */
  }
  .drawer-tool-icon-box,
  #mainMenuDrawerPanel .drawer-tool-icon-box {
    margin: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .drawer-tool-icon-box i,
  #mainMenuDrawerPanel .drawer-tool-icon-box i {
    font-size: 1.15rem !important;
  }
  #mainMenuDrawerPanel .border-t button[onclick*="logout"],
  #mainMenuDrawerPanel .border-t button[onclick*="Logout"] {
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    margin: 0.35rem auto !important;
    justify-content: center !important;
    border-radius: 1rem !important;
  }
  #mainMenuDrawerPanel .border-t button[onclick*="logout"] span,
  #mainMenuDrawerPanel .border-t button[onclick*="Logout"] span {
    display: none !important;
  }

  /* 2. Chat Floating Tools Menu on Mobile: Horizontal Icon Row */
  #publicChatToolsMenu,
  #customGroupToolsMenu {
    min-width: unset !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
    padding: 0.4rem !important;
    border-radius: 1.25rem !important;
  }
  #publicChatToolsMenu button,
  #customGroupToolsMenu button {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 0.85rem !important;
  }
  #publicChatToolsMenu button span,
  #customGroupToolsMenu button span {
    display: none !important; /* Only icons appear on mobile */
  }
  #publicChatToolsMenu button div,
  #customGroupToolsMenu button div {
    margin: 0 !important;
  }
}

/* ==========================================================================
   MATTE SAGE GREEN BACKGROUND ENFORCEMENT (خەونە لێکدراوەکان و هەموو پەڕەکان)
   Ensures uniform matte Sage Green (#86b89c) without any dual-tone shiny gradients
   ========================================================================== */
html,
body,
body.light-mode,
body.light-theme,
body.in-landing,
body.in-app,
#mainApp,
#landingPage,
#dreamsGatewaySection {
  background-color: #86b89c !important;
  background: #86b89c !important;
  background-image: none !important;
}

/* ==========================================================================
   MODAL LAYERING & OVERLAY FIX
   Ensures modals always float above fixed headers (#dreamsHeader, #poemsHeader, #articlesHeader)
   ========================================================================== */
#dreamsHeader,
#poemsHeader,
#articlesHeader {
  z-index: 40 !important;
}

.modal-overlay,
div[id^="modal"],
div[id$="Modal"],
div[id$="ModalDialog"] {
  z-index: 100000 !important;
}
