/* =========================================================
   OTP PAGE
========================================================= */

:root {
  --bg: #050816;
  --surface: #0f172a;
  --card: rgba(17, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #eb6835;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

.main-content {
  margin-left: 260px; /* Sidebar width */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  margin: 100px auto 40px;
  max-width: 1200px;
  width: calc(100% - 80px);
  padding: 60px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6), rgba(15, 23, 42, 0.8), rgba(88, 28, 135, 0.2));
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.breadcrumb {
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
}

.hero-tags {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.hero-tags span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(235, 104, 53, 0.1);
  color: var(--accent);
  border: 1px solid rgba(235, 104, 53, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.preview-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-box input {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
}

.preview-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(235, 104, 53, 0.2);
  transform: translateY(-4px);
}

/* =========================================================
   OTP SECTION
========================================================= */
.otp-section {
  padding: 20px 40px 80px;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.otp-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 50px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.otp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.otp-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(235, 104, 53, 0.1);
  color: var(--accent);
  border: 1px solid rgba(235, 104, 53, 0.3);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.otp-card h2 {
  font-size: 42px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  color: #fff;
}

.otp-card p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   MODERN OTP
========================================================= */
.otp-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.otp-container input {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  outline: none;
  transition: 0.3s;
}

.otp-container input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(235, 104, 53, 0.2);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   GLASS OTP
========================================================= */
.glass-otp {
  display: flex;
  gap: 16px;
}

.glass-otp input {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  color: #fff;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
}

.glass-otp input:focus {
  transform: scale(1.08);
  border-color: #8b5cf6;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4), inset 0 0 15px rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.1);
}

/* =========================================================
   NEON OTP
========================================================= */
.neon-otp {
  display: flex;
  gap: 16px;
}

.neon-otp input {
  width: 64px;
  height: 64px;
  background: #000;
  border: 2px solid #00f5ff;
  color: #00f5ff;
  border-radius: 14px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  outline: none;
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.neon-otp input:focus {
  box-shadow: 0 0 15px #00f5ff, 0 0 30px #00f5ff inset;
  transform: translateY(-4px);
  background: rgba(0, 245, 255, 0.05);
}

/* =========================================================
   FLOATING OTP
========================================================= */
.floating-otp {
  display: flex;
  gap: 16px;
}

.floating-otp input {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  outline: none;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.floating-otp input:focus {
  transform: translateY(-12px);
  background: var(--accent);
  box-shadow: 0 15px 30px rgba(235, 104, 53, 0.4);
}

/* =========================================================
   GRADIENT OTP
========================================================= */
.gradient-otp {
  display: flex;
  gap: 16px;
}

.gradient-otp input {
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: linear-gradient(#0f172a, #0f172a) padding-box,
              linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) border-box;
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
}

.gradient-otp input:focus {
  background: linear-gradient(#0f172a, #0f172a) padding-box,
              linear-gradient(135deg, #f43f5e, #8b5cf6, #3b82f6) border-box;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* =========================================================
   UNDERLINE OTP
========================================================= */
.underline-otp {
  display: flex;
  gap: 20px;
}

.underline-otp input {
  width: 50px;
  height: 60px;
  border: none;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
  border-radius: 0;
}

.underline-otp input:focus {
  border-bottom-color: var(--accent);
  text-shadow: 0 0 10px rgba(235, 104, 53, 0.5);
  transform: translateY(-2px);
}

/* =========================================================
   ROUNDED OTP
========================================================= */
.rounded-otp {
  display: flex;
  gap: 16px;
}
.rounded-otp input {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
}
.rounded-otp input:focus {
  border-color: var(--accent);
  background: rgba(235, 104, 53, 0.1);
}

/* =========================================================
   DASHED BORDER OTP
========================================================= */
.dashed-otp {
  display: flex;
  gap: 16px;
}
.dashed-otp input {
  width: 60px;
  height: 60px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
}
.dashed-otp input:focus {
  border-color: var(--accent);
  border-style: solid;
}

/* =========================================================
   SOLID SQUARE OTP
========================================================= */
.square-solid-otp {
  display: flex;
  gap: 12px;
}
.square-solid-otp input {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 0;
  background: #1e293b;
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  outline: none;
  transition: 0.2s;
}
.square-solid-otp input:focus {
  background: #334155;
  box-shadow: 0 4px 0 var(--accent);
}

/* =========================================================
   SOFT SHADOW OTP
========================================================= */
.soft-shadow-otp {
  display: flex;
  gap: 16px;
}
.soft-shadow-otp input {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.5), inset -4px -4px 8px rgba(255,255,255,0.05);
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition: 0.3s;
}
.soft-shadow-otp input:focus {
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5), -4px -4px 8px rgba(255,255,255,0.05);
  border: 1px solid var(--accent);
}

/* =========================================================
   THICK BORDER OTP
========================================================= */
.thick-border-otp {
  display: flex;
  gap: 16px;
}
.thick-border-otp input {
  width: 56px;
  height: 64px;
  border: 4px solid #334155;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  outline: none;
  transition: 0.2s;
}
.thick-border-otp input:focus {
  border-color: var(--accent);
}

/* =========================================================
   GHOST OTP
========================================================= */
.ghost-otp {
  display: flex;
  gap: 16px;
}
.ghost-otp input {
  width: 60px;
  height: 60px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  text-align: center;
  font-size: 26px;
  outline: none;
  transition: 0.3s;
}
.ghost-otp input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.ghost-otp input:focus {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   SPLIT DASH OTP
========================================================= */
.split-dash-otp {
  display: flex;
  gap: 12px;
  align-items: center;
}
.split-dash-otp input {
  width: 50px;
  height: 56px;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #1e293b;
  color: #fff;
  text-align: center;
  font-size: 22px;
  outline: none;
  transition: 0.3s;
}
.split-dash-otp input:focus {
  border-color: var(--accent);
}
.split-dash-otp .separator {
  color: #94a3b8;
  font-size: 24px;
  font-weight: bold;
}

/* =========================================================
   OUTLINE GLOW OTP
========================================================= */
.outline-glow-otp {
  display: flex;
  gap: 16px;
}
.outline-glow-otp input {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 24px;
  outline: none;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.outline-glow-otp input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

/* =========================================================
   MINIMAL BOX OTP
========================================================= */
.minimal-box-otp {
  display: flex;
  gap: 20px;
}
.minimal-box-otp input {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  outline: none;
  transition: 0.3s;
}
.minimal-box-otp input:focus {
  border-color: #fff;
}

/* =========================================================
   TWO-TONE OTP
========================================================= */
.two-tone-otp {
  display: flex;
  gap: 16px;
}
.two-tone-otp input {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #334155 50%, #1e293b 50%);
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  outline: none;
  transition: 0.3s;
}
.two-tone-otp input:focus {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .otp-card {
    padding: 30px;
  }
  
  .hero {
    margin: 80px 20px 20px;
    padding: 30px;
  }
  
  .hero h1 {
    font-size: 46px;
  }
  
  .otp-container input, .glass-otp input, .neon-otp input, .floating-otp input, .gradient-otp input {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}
/* ============================================================
   THEME STYLING OVERRIDES
   Navbar, Sidebar, and Footer theme colors:
   - Light Mode: White background, dark text/icons
   - Dark Mode: Black background, light/white text/icons
   ============================================================ */

/* ==========================================
   1. LIGHT MODE SPECIFIC (body:not(.dark-mode))
   ========================================== */
body:not(.dark-mode) .navbar,
body:not(.dark-mode) header.navbar,
body:not(.dark-mode) nav.navbar,
body:not(.dark-mode) .sidebar,
body:not(.dark-mode) aside.sidebar,
body:not(.dark-mode) .footer,
body:not(.dark-mode) footer.footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Ensure text, icons, links inside these components are dark */
body:not(.dark-mode) .navbar *,
body:not(.dark-mode) header.navbar *,
body:not(.dark-mode) nav.navbar *,
body:not(.dark-mode) .sidebar *,
body:not(.dark-mode) aside.sidebar *,
body:not(.dark-mode) .footer *,
body:not(.dark-mode) footer.footer * {
  color: #334155 !important;
}

/* Titles and major headings */
body:not(.dark-mode) .navbar .logo,
body:not(.dark-mode) .sidebar .sidebar-brand,
body:not(.dark-mode) .sidebar h2,
body:not(.dark-mode) .sidebar .brand-text,
body:not(.dark-mode) .footer h2,
body:not(.dark-mode) .footer h3,
body:not(.dark-mode) .footer-logo {
  color: #0f172a !important;
}

/* Sidebar navigation links */
body:not(.dark-mode) .sidebar-nav li a,
body:not(.dark-mode) .sidebar ul li a,
body:not(.dark-mode) .sidebar a {
  background: transparent !important;
  color: #475569 !important;
}

/* Sidebar active link and hover states */
body:not(.dark-mode) .sidebar-nav li.active a,
body:not(.dark-mode) .sidebar-nav li a:hover,
body:not(.dark-mode) .sidebar ul li.active a,
body:not(.dark-mode) .sidebar ul li a:hover,
body:not(.dark-mode) .sidebar a:hover,
body:not(.dark-mode) .sidebar .active a {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body:not(.dark-mode) .sidebar-nav li.active a *,
body:not(.dark-mode) .sidebar-nav li a:hover *,
body:not(.dark-mode) .sidebar ul li.active a *,
body:not(.dark-mode) .sidebar ul li a:hover *,
body:not(.dark-mode) .sidebar a:hover *,
body:not(.dark-mode) .sidebar .active a * {
  color: #0f172a !important;
}

/* Footer links hover */
body:not(.dark-mode) .footer a:hover,
body:not(.dark-mode) footer.footer a:hover {
  color: #4f46e5 !important; /* Premium brand indigo */
}

/* Search bar inside navbar */
body:not(.dark-mode) .search-bar input {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body:not(.dark-mode) .search-bar input::placeholder {
  color: #64748b !important;
}

/* Outline and secondary buttons inside light navbar/sidebar */
body:not(.dark-mode) .navbar .nav-btn.outline-nav-btn,
body:not(.dark-mode) .navbar .outline-btn {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body:not(.dark-mode) .navbar .nav-btn.outline-nav-btn:hover,
body:not(.dark-mode) .navbar .outline-btn:hover {
  background-color: #f1f5f9 !important;
}


/* ==========================================
   2. DARK MODE SPECIFIC (body.dark-mode)
   ========================================== */
body.dark-mode .navbar,
body.dark-mode header.navbar,
body.dark-mode nav.navbar,
body.dark-mode .sidebar,
body.dark-mode aside.sidebar,
body.dark-mode .footer,
body.dark-mode footer.footer {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
  box-shadow: none !important;
}

/* Ensure text, icons, links inside these components are light */
body.dark-mode .navbar *,
body.dark-mode header.navbar *,
body.dark-mode nav.navbar *,
body.dark-mode .sidebar *,
body.dark-mode aside.sidebar *,
body.dark-mode .footer *,
body.dark-mode footer.footer * {
  color: #cbd5e1 !important; /* slate-300 */
}

/* Titles and major headings */
body.dark-mode .navbar .logo,
body.dark-mode .sidebar .sidebar-brand,
body.dark-mode .sidebar h2,
body.dark-mode .sidebar .brand-text,
body.dark-mode .footer h2,
body.dark-mode .footer h3,
body.dark-mode .footer-logo {
  color: #ffffff !important;
}

/* Sidebar navigation links */
body.dark-mode .sidebar-nav li a,
body.dark-mode .sidebar ul li a,
body.dark-mode .sidebar a {
  background: transparent !important;
  color: #94a3b8 !important;
}

/* Sidebar active link and hover states */
body.dark-mode .sidebar-nav li.active a,
body.dark-mode .sidebar-nav li a:hover,
body.dark-mode .sidebar ul li.active a,
body.dark-mode .sidebar ul li a:hover,
body.dark-mode .sidebar a:hover,
body.dark-mode .sidebar .active a {
  background-color: #1e293b !important; /* slate-800 */
  color: #ffffff !important;
}

body.dark-mode .sidebar-nav li.active a *,
body.dark-mode .sidebar-nav li a:hover *,
body.dark-mode .sidebar ul li.active a *,
body.dark-mode .sidebar ul li a:hover *,
body.dark-mode .sidebar a:hover *,
body.dark-mode .sidebar .active a * {
  color: #ffffff !important;
}

/* Footer links hover */
body.dark-mode .footer a:hover,
body.dark-mode footer.footer a:hover {
  color: #818cf8 !important; /* Indigo-400 */
}

/* Search bar inside navbar */
body.dark-mode .search-bar input {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #1e293b !important;
}
body.dark-mode .search-bar input::placeholder {
  color: #475569 !important;
}

/* Secondary/outline buttons in dark navbar */
body.dark-mode .navbar .nav-btn.outline-nav-btn,
body.dark-mode .navbar .outline-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}
body.dark-mode .navbar .nav-btn.outline-nav-btn:hover,
body.dark-mode .navbar .outline-btn:hover {
  background-color: #0f172a !important;
}


/* ==========================================
   3. THEME TOGGLE BUTTON STYLING (GLOBAL)
   ========================================== */
.theme-toggle,
#darkModeToggle,
#theme-toggle {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 1.15rem !important;
  padding: 8px 12px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

body:not(.dark-mode) .theme-toggle,
body:not(.dark-mode) #darkModeToggle,
body:not(.dark-mode) #theme-toggle {
  color: #475569 !important;
  background-color: #f1f5f9 !important;
}
body:not(.dark-mode) .theme-toggle:hover,
body:not(.dark-mode) #darkModeToggle:hover,
body:not(.dark-mode) #theme-toggle:hover {
  color: #0f172a !important;
  background-color: #e2e8f0 !important;
  transform: scale(1.05);
}

body.dark-mode .theme-toggle,
body.dark-mode #darkModeToggle,
body.dark-mode #theme-toggle {
  color: #e2e8f0 !important;
  background-color: #1e293b !important;
}
body.dark-mode .theme-toggle:hover,
body.dark-mode #darkModeToggle:hover,
body.dark-mode #theme-toggle:hover {
  color: #ffffff !important;
  background-color: #334155 !important;
  transform: scale(1.05);
}

/* Floating theme toggle button (for pages without navbar/sidebar) */
.theme-toggle-floating {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
body.dark-mode .theme-toggle-floating {
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

/* Sidebar list item toggle button */
.sidebar .theme-toggle-sidebar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  width: calc(100% - 32px) !important;
  margin: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  border: none !important;
  background-color: transparent !important;
}
body:not(.dark-mode) .sidebar .theme-toggle-sidebar {
  color: #475569 !important;
  background-color: #f1f5f9 !important;
}
body:not(.dark-mode) .sidebar .theme-toggle-sidebar:hover {
  color: #0f172a !important;
  background-color: #e2e8f0 !important;
}
body.dark-mode .sidebar .theme-toggle-sidebar {
  color: #cbd5e1 !important;
  background-color: #1e293b !important;
}
body.dark-mode .sidebar .theme-toggle-sidebar:hover {
  color: #ffffff !important;
  background-color: #334155 !important;
}
/* ============================================================
   THEME STYLING OVERRIDES
   Navbar, Sidebar, and Footer theme colors:
   - Light Mode: White background, dark text/icons
   - Dark Mode: Black background, light/white text/icons
   ============================================================ */

/* ==========================================
   1. LIGHT MODE SPECIFIC (body:not(.dark-mode))
   ========================================== */
body:not(.dark-mode) .navbar,
body:not(.dark-mode) header.navbar,
body:not(.dark-mode) nav.navbar,
body:not(.dark-mode) .sidebar,
body:not(.dark-mode) aside.sidebar,
body:not(.dark-mode) .footer,
body:not(.dark-mode) footer.footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Ensure text, icons, links inside these components are dark */
body:not(.dark-mode) .navbar *,
body:not(.dark-mode) header.navbar *,
body:not(.dark-mode) nav.navbar *,
body:not(.dark-mode) .sidebar *,
body:not(.dark-mode) aside.sidebar *,
body:not(.dark-mode) .footer *,
body:not(.dark-mode) footer.footer * {
  color: #334155 !important;
}

/* Titles and major headings */
body:not(.dark-mode) .navbar .logo,
body:not(.dark-mode) .sidebar .sidebar-brand,
body:not(.dark-mode) .sidebar h2,
body:not(.dark-mode) .sidebar .brand-text,
body:not(.dark-mode) .footer h2,
body:not(.dark-mode) .footer h3,
body:not(.dark-mode) .footer-logo {
  color: #0f172a !important;
}

/* Sidebar navigation links */
body:not(.dark-mode) .sidebar-nav li a,
body:not(.dark-mode) .sidebar ul li a,
body:not(.dark-mode) .sidebar a {
  background: transparent !important;
  color: #475569 !important;
}

/* Sidebar active link and hover states */
body:not(.dark-mode) .sidebar-nav li.active a,
body:not(.dark-mode) .sidebar-nav li a:hover,
body:not(.dark-mode) .sidebar ul li.active a,
body:not(.dark-mode) .sidebar ul li a:hover,
body:not(.dark-mode) .sidebar a:hover,
body:not(.dark-mode) .sidebar .active a {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body:not(.dark-mode) .sidebar-nav li.active a *,
body:not(.dark-mode) .sidebar-nav li a:hover *,
body:not(.dark-mode) .sidebar ul li.active a *,
body:not(.dark-mode) .sidebar ul li a:hover *,
body:not(.dark-mode) .sidebar a:hover *,
body:not(.dark-mode) .sidebar .active a * {
  color: #0f172a !important;
}

/* Footer links hover */
body:not(.dark-mode) .footer a:hover,
body:not(.dark-mode) footer.footer a:hover {
  color: #4f46e5 !important; /* Premium brand indigo */
}

/* Search bar inside navbar */
body:not(.dark-mode) .search-bar input {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body:not(.dark-mode) .search-bar input::placeholder {
  color: #64748b !important;
}

/* Outline and secondary buttons inside light navbar/sidebar */
body:not(.dark-mode) .navbar .nav-btn.outline-nav-btn,
body:not(.dark-mode) .navbar .outline-btn {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body:not(.dark-mode) .navbar .nav-btn.outline-nav-btn:hover,
body:not(.dark-mode) .navbar .outline-btn:hover {
  background-color: #f1f5f9 !important;
}


/* ==========================================
   2. DARK MODE SPECIFIC (body.dark-mode)
   ========================================== */
body.dark-mode .navbar,
body.dark-mode header.navbar,
body.dark-mode nav.navbar,
body.dark-mode .sidebar,
body.dark-mode aside.sidebar,
body.dark-mode .footer,
body.dark-mode footer.footer {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
  box-shadow: none !important;
}

/* Ensure text, icons, links inside these components are light */
body.dark-mode .navbar *,
body.dark-mode header.navbar *,
body.dark-mode nav.navbar *,
body.dark-mode .sidebar *,
body.dark-mode aside.sidebar *,
body.dark-mode .footer *,
body.dark-mode footer.footer * {
  color: #cbd5e1 !important; /* slate-300 */
}

/* Titles and major headings */
body.dark-mode .navbar .logo,
body.dark-mode .sidebar .sidebar-brand,
body.dark-mode .sidebar h2,
body.dark-mode .sidebar .brand-text,
body.dark-mode .footer h2,
body.dark-mode .footer h3,
body.dark-mode .footer-logo {
  color: #ffffff !important;
}

/* Sidebar navigation links */
body.dark-mode .sidebar-nav li a,
body.dark-mode .sidebar ul li a,
body.dark-mode .sidebar a {
  background: transparent !important;
  color: #94a3b8 !important;
}

/* Sidebar active link and hover states */
body.dark-mode .sidebar-nav li.active a,
body.dark-mode .sidebar-nav li a:hover,
body.dark-mode .sidebar ul li.active a,
body.dark-mode .sidebar ul li a:hover,
body.dark-mode .sidebar a:hover,
body.dark-mode .sidebar .active a {
  background-color: #1e293b !important; /* slate-800 */
  color: #ffffff !important;
}

body.dark-mode .sidebar-nav li.active a *,
body.dark-mode .sidebar-nav li a:hover *,
body.dark-mode .sidebar ul li.active a *,
body.dark-mode .sidebar ul li a:hover *,
body.dark-mode .sidebar a:hover *,
body.dark-mode .sidebar .active a * {
  color: #ffffff !important;
}

/* Footer links hover */
body.dark-mode .footer a:hover,
body.dark-mode footer.footer a:hover {
  color: #818cf8 !important; /* Indigo-400 */
}

/* Search bar inside navbar */
body.dark-mode .search-bar input {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #1e293b !important;
}
body.dark-mode .search-bar input::placeholder {
  color: #475569 !important;
}

/* Secondary/outline buttons in dark navbar */
body.dark-mode .navbar .nav-btn.outline-nav-btn,
body.dark-mode .navbar .outline-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}
body.dark-mode .navbar .nav-btn.outline-nav-btn:hover,
body.dark-mode .navbar .outline-btn:hover {
  background-color: #0f172a !important;
}


/* ==========================================
   3. THEME TOGGLE BUTTON STYLING (GLOBAL)
   ========================================== */
.theme-toggle,
#darkModeToggle,
#theme-toggle {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 1.15rem !important;
  padding: 8px 12px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

body:not(.dark-mode) .theme-toggle,
body:not(.dark-mode) #darkModeToggle,
body:not(.dark-mode) #theme-toggle {
  color: #475569 !important;
  background-color: #f1f5f9 !important;
}
body:not(.dark-mode) .theme-toggle:hover,
body:not(.dark-mode) #darkModeToggle:hover,
body:not(.dark-mode) #theme-toggle:hover {
  color: #0f172a !important;
  background-color: #e2e8f0 !important;
  transform: scale(1.05);
}

body.dark-mode .theme-toggle,
body.dark-mode #darkModeToggle,
body.dark-mode #theme-toggle {
  color: #e2e8f0 !important;
  background-color: #1e293b !important;
}
body.dark-mode .theme-toggle:hover,
body.dark-mode #darkModeToggle:hover,
body.dark-mode #theme-toggle:hover {
  color: #ffffff !important;
  background-color: #334155 !important;
  transform: scale(1.05);
}

/* Floating theme toggle button (for pages without navbar/sidebar) */
.theme-toggle-floating {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
body.dark-mode .theme-toggle-floating {
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

/* Sidebar list item toggle button */
.sidebar .theme-toggle-sidebar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  width: calc(100% - 32px) !important;
  margin: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  border: none !important;
  background-color: transparent !important;
}
body:not(.dark-mode) .sidebar .theme-toggle-sidebar {
  color: #475569 !important;
  background-color: #f1f5f9 !important;
}
body:not(.dark-mode) .sidebar .theme-toggle-sidebar:hover {
  color: #0f172a !important;
  background-color: #e2e8f0 !important;
}
body.dark-mode .sidebar .theme-toggle-sidebar {
  color: #cbd5e1 !important;
  background-color: #1e293b !important;
}
body.dark-mode .sidebar .theme-toggle-sidebar:hover {
  color: #ffffff !important;
  background-color: #334155 !important;
}