/* =========================================================
   MUSIC PLAYER UI COMPONENTS — UIverse
========================================================= */

:root{

  --accent:#eb6835;
  --accent-2:#6c5ce7;

  --body-bg:#0f1117;
  --card-bg:#161922;

  --card-border:rgba(255,255,255,.06);

  --text-primary:#ffffff;
  --text-secondary:#a1a1aa;

  --radius-sm:16px;
  --radius-md:24px;
  --radius-lg:34px;

  --transition:.3s ease;

  --font-heading:"Syne",sans-serif;
  --font-body:"DM Sans",sans-serif;

}

/* =========================================================
   RESET
========================================================= */

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

html{
  scroll-behavior:smooth;
}

body{

  background:
    linear-gradient(
      135deg,
      #0f1117,
      #111827
    );

  color:var(--text-primary);

  font-family:var(--font-body);

  overflow-x:hidden;
}

.music-stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;
margin:60px 0;
}

.stat-card{
padding:30px;
border-radius:24px;
background:rgba(255,255,255,.05);
backdrop-filter:blur(20px);
text-align:center;
transition:.35s;
}

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

.hero-player{

backdrop-filter:blur(25px);

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

border:1px solid rgba(255,255,255,.08);

border-radius:32px;

box-shadow:
0 20px 60px rgba(0,0,0,.25);

}
.component-card{

transition:
transform .4s,
box-shadow .4s;

}

.component-card:hover{

transform:
translateY(-10px)
scale(1.02);

box-shadow:
0 30px 60px rgba(0,0,0,.25);

}

.equalizer span{

animation:bounce .8s infinite ease-in-out;

}

.equalizer span:nth-child(2){

animation-delay:.1s;

}

.equalizer span:nth-child(3){

animation-delay:.2s;

}

.equalizer span:nth-child(4){

animation-delay:.3s;

}

.equalizer span:nth-child(5){

animation-delay:.4s;

}

@keyframes bounce{

50%{

transform:scaleY(3);

}

}
/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{

  position:fixed;

  top:0;
  left:0;

  width:240px;
  height:100vh;

  padding:28px 20px;

  background:
    linear-gradient(
      180deg,
      rgba(15,17,23,.98),
      rgba(17,24,39,.96)
    );

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

  z-index:1000;
}

.sidebar-brand{

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

  margin-bottom:42px;
}

.brand-icon{

  width:46px;
  height:46px;

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

  border-radius:14px;

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

  font-size:20px;
}

.brand-text{

  font-size:28px;
  font-weight:800;

  font-family:var(--font-heading);
}

.sidebar-nav ul{

  list-style:none;

  display:flex;
  flex-direction:column;

  gap:10px;
}

.sidebar-nav a{

  display:flex;
  align-items:center;
  gap:14px;

  padding:14px 18px;

  border-radius:16px;

  text-decoration:none;

  color:var(--text-secondary);

  font-size:15px;
  font-weight:600;

  transition:var(--transition);
}

.sidebar-nav a:hover{

  background:rgba(235,104,53,.1);

  color:var(--accent);
}

.sidebar-nav li.active a{

  background:
    linear-gradient(
      90deg,
      rgba(235,104,53,.18),
      rgba(108,92,231,.12)
    );

  color:white;

  border:1px solid rgba(235,104,53,.2);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{

  position:sticky;
  top:0;

  margin-left:240px;

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

  gap:20px;

  padding:18px 42px;

  background:rgba(15,17,23,.8);

  backdrop-filter:blur(18px);

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

  z-index:999;
}

.logo{

  font-size:28px;
  font-weight:800;

  font-family:var(--font-heading);
}

.search-bar{

  flex:1;
  max-width:460px;

  display:flex;
  align-items:center;
  gap:10px;

  background:var(--card-bg);

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

  border-radius:999px;

  padding:12px 18px;
}

.search-bar i{
  color:#8b8b97;
}

.search-bar input{

  width:100%;

  border:none;
  outline:none;

  background:transparent;

  color:white;

  font-size:14px;
}

.nav-actions{

  display:flex;
  align-items:center;

  gap:12px;
}

.outline-btn,
.primary-btn{

  border:none;

  padding:12px 20px;

  border-radius:999px;

  font-size:14px;
  font-weight:700;

  cursor:pointer;

  transition:var(--transition);
}

.outline-btn{

  background:transparent;

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

  color:white;
}

.primary-btn{

  background:var(--accent);

  color:white;
}

.outline-btn:hover,
.primary-btn:hover{
  transform:translateY(-2px);
}

/* =========================================================
   MAIN
========================================================= */

.main-home{

  margin-left:240px;

  padding:42px;
}

/* =========================================================
   HERO
========================================================= */

.page-hero{

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

  gap:42px;

  padding:52px 58px;

  border-radius:var(--radius-lg);

  background:var(--card-bg);

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

  position:relative;

  overflow:hidden;

  margin-bottom:34px;
}

.page-hero::before{

  content:"";

  position:absolute;

  top:-120px;
  right:-120px;

  width:320px;
  height:320px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(108,92,231,.22),
      transparent 70%
    );
}

