:root{

  --bg:#060816;
  --card:#12192b;

  --border:rgba(255,255,255,.08);

  --text:#ffffff;
  --muted:#98a3bd;

  --accent:#ff7a3d;
  --accent2:#7b61ff;

  --green:#22c55e;
  --red:#ef4444;
  --blue:#3b82f6;

  --transition:.35s ease;
}

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

body{

  background:
    linear-gradient(
      180deg,
      #050816,
      #0b1022
    );

  color:var(--text);

  font-family:'DM Sans',sans-serif;

  overflow-x:hidden;
}

/* SIDEBAR */

.sidebar{

  position:fixed;

  top:0;
  left:0;

  width:240px;
  height:100vh;

  background:
    linear-gradient(
      180deg,
      #050816,
      #0d1226
    );

  border-right:
    1px solid var(--border);

  padding:24px 18px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.sidebar-brand{

  display:flex;
  align-items:center;

  gap:14px;

  margin-bottom:40px;
}

.brand-icon{

  width:46px;
  height:46px;

  border-radius:16px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );
}

.brand-text{

  font-size:28px;

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

  font-weight:800;
}

.sidebar-nav{

  display:flex;
  flex-direction:column;

  gap:10px;
}

.sidebar-nav a{

  text-decoration:none;

  color:#9aa4bf;

  padding:15px 18px;

  border-radius:18px;

  display:flex;
  align-items:center;

  gap:14px;

  transition:var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav .active{

  background:
    rgba(255,255,255,.06);

  color:white;
}

.sidebar-footer{

  display:flex;
  gap:12px;
}

.sidebar-footer a{

  width:44px;
  height:44px;

  border-radius:14px;

  background:
    rgba(255,255,255,.05);

  display:flex;
  align-items:center;
  justify-content:center;

  color:white;

  text-decoration:none;
}

/* NAVBAR */

.navbar{

  position:fixed;

  top:0;
  left:240px;
  right:0;

  height:82px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 30px;

  background:
    rgba(5,8,22,.82);

  backdrop-filter:blur(18px);

  border-bottom:
    1px solid var(--border);

  z-index:999;
}

.search-bar{

  width:420px;

  display:flex;
  align-items:center;

  gap:12px;

  padding:14px 18px;

  border-radius:999px;

  background:
    rgba(255,255,255,.05);

  border:
    1px solid var(--border);
}

.search-bar input{

  width:100%;

  border:none;
  outline:none;

  background:none;

  color:white;
}

.nav-actions{

  display:flex;
  gap:14px;
}

.outline-btn,
.primary-btn{

  border:none;

  padding:14px 20px;

  border-radius:18px;

  cursor:pointer;

  font-weight:700;
}

.outline-btn{

  background:
    rgba(255,255,255,.06);

  color:white;
}

.primary-btn{

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );

  color:white;
}

/* MAIN */

.main-home{

  margin-left:240px;

  padding:120px 40px 60px;
}

/* HERO */

.hero-section{

  text-align:center;

  margin-bottom:70px;
}

.hero-badge{

  display:inline-flex;

  padding:12px 18px;

  border-radius:999px;

  background:
    rgba(255,255,255,.06);

  border:
    1px solid var(--border);

  margin-bottom:24px;
}

.hero-section h1{

  font-size:
    clamp(58px,8vw,110px);

  line-height:1;

  margin-bottom:20px;

  font-family:'Syne',sans-serif;
}

.hero-section h1 span{

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
}

.hero-section p{

  color:var(--muted);

  max-width:760px;

  margin:auto;

  line-height:1.8;

  font-size:18px;
}

/* GRID */

.snackbar-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

  gap:28px;
}

/* CARD */

.snackbar-card{

  background:
    linear-gradient(
      145deg,
      #12192b,
      #172038
    );

  border:
    1px solid var(--border);

  border-radius:32px;

  padding:34px;

  text-align:center;

  transition:var(--transition);
}