.page-title{

  font-size:clamp(34px,4vw,52px);

  line-height:1;

  letter-spacing:-2px;

  font-family:var(--font-heading);

  margin-bottom:16px;
}

.page-desc{

  max-width:560px;

  color:var(--text-secondary);

  line-height:1.8;

  margin-bottom:24px;
}

.breadcrumb{

  display:flex;
  align-items:center;
  gap:8px;

  margin-bottom:18px;

  color:#8b8b97;

  font-size:13px;
}

.breadcrumb a{

  color:var(--accent);

  text-decoration:none;

  font-weight:600;
}

.page-meta{

  display:flex;
  flex-wrap:wrap;

  gap:10px;
}

.meta-badge{

  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:7px 14px;

  border-radius:999px;

  background:rgba(235,104,53,.08);

  border:1px solid rgba(235,104,53,.18);

  color:var(--accent);

  font-size:12px;
  font-weight:700;
}

/* =========================================================
   HERO PLAYER
========================================================= */

.hero-player{

  width:340px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.02)
    );

  border:1px solid rgba(255,255,255,.08);

  border-radius:30px;

  overflow:hidden;

  backdrop-filter:blur(20px);
}

.hero-cover img{

  width:100%;
  height:220px;

  object-fit:cover;
}

.hero-player-content{
  padding:24px;
}

.now-playing{

  font-size:11px;
  font-weight:700;

  color:var(--accent);

  letter-spacing:1px;
}

.hero-player-content h3{

  font-size:28px;

  margin:10px 0 4px;

  font-family:var(--font-heading);
}

.hero-player-content p{
  color:var(--text-secondary);
}

.hero-progress{

  width:100%;
  height:8px;

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

  border-radius:999px;

  overflow:hidden;

  margin:24px 0 10px;
}

.hero-progress-fill{

  width:42%;
  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--accent-2)
    );
}

.hero-time{

  display:flex;
  justify-content:space-between;

  font-size:12px;

  color:#8b8b97;
}

.hero-controls{

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

  gap:18px;

  margin-top:24px;
}

.hero-controls button{

  width:48px;
  height:48px;

  border:none;

  border-radius:50%;

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

  color:white;

  cursor:pointer;

  transition:var(--transition);
}

.hero-controls .play-btn{

  width:58px;
  height:58px;

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

.hero-controls button:hover{
  transform:scale(1.08);
}

/* =========================================================
   FILTER BAR
========================================================= */

.filter-bar{

  display:flex;
  align-items:center;

  gap:12px;

  flex-wrap:wrap;

  margin-bottom:28px;
}

.filter-btn{

  padding:10px 18px;

  border:none;

  border-radius:999px;

  background:var(--card-bg);

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

  color:var(--text-secondary);

  font-size:13px;
  font-weight:700;

  cursor:pointer;

  transition:var(--transition);
}

.filter-btn:hover,
.filter-btn.active{

  background:var(--accent);

  color:white;
}

.filter-search{

  margin-left:auto;

  display:flex;
  align-items:center;

  gap:10px;

  padding:10px 16px;

  border-radius:999px;

  background:var(--card-bg);

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

.filter-search i{
  color:#8b8b97;
}

.filter-search input{

  border:none;
  outline:none;

  background:transparent;

  color:white;
}

/* =========================================================
   GRID
========================================================= */

.music-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fill,minmax(340px,1fr));

  gap:22px;
}

/* =========================================================
   CARD
========================================================= */

.component-card{

  background:var(--card-bg);

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

  border-radius:var(--radius-md);

  padding:24px;

  display:flex;
  flex-direction:column;

  gap:18px;

  transition:var(--transition);
}

.component-card:hover{

  transform:translateY(-4px);

  border-color:rgba(235,104,53,.3);

  box-shadow:
    0 20px 40px rgba(0,0,0,.18);
}

.card-top{

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

.card-label{

  font-size:16px;
  font-weight:700;

  font-family:var(--font-heading);
}

.card-tag{

  padding:4px 10px;

  border-radius:999px;

  font-size:11px;
  font-weight:700;
}

.tag-popular{

  background:rgba(116,185,255,.14);

  color:#74b9ff;
}

.tag-trending{

  background:rgba(253,121,168,.14);

  color:#fd79a8;
}

.tag-essential{

  background:rgba(253,203,110,.14);

  color:#fdcb6e;
}

.card-preview{

  min-height:280px;

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

  background:#12141b;

  border-radius:20px;

  padding:20px;
}

.dark-preview{
  background:#0d0f15;
}

.card-desc{

  color:var(--text-secondary);

  font-size:13px;

  line-height:1.7;
}

/* =========================================================
   ACTIONS
========================================================= */

.actions{
  display:flex;
  gap:10px;
}

.action-btn{

  flex:1;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  border:none;

  padding:10px 14px;

  border-radius:14px;

  cursor:pointer;

  font-size:13px;
  font-weight:700;

  transition:var(--transition);
}

.view-btn{

  background:rgba(235,104,53,.08);

  border:1px solid rgba(235,104,53,.18);

  color:var(--accent);
}

.copy-btn{

  background:var(--accent);

  color:white;
}

.action-btn:hover{
  transform:translateY(-2px);
}

/* =========================================================
   GLASS PLAYER
========================================================= */

.glass-player{

  width:100%;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.02)
    );

  border:1px solid rgba(255,255,255,.08);

  border-radius:24px;

  padding:20px;

  text-align:center;

  backdrop-filter:blur(20px);
}

.glass-player img{

  width:100%;
  height:180px;

  border-radius:18px;

  object-fit:cover;

  margin-bottom:18px;
}

.glass-player h3{

  font-size:22px;

  margin-bottom:6px;

  font-family:var(--font-heading);
}

.glass-player p{
  color:var(--text-secondary);
}

.music-progress{

  width:100%;
  height:7px;

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

  border-radius:999px;

  margin:18px 0;
}

.music-progress-fill{

  width:58%;
  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--accent-2)
    );
}

.music-controls{

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

  gap:20px;
}

.music-controls button{

  width:54px;
  height:54px;

  border:none;

  border-radius:50%;

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

  color:white;

  cursor:pointer;
}

/* =========================================================
   VINYL PLAYER
========================================================= */

.vinyl-player{

  position:relative;

  width:220px;
  height:220px;

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

.vinyl-disc{

  width:180px;
  height:180px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      #1f2937 18%,
      #111 19%,
      #000 42%,
      #222 43%,
      #000 62%
    );

  animation:spin 5s linear infinite;
}

.vinyl-disc::before{

  content:"";

  position:absolute;

  inset:50% auto auto 50%;

  width:20px;
  height:20px;

  border-radius:50%;

  background:var(--accent);

  transform:translate(-50%,-50%);
}

.vinyl-arm{

  position:absolute;

  top:38px;
  right:18px;

  width:90px;
  height:6px;

  background:#cbd5e1;

  border-radius:999px;

  transform:rotate(25deg);

  transform-origin:left center;
}

@keyframes spin{

  from{
    transform:rotate(0deg);
  }

  to{
    transform:rotate(360deg);
  }

}


/* ==========================================
   MUSIC STATS
========================================== */

.music-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:1.2rem;
  margin:3rem 0;
}

.stat-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:2rem;
  text-align:center;
  backdrop-filter:blur(14px);
  transition:.3s;
}

.stat-card:hover{
  transform:translateY(-6px);
  border-color:#7c5cff;
}

.stat-card h3{
  font-size:2.2rem;
  margin-bottom:.4rem;
  color:#8b6cff;
}

.stat-card p{
  color:#b6b6c6;
}

/* ==========================================
   FEATURED PLAYLISTS
========================================== */

.featured-playlists{
  margin:5rem 0;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1.5rem;
}

.section-header h2{
  font-size:2rem;
}

.section-header a{
  color:#8b6cff;
  text-decoration:none;
}

.playlist-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
}