.snackbar-card:hover{

  transform:translateY(-8px);
}

.card-icon{

  width:90px;
  height:90px;

  border-radius:28px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:34px;

  margin:auto auto 28px;
}

.green{
  background:linear-gradient(135deg,#22c55e,#4ade80);
}

.red{
  background:linear-gradient(135deg,#ef4444,#f87171);
}

.blue{
  background:linear-gradient(135deg,#3b82f6,#38bdf8);
}

.snackbar-card h2{

  font-size:38px;

  margin-bottom:18px;

  font-family:'Syne',sans-serif;
}

.snackbar-card p{

  color:var(--muted);

  line-height:1.8;

  margin-bottom:30px;
}

/* BUTTON */

.show-btn{

  border:none;

  padding:18px 28px;

  border-radius:18px;

  color:white;

  font-weight:700;

  cursor:pointer;
}

.success-btn{
  background:linear-gradient(135deg,#22c55e,#4ade80);
}

.error-btn{
  background:linear-gradient(135deg,#ef4444,#f87171);
}

.info-btn{
  background:linear-gradient(135deg,#3b82f6,#38bdf8);
}

/* SNACKBAR */

.snackbar-container{

  position:fixed;

  right:30px;
  bottom:30px;

  display:flex;
  flex-direction:column;

  gap:18px;

  z-index:99999;
}

.snackbar{

  min-width:320px;

  padding:18px 20px;

  border-radius:22px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:18px;

  color:white;

  animation:
    slideIn .35s ease;
}

.snackbar-left{

  display:flex;
  align-items:center;

  gap:14px;
}

.snackbar i{

  font-size:22px;
}

.snackbar.success{
  background:linear-gradient(135deg,#22c55e,#15803d);
}

.snackbar.error{
  background:linear-gradient(135deg,#ef4444,#b91c1c);
}

.snackbar.info{
  background:linear-gradient(135deg,#3b82f6,#2563eb);
}

.close-snackbar{

  cursor:pointer;

  opacity:.8;
}

/* ANIMATION */

@keyframes slideIn{

  from{

    opacity:0;

    transform:
      translateX(100px);
  }

  to{

    opacity:1;

    transform:
      translateX(0);
  }

}

/* RESPONSIVE */

@media(max-width:900px){

  .sidebar{
    display:none;
  }

  .navbar,
  .main-home{

    margin-left:0;

    left:0;
  }

}

@media(max-width:768px){

  .navbar{

    flex-direction:column;

    height:auto;

    padding:18px;

    gap:16px;
  }

  .search-bar{
    width:100%;
  }

  .main-home{
    padding:160px 20px 40px;
  }

  .snackbar-grid{
    grid-template-columns:1fr;
  }

  .snackbar-container{

    left:20px;
    right:20px;
    bottom:20px;
  }

  .snackbar{
    min-width:100%;
  }

}

.snackbar-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

/* Snackbar base */
.snackbar {
  width: 320px;
  padding: 14px 14px 12px;
  border-radius: 14px;

  display: flex;
  gap: 12px;
  align-items: flex-start;

  background: rgba(20, 20, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #fff;
  font-family: "DM Sans", sans-serif;

  transform: translateX(120%);
  opacity: 0;

  animation: slideIn 0.35s ease forwards;

  position: relative;
  overflow: hidden;
}

/* Slide animation */
@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.snackbar.hide {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Icon */
.snackbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.snackbar.success .snackbar-icon {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.snackbar.error .snackbar-icon {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.snackbar.info .snackbar-icon {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

/* Content */
.snackbar-content {
  flex: 1;
}

.snackbar-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.snackbar-message {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.3;
}

/* Close button */
.snackbar-close {
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.snackbar-close:hover {
  opacity: 1;
}

/* Progress bar */
.snackbar-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.snackbar-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: progress 4s linear forwards;
}

.snackbar.success .snackbar-progress-bar {
  background: #2ecc71;
}
.snackbar.error .snackbar-progress-bar {
  background: #e74c3c;
}
.snackbar.info .snackbar-progress-bar {
  background: #3498db;
}

@keyframes progress {
  to {
    transform: scaleX(0);
  }
}

/* =====================================================
ADVANCED SNACKBAR CARDS
===================================================== */

.advanced-snackbar-grid {
  margin-top: 3rem;
}

.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.08),
      transparent
    );
  pointer-events: none;
}

.dark-card {
  background:
    linear-gradient(
      145deg,
      #121826,
      #1b2335
    );
}

/* =====================================================
ICON COLORS
===================================================== */

.orange {
  background: rgba(255, 166, 0, 0.15);
  color: #ffb347;
}

.purple {
  background: rgba(140, 82, 255, 0.15);
  color: #a78bfa;
}

.cyan {
  background: rgba(0, 217, 255, 0.15);
  color: #67e8f9;
}

.pink {
  background: rgba(255, 0, 140, 0.15);
  color: #ff6bd6;
}

.gold {
  background: rgba(255, 196, 0, 0.15);
  color: #ffd95e;
}

.teal {
  background: rgba(0, 255, 200, 0.15);
  color: #5eead4;
}

/* =====================================================
BUTTON COLORS
===================================================== */

.warning-btn {
  background: linear-gradient(
    135deg,
    #ffb347,
    #ff8c42
  );
}

.dark-btn {
  background: linear-gradient(
    135deg,
    #2a324a,
    #0f172a
  );
}

.upload-btn {
  background: linear-gradient(
    135deg,
    #06b6d4,
    #3b82f6
  );
}

.message-btn {
  background: linear-gradient(
    135deg,
    #ff4ecd,
    #ff0080
  );
}

.security-btn {
  background: linear-gradient(
    135deg,
    #facc15,
    #eab308
  );
}

.network-btn {
  background: linear-gradient(
    135deg,
    #14b8a6,
    #06b6d4
  );
}
/* ==========================================
CREATIVE CARD THEMES
========================================== */

.ai-card{
  background:
  linear-gradient(
  135deg,
  rgba(147,51,234,.15),
  rgba(99,102,241,.15));
}

.space-card{
  background:
  linear-gradient(
  135deg,
  rgba(59,130,246,.12),
  rgba(139,92,246,.15));
}

.crypto-card{
  background:
  linear-gradient(
  135deg,
  rgba(16,185,129,.12),
  rgba(6,182,212,.12));
}

.gaming-card{
  background:
  linear-gradient(
  135deg,
  rgba(255,193,7,.15),
  rgba(255,87,34,.12));
}

.cyber-card{
  background:
  linear-gradient(
  135deg,
  rgba(0,255,170,.08),
  rgba(0,255,255,.08));
}

.magic-card{
  background:
  linear-gradient(
  135deg,
  rgba(168,85,247,.15),
  rgba(236,72,153,.12));
}

/* ==========================================
ICONS
========================================== */

.violet{
  background:linear-gradient(
  135deg,#9333ea,#6366f1);
}

.galaxy{
  background:linear-gradient(
  135deg,#2563eb,#8b5cf6);
}

.emerald{
  background:linear-gradient(
  135deg,#10b981,#06b6d4);
}

.cyber{
  background:linear-gradient(
  135deg,#00ff99,#00e5ff);
}

.magic{
  background:linear-gradient(
  135deg,#a855f7,#ec4899);
}

/* ==========================================
BUTTONS
========================================== */

.ai-btn{
  background:linear-gradient(
  135deg,#9333ea,#6366f1);
}

.space-btn{
  background:linear-gradient(
  135deg,#2563eb,#8b5cf6);
}

.crypto-btn{
  background:linear-gradient(
  135deg,#10b981,#06b6d4);
}

.gaming-btn{
  background:linear-gradient(
  135deg,#ffb300,#ff5722);
}

.cyber-btn{
  background:linear-gradient(
  135deg,#00ff99,#00e5ff);
}

.magic-btn{
  background:linear-gradient(
  135deg,#a855f7,#ec4899);
}

/* Hover */

.show-btn:hover{
  transform:translateY(-4px);
  box-shadow:
  0 15px 30px rgba(0,0,0,.2);
}
/* ==================================================
PROFESSIONAL SNACKBAR CARDS
================================================== */

.premium-card{
  position:relative;
  overflow:hidden;
  padding:32px;
  border-radius:28px;
  backdrop-filter:blur(20px);
  transition:.4s ease;
}

.premium-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.5;
  pointer-events:none;
}

.premium-card:hover{
  transform:translateY(-8px);
}

/* =====================================
ANALYTICS
===================================== */

.analytics-card{
  background:
  linear-gradient(
  135deg,
  rgba(59,130,246,.08),
  rgba(99,102,241,.12));
}

.analytics-card::before{
  background:
  radial-gradient(
  circle at top right,
  rgba(59,130,246,.25),
  transparent 60%);
}

.analytics-icon{
  background:
  linear-gradient(
  135deg,
  #3b82f6,
  #6366f1);
}

.analytics-btn{
  background:
  linear-gradient(
  135deg,
  #3b82f6,
  #6366f1);
}

/* =====================================
TEAM
===================================== */

.team-card{
  background:
  linear-gradient(
  135deg,
  rgba(14,165,233,.08),
  rgba(6,182,212,.12));
}

.team-card::before{
  background:
  radial-gradient(
  circle at top right,
  rgba(6,182,212,.22),
  transparent 60%);
}

.team-icon{
  background:
  linear-gradient(
  135deg,
  #06b6d4,
  #0ea5e9);
}

.team-btn{
  background:
  linear-gradient(
  135deg,
  #06b6d4,
  #0ea5e9);
}

/* =====================================
PAYMENT
===================================== */

.payment-card{
  background:
  linear-gradient(
  135deg,
  rgba(16,185,129,.08),
  rgba(5,150,105,.12));
}

.payment-card::before{
  background:
  radial-gradient(
  circle at top right,
  rgba(16,185,129,.25),
  transparent 60%);
}

.payment-icon{
  background:
  linear-gradient(
  135deg,
  #10b981,
  #059669);
}

.payment-btn{
  background:
  linear-gradient(
  135deg,
  #10b981,
  #059669);
}

/* =====================================
SERVER
===================================== */

.server-card{
  background:
  linear-gradient(
  135deg,
  rgba(107,114,128,.08),
  rgba(55,65,81,.12));
}

.server-card::before{
  background:
  radial-gradient(
  circle at top right,
  rgba(107,114,128,.22),
  transparent 60%);
}

.server-icon{
  background:
  linear-gradient(
  135deg,
  #6b7280,
  #374151);
}

.server-btn{
  background:
  linear-gradient(
  135deg,
  #6b7280,
  #374151);
}

/* =====================================
DEPLOYMENT
===================================== */

.deployment-card{
  background:
  linear-gradient(
  135deg,
  rgba(139,92,246,.08),
  rgba(124,58,237,.12));
}

.deployment-card::before{
  background:
  radial-gradient(
  circle at top right,
  rgba(139,92,246,.22),
  transparent 60%);
}

.deployment-icon{
  background:
  linear-gradient(
  135deg,
  #8b5cf6,
  #7c3aed);
}

.deployment-btn{
  background:
  linear-gradient(
  135deg,
  #8b5cf6,
  #7c3aed);
}

/* =====================================
WORKFLOW
===================================== */

.workflow-card{
  background:
  linear-gradient(
  135deg,
  rgba(245,158,11,.08),
  rgba(249,115,22,.12));
}

.workflow-card::before{
  background:
  radial-gradient(
  circle at top right,
  rgba(245,158,11,.22),
  transparent 60%);
}

.workflow-icon{
  background:
  linear-gradient(
  135deg,
  #f59e0b,
  #f97316);
}

.workflow-btn{
  background:
  linear-gradient(
  135deg,
  #f59e0b,
  #f97316);
}

/* =====================================
COMMON ICON STYLE
===================================== */

.card-icon{
  width:68px;
  height:68px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:1.4rem;
  margin-bottom:20px;
  box-shadow:
  0 10px 25px rgba(0,0,0,.12);
}

/* =====================================
BUTTON STYLE
===================================== */

.show-btn{
  border:none;
  color:white;
  padding:14px 22px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
  transition:.35s;
}

.show-btn:hover{
  transform:translateY(-3px);
  box-shadow:
  0 12px 24px rgba(0,0,0,.15);
}
/* ==========================================
BACKUP
========================================== */

.backup-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(34,197,94,.08),
  rgba(16,185,129,.14));
}

.backup-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(34,197,94,.25),
  transparent 60%);
}

.backup-icon,
.backup-btn{
  background:
  linear-gradient(
  135deg,
  #22c55e,
  #10b981);
}


/* ==========================================
API
========================================== */

.api-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(59,130,246,.08),
  rgba(99,102,241,.15));
}

.api-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(59,130,246,.25),
  transparent 60%);
}

.api-icon,
.api-btn{
  background:
  linear-gradient(
  135deg,
  #3b82f6,
  #6366f1);
}


/* ==========================================
INVITATION
========================================== */

.invite-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(236,72,153,.08),
  rgba(217,70,239,.15));
}

.invite-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(236,72,153,.24),
  transparent 60%);
}

.invite-icon,
.invite-btn{
  background:
  linear-gradient(
  135deg,
  #ec4899,
  #d946ef);
}


/* ==========================================
EXPORT
========================================== */

.export-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(6,182,212,.08),
  rgba(14,165,233,.15));
}

.export-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(6,182,212,.25),
  transparent 60%);
}

.export-icon,
.export-btn{
  background:
  linear-gradient(
  135deg,
  #06b6d4,
  #0ea5e9);
}


/* ==========================================
MEETING
========================================== */

.meeting-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(245,158,11,.08),
  rgba(249,115,22,.15));
}

.meeting-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(245,158,11,.25),
  transparent 60%);
}

.meeting-icon,
.meeting-btn{
  background:
  linear-gradient(
  135deg,
  #f59e0b,
  #f97316);
}


/* ==========================================
APPROVAL
========================================== */

.approval-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(168,85,247,.08),
  rgba(139,92,246,.15));
}

.approval-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(168,85,247,.25),
  transparent 60%);
}

.approval-icon,
.approval-btn{
  background:
  linear-gradient(
  135deg,
  #a855f7,
  #8b5cf6);
}


/* ==========================================
MIGRATION
========================================== */

.migration-card{
  position:relative;
  overflow:hidden;
  background:
  linear-gradient(
  135deg,
  rgba(75,85,99,.08),
  rgba(31,41,55,.15));
}

.migration-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(
  circle at top right,
  rgba(75,85,99,.25),
  transparent 60%);
}

.migration-icon,
.migration-btn{
  background:
  linear-gradient(
  135deg,
  #6b7280,
  #374151);
}


/* ==========================================
GLOBAL EFFECTS
========================================== */

.premium-card{
  border-radius:28px;
  backdrop-filter:blur(18px);
  transition:.35s;
}

.premium-card:hover{
  transform:translateY(-8px);
}

.card-icon{
  width:68px;
  height:68px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:1.4rem;
  margin-bottom:20px;

  box-shadow:
  0 12px 25px rgba(0,0,0,.12);
}

.show-btn{
  border:none;
  color:white;
  padding:14px 22px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
  transition:.3s;
}

.show-btn:hover{
  transform:translateY(-3px);
  box-shadow:
  0 12px 24px rgba(0,0,0,.18);
}
/* ============================================================
   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;
}