.featured-playlist{
  background:#16181d;
  border-radius:24px;
  overflow:hidden;
  transition:.35s;
  cursor:pointer;
}

.featured-playlist:hover{
  transform:translateY(-8px);
}

.featured-playlist img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.featured-playlist h4{
  padding:1rem;
  font-size:1rem;
}

/* ==========================================
   FEATURED COMPONENT
========================================== */

.featured-component{
  margin:5rem 0;
  padding:4rem;
  border-radius:32px;
  background:
    linear-gradient(
      135deg,
      #7c5cff,
      #4d7cff
    );
  position:relative;
  overflow:hidden;
}

.featured-content{
  max-width:700px;
}

.featured-content span{
  display:inline-block;
  padding:.5rem 1rem;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  margin-bottom:1rem;
}

.featured-content h2{
  font-size:3rem;
  margin-bottom:1rem;
}

.featured-content p{
  opacity:.9;
  line-height:1.7;
  margin-bottom:2rem;
}

/* ==========================================
   PODCAST PLAYER
========================================== */

.podcast-player{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.8rem;
}

.podcast-player img{
  width:140px;
  height:140px;
  border-radius:20px;
  object-fit:cover;
}

.podcast-player button{
  width:55px;
  height:55px;
  border:none;
  border-radius:50%;
  background:#8b6cff;
  color:white;
  cursor:pointer;
}

/* ==========================================
   SPOTIFY BAR
========================================== */

.spotify-bar{
  display:flex;
  align-items:center;
  gap:1rem;
  background:#111;
  border-radius:18px;
  padding:1rem;
}

.spotify-bar img{
  width:60px;
  height:60px;
  border-radius:12px;
  object-fit:cover;
}

.spotify-bar h4{
  margin:0;
}

.spotify-bar p{
  margin:0;
  opacity:.6;
  font-size:.85rem;
}

.spotify-bar i{
  margin-left:auto;
  color:#1db954;
}

/* ==========================================
   CIRCLE PLAYER
========================================== */

.circle-player{
  display:flex;
  justify-content:center;
  align-items:center;
  height:180px;
}

.circle-progress{
  width:130px;
  height:130px;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:700;
  font-size:1.2rem;

  background:
    conic-gradient(
      #8b6cff 72%,
      rgba(255,255,255,.1) 72%
    );
}

/* ==========================================
   DJ MIXER
========================================== */

.dj-deck{
  display:flex;
  justify-content:center;
  gap:2rem;
}

.dj-deck .disc{
  width:110px;
  height:110px;
  border-radius:50%;

  background:
    radial-gradient(
      circle,
      #333 10%,
      #111 60%
    );

  animation:spin 4s linear infinite;
}

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

/* ==========================================
   VISUALIZER SHOWCASE
========================================== */

.visualizer-showcase{
  margin:5rem 0;
}

.visualizer-showcase h2{
  margin-bottom:2rem;
}

.visualizer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.5rem;
}

.visualizer-circle,
.visualizer-wave,
.visualizer-spectrum{
  height:180px;
  border-radius:24px;
  background:#15161b;
  border:1px solid rgba(255,255,255,.08);
  position:relative;
  overflow:hidden;
}

.visualizer-circle::before{
  content:"";
  position:absolute;
  inset:25%;
  border:6px solid #8b6cff;
  border-radius:50%;
  animation:pulse 2s infinite;
}

@keyframes pulse{
  50%{
    transform:scale(1.15);
    opacity:.4;
  }
}

.visualizer-wave::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      90deg,
      #8b6cff 0 6px,
      transparent 6px 14px
    );

  animation:waveMove 2s linear infinite;
}

@keyframes waveMove{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(30px);
  }
}

.visualizer-spectrum::before{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:100%;
  background:
    repeating-linear-gradient(
      90deg,
      #8b6cff 0 12px,
      transparent 12px 20px
    );

  animation:spectrum 1.2s ease infinite;
}

@keyframes spectrum{
  50%{
    transform:scaleY(.7);
  }
}

/* ==========================================
   DIFFICULTY TAGS
========================================== */

.component-level{
  display:inline-flex;
  align-items:center;
  padding:.4rem .9rem;
  border-radius:999px;
  font-size:.75rem;
  font-weight:600;
}

.beginner{
  background:#153c23;
  color:#53d86a;
}

.intermediate{
  background:#4a3810;
  color:#f8c646;
}

.advanced{
  background:#47151f;
  color:#ff637e;
}

/* ==========================================
   TOAST
========================================== */

.toast{
  position:fixed;
  right:25px;
  bottom:25px;
  padding:1rem 1.4rem;
  border-radius:14px;
  background:#141519;
  border:1px solid rgba(255,255,255,.08);

  display:flex;
  align-items:center;
  gap:.7rem;

  transform:translateY(100px);
  opacity:0;
  transition:.35s;
  z-index:9999;
}

.toast.show{
  transform:translateY(0);
  opacity:1;
}

.toast i{
  color:#4ade80;
}

/* ==========================================
   THEME TOGGLE
========================================== */

.theme-toggle{
  position:fixed;
  right:25px;
  top:25px;

  width:52px;
  height:52px;

  border:none;
  border-radius:50%;

  background:#8b6cff;
  color:white;

  cursor:pointer;
  z-index:1000;

  transition:.3s;
}

.theme-toggle:hover{
  transform:rotate(20deg) scale(1.08);
}

/* ==========================================
   PREMIUM HOVER EFFECTS
========================================== */

.component-card{
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.component-card:hover{
  transform:translateY(-10px);
  box-shadow:
    0 20px 40px rgba(124,92,255,.18);
}

.music-card img,
.playlist-cover img,
.hero-cover img{
  transition:.5s;
}

.component-card:hover img{
  transform:scale(1.05);
}
/* =========================================================
   MINI PLAYER
========================================================= */

.mini-player{

  width:100%;

  display:flex;
  align-items:center;

  gap:16px;

  background:#1b1e28;

  border-radius:20px;

  padding:16px;
}

.mini-player img{

  width:74px;
  height:74px;

  border-radius:16px;

  object-fit:cover;
}

.mini-player-content{
  flex:1;
}

.mini-player-content h4{

  font-size:18px;

  margin-bottom:6px;
}

.mini-player-content p{
  color:var(--text-secondary);
}

.mini-play-btn{

  width:54px;
  height:54px;

  border:none;

  border-radius:50%;

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

  color:white;

  cursor:pointer;
}

/* =========================================================
   EQUALIZER
========================================================= */

.equalizer{

  display:flex;
  align-items:flex-end;

  gap:10px;

  height:120px;
}

.equalizer span{

  width:14px;

  border-radius:999px;

  background:
    linear-gradient(
      to top,
      var(--accent),
      var(--accent-2)
    );

  animation:bounce 1s infinite ease-in-out;
}

.equalizer span:nth-child(1){ height:50px; animation-delay:.1s; }
.equalizer span:nth-child(2){ height:90px; animation-delay:.2s; }
.equalizer span:nth-child(3){ height:60px; animation-delay:.3s; }
.equalizer span:nth-child(4){ height:110px; animation-delay:.4s; }
.equalizer span:nth-child(5){ height:70px; animation-delay:.5s; }

@keyframes bounce{

  0%,100%{
    transform:scaleY(.7);
  }

  50%{
    transform:scaleY(1.1);
  }

}

/* =========================================================
   PLAYLIST CARD
========================================================= */

.playlist-card{
  width:100%;
}

.playlist-cover{

  position:relative;

  overflow:hidden;

  border-radius:22px;

  margin-bottom:18px;
}

.playlist-cover img{

  width:100%;
  height:200px;

  object-fit:cover;

  transition:.5s ease;
}

.playlist-cover button{

  position:absolute;

  right:18px;
  bottom:18px;

  width:54px;
  height:54px;

  border:none;

  border-radius:50%;

  background:var(--accent);

  color:white;

  cursor:pointer;

  opacity:0;

  transform:translateY(10px);

  transition:var(--transition);
}

.playlist-card:hover .playlist-cover button{

  opacity:1;

  transform:translateY(0);
}

.playlist-card:hover img{
  transform:scale(1.08);
}

.playlist-content h3{

  font-size:22px;

  margin-bottom:6px;
}

.playlist-content p{
  color:var(--text-secondary);
}

/* =========================================================
   WAVE PLAYER
========================================================= */

.wave-player{

  width:100%;

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

.wave-bars{

  display:flex;
  align-items:flex-end;

  gap:8px;

  height:120px;
}

.wave-bars span{

  width:10px;

  border-radius:999px;

  background:
    linear-gradient(
      to top,
      var(--accent),
      var(--accent-2)
    );

  animation:wave 1s infinite ease-in-out;
}

.wave-bars span:nth-child(1){ height:28px; animation-delay:.1s; }
.wave-bars span:nth-child(2){ height:54px; animation-delay:.2s; }
.wave-bars span:nth-child(3){ height:80px; animation-delay:.3s; }
.wave-bars span:nth-child(4){ height:44px; animation-delay:.4s; }
.wave-bars span:nth-child(5){ height:92px; animation-delay:.5s; }
.wave-bars span:nth-child(6){ height:60px; animation-delay:.6s; }
.wave-bars span:nth-child(7){ height:34px; animation-delay:.7s; }
.wave-bars span:nth-child(8){ height:72px; animation-delay:.8s; }

@keyframes wave{

  0%,100%{
    transform:scaleY(.7);
  }

  50%{
    transform:scaleY(1.2);
  }

}

/* =========================================================
   PLAYER 7: SLEEK TRANSPARENT
========================================================= */
.transparent-player {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.tp-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  z-index: 0;
}
.transparent-player > * { position: relative; z-index: 1; }
.tp-cover {
  width: 60px; height: 60px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.tp-info { flex: 1; }
.tp-info h4 { font-size: 15px; margin-bottom: 4px; color: #fff; }
.tp-info p { font-size: 12px; color: #9aa4bf; margin: 0; }
.tp-controls {
  display: flex; align-items: center; gap: 12px;
}
.tp-controls i { color: #fff; cursor: pointer; transition: 0.2s; }
.tp-controls i:hover { color: var(--accent); }
.tp-play {
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.1);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
}
.tp-play:hover { background: var(--accent); }

/* =========================================================
   PLAYER 8: CIRCULAR NEUMORPHIC
========================================================= */
.neumorphic-player {
  background: #e0e5ec;
  border-radius: 50%;
  width: 220px; height: 220px;
  box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  position: relative;
}
.neu-disc {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #e0e5ec;
  box-shadow: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.6), inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.neu-disc img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
  animation: spin 8s linear infinite;
}
.neu-hole {
  position: absolute; width: 24px; height: 24px;
  border-radius: 50%; background: #e0e5ec;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.6), -3px -3px 6px rgba(255, 255, 255, 0.8);
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.neu-controls { display: flex; gap: 16px; align-items: center; }
.neu-btn {
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: #e0e5ec;
  box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.6), -4px -4px 8px rgba(255, 255, 255, 0.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.neu-btn:active { box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8); }

/* =========================================================
   PLAYER 9: RETRO CASSETTE
========================================================= */
.cassette-player {
  width: 240px; height: 160px;
  background: #d4d4d4;
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.5);
  border: 2px solid #b3b3b3;
}
.cassette-label {
  margin: 16px auto; width: 80%; height: 60px;
  background: #f1ebd5; border-radius: 4px;
  border: 1px solid #ccc;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px; font-family: 'Courier New', monospace;
  font-weight: bold; color: #d9534f;
  background-image: repeating-linear-gradient(transparent, transparent 18px, #ccc 18px, #ccc 19px);
}
.cassette-window {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 40px;
  background: #111; border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 10px; border: 2px solid #333;
}
.spool {
  width: 32px; height: 32px;
  background: #eee; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.spool-inner {
  width: 16px; height: 16px;
  background: #111; border-radius: 50%;
  position: relative;
}
.spool-inner::before, .spool-inner::after {
  content: ''; position: absolute; background: #eee;
}
.spool-inner::before { width: 4px; height: 100%; top: 0; left: 6px; }
.spool-inner::after { height: 4px; width: 100%; left: 0; top: 6px; }
.spool-left { animation: spin 4s linear infinite; }
.spool-right { animation: spin 4s linear infinite; }
.cassette-bottom {
  position: absolute; bottom: 0; left: 10%; width: 80%; height: 30px;
  background: #b3b3b3; border-radius: 10px 10px 0 0;
}

/* =========================================================
   PLAYER 10: FLOATING PILL
========================================================= */
.pill-player {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.pill-cover {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; animation: spin 10s linear infinite;
}
.pill-info h4 { font-size: 14px; margin: 0 0 4px 0; color: #fff; }
.pill-wave { display: flex; gap: 3px; align-items: flex-end; height: 12px; }
.pill-wave span {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}
.pill-wave span:nth-child(1) { height: 60%; animation-delay: 0s; }
.pill-wave span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.pill-wave span:nth-child(3) { height: 40%; animation-delay: 0.4s; }
.pill-wave span:nth-child(4) { height: 80%; animation-delay: 0.6s; }
.pill-play {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #fff; color: #111;
  cursor: pointer; transition: 0.2s;
}
.pill-play:hover { transform: scale(1.1); }

/* =========================================================
   PLAYER 11: NEON CYBERPUNK
========================================================= */
.cyber-player {
  width: 100%; background: #050510;
  border: 1px solid #0ff;
  border-radius: 8px; padding: 20px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.1);
}
.cyber-scanline {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: rgba(0, 255, 255, 0.5); box-shadow: 0 0 10px #0ff;
  animation: scan 3s linear infinite; z-index: 2;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }
.cyber-cover { position: relative; width: 100%; height: 140px; margin-bottom: 16px; border: 1px solid #f0f; }
.cyber-cover img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2) saturate(1.5); }
.cyber-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 0, 255, 0.2); mix-blend-mode: color-burn;
  display: flex; align-items: center; justify-content: center;
  color: #0ff; font-family: 'Courier New', monospace; font-weight: bold; text-shadow: 0 0 5px #0ff;
}
.cyber-controls { display: flex; justify-content: center; gap: 16px; }
.cyber-btn {
  background: transparent; border: 1px solid #0ff;
  color: #0ff; width: 40px; height: 40px; border-radius: 4px;
  cursor: pointer; transition: 0.3s;
}
.cyber-btn:hover { background: #0ff; color: #000; box-shadow: 0 0 10px #0ff; }
.cyber-play { border-color: #f0f; color: #f0f; }
.cyber-play:hover { background: #f0f; color: #000; box-shadow: 0 0 10px #f0f; }

/* =========================================================
   PLAYER 12: MINIMAL LYRICS
========================================================= */
.lyrics-player {
  text-align: center; width: 100%; padding: 20px;
}
.lyric-line { font-size: 14px; margin-bottom: 12px; transition: 0.3s; opacity: 0.4; color: #fff; }
.lyric-line.current { font-size: 20px; font-weight: bold; opacity: 1; transform: scale(1.05); text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.lyrics-controls {
  display: flex; align-items: center; gap: 16px; margin-top: 24px; color: #8b8b97;
}
.lyrics-progress {
  flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; position: relative;
}
.lp-fill { position: absolute; left: 0; top: 0; height: 100%; width: 45%; background: var(--accent); border-radius: 2px; }
.lyrics-controls i:hover { color: #fff; cursor: pointer; }

/* =========================================================
   PLAYER 13: DASHBOARD WIDGET
========================================================= */
.dash-player { width: 100%; }
.dash-header { display: flex; gap: 16px; margin-bottom: 24px; align-items: center; }
.dash-cover { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.dash-info h4 { font-size: 16px; margin: 0 0 4px 0; color: #fff; }
.dash-info p { font-size: 12px; color: #8b8b97; margin: 0; }
.dash-viz { display: flex; align-items: flex-end; justify-content: space-between; height: 60px; gap: 4px; }
.dash-bar {
  flex: 1; background: linear-gradient(to top, var(--accent-2), var(--accent));
  border-radius: 4px 4px 0 0; height: var(--h); opacity: 0.8;
  transition: 0.3s ease;
}
.dash-bar:hover { opacity: 1; filter: brightness(1.2); }

/* =========================================================
   PLAYER 14: STACKED DECK
========================================================= */
.stacked-player { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.stacked-cards { position: relative; width: 140px; height: 140px; margin-bottom: 24px; }
.s-card {
  position: absolute; width: 100%; height: 100%; border-radius: 16px;
  background: rgba(255,255,255,0.1); transition: 0.4s ease;
}
.s-card-3 { transform: translateY(-20px) scale(0.8); opacity: 0.4; z-index: 1; }
.s-card-2 { transform: translateY(-10px) scale(0.9); opacity: 0.7; z-index: 2; }
.s-card-1 {
  transform: translateY(0) scale(1); z-index: 3;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); overflow: hidden;
}
.s-card-1 img { width: 100%; height: 100%; object-fit: cover; }
.stacked-cards:hover .s-card-3 { transform: translateY(-30px) scale(0.8) rotate(-5deg); }
.stacked-cards:hover .s-card-2 { transform: translateY(-15px) scale(0.9) rotate(5deg); }
.s-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(235, 104, 53, 0.9); color: #fff; cursor: pointer;
  opacity: 0; transition: 0.3s;
}
.stacked-cards:hover .s-play { opacity: 1; }
.stacked-info { text-align: center; }
.stacked-info h4 { font-size: 18px; margin: 0 0 4px; color: #fff; }
.stacked-info p { font-size: 13px; color: #8b8b97; margin: 0; }

/* =========================================================
   PLAYER 15: VERTICAL SIDEBAR
========================================================= */
.vertical-player {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.vp-cover-wrapper {
  width: 120px; height: 120px; border-radius: 20px;
  overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.vp-cover { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.vertical-player:hover .vp-cover { transform: scale(1.1); }
.vp-title { font-size: 16px; margin: 0 0 4px; color: #fff; text-align: center; }
.vp-artist { font-size: 13px; color: var(--accent); margin: 0 0 24px; text-align: center; }
.vp-progress-ring { position: relative; width: 64px; height: 64px; }
.vp-progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 6; }
.ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 6;
  stroke-dasharray: 283; stroke-dashoffset: 70; stroke-linecap: round;
  transition: 0.3s;
}
.vp-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: none; border: none; color: #fff; font-size: 16px; cursor: pointer;
}

/* =========================================================
   PLAYER 16: HOLOGRAPHIC 3D
========================================================= */
.holo-player {
  perspective: 1000px; width: 200px; height: 260px;
}
.holo-glass {
  width: 100%; height: 100%; position: relative;
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transform-style: preserve-3d; transition: transform 0.4s ease;
}
.holo-player:hover .holo-glass { transform: rotateY(15deg) rotateX(10deg); }
.holo-glare {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg); transition: 0.5s; z-index: 10; pointer-events: none;
}
.holo-player:hover .holo-glare { left: 150%; }
.holo-cover { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; z-index: 1; opacity: 0.6; filter: saturate(1.5); }
.holo-content {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  z-index: 2; text-align: center;
}
.holo-content h4 { font-size: 18px; margin: 0 0 12px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.holo-controls { display: flex; justify-content: center; gap: 16px; align-items: center; color: #fff; }
.holo-controls i { cursor: pointer; transition: 0.2s; }
.holo-controls i:hover { color: #0ff; text-shadow: 0 0 10px #0ff; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1100px){

  .page-hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-player{
    width:100%;
    max-width:420px;
  }

}

@media(max-width:900px){

  .sidebar{
    display:none;
  }

  .navbar,
  .main-home{
    margin-left:0;
  }

}

@media(max-width:768px){

  .navbar{
    padding:18px 20px;

    flex-wrap:wrap;
  }

  .main-home{
    padding:24px;
  }

  .page-hero{
    padding:32px 24px;
  }

  .page-title{
    font-size:38px;
  }

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

}

@media(max-width:600px){

  .nav-actions{
    width:100%;

    justify-content:space-between;
  }

  .actions{
    flex-direction:column;
  }

  .filter-search{
    width:100%;

    margin-left:0;
  }

  .filter-search input{
    width:100%;
  }

}

.footer {
  margin-left: 250px;
  background: #090c15 !important;
  padding: 80px 40px 40px;
  border-top: 1px solid rgb(255 255 255 / 5%) !important;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(235 104 53 / 20%), transparent);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), #ff8e53);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.footer-col p {
  color: #8a9bc0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #8a9bc0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-col.newsletter .newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-col.newsletter input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 2%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  outline: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-col.newsletter input[type="email"]:focus {
  border-color: var(--accent);
  background: rgb(255 255 255 / 4%);
  box-shadow: 0 0 10px rgb(235 104 53 / 20%);
}

.footer-col.newsletter button {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-col.newsletter button:hover {
  background: #d45c28;
  box-shadow: 0 4px 12px rgb(235 104 53 / 30%);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
  color: #8a9bc0;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 4%);
  margin-top: 60px;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #6a7a94;
  font-size: 13px;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Force all cards to same height */
.component-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* allow grid to stretch */
  min-height: 420px; /* consistent baseline height */
}

/* Preview area consistent size */
.card-preview {
  flex: 1; /* take available space */
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #12141b;
  border-radius: 20px;
  padding: 20px;
}

/* Ensure images fit nicely */
.card-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Description and actions aligned at bottom */
.card-desc {
  flex-shrink: 0;
  margin-top: auto;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
}
/* ============================================================
   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;
}