/* Dark mode overrides applied when `body.dark` is present */
body.dark {
  background-color: #0b0b0b;
  color: #eaeaea;
}

/* Containers */
body.dark .login-container,
body.dark .Home-container,
body.dark .settingsGroup {
  background-color: #121212;
  color: #eaeaea;
  box-shadow: none;
  border: 1px solid #222;
}

/* Buttons */
body.dark .login-button,
body.dark .button,
body.dark .listButton,
body.dark .headerBtn {
  background-color: #000000;
  color: #eee;
  border-color: #e7e7e7;
}

body.dark .button:hover,
body.dark .listButton:hover,
body.dark .headerBtn:hover {
  background-color: #3b3b3b;
}

/* Inputs and selects */
body.dark input,
body.dark textarea,
body.dark select {
  background-color: #121212;
  color: #eee;
  border: 1px solid #e5e5e5;
}

body.dark a {
  color: #9fc5ff;
}

/* Header bar */
body.dark #headerBar {
  background-color: #0d0d0d;
  border-bottom-color: #222;
}

/* Playlist/history */
body.dark #playlistHistory {
  border-top-color: #333;
}


body.dark #playPlaylistBtn {
    height: 40px;
    width: 150px;
    background-color: black;
    border-width: 2px;
    width: 90px;
    height: 25px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    cursor: pointer;
    border-radius: 5px;
    border-color: rgb(213, 213, 213);
}

body.dark #playPlaylistBtn:hover {
    background-color: rgb(121, 119, 119);
}

body.dark #playPlaylistBtn:active {
    background-color: rgb(219, 218, 218);
}


/* Equalizer layout fixes in dark mode: keep sliders compact and centered */
body.dark .slider-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0px;
  /* narrower width to line up with labels */
  width: 100px;
  margin: 44px auto 10px auto !important; /* ensure spacing above controls */
  box-sizing: border-box;
  z-index: 0;
}
body.dark .slider {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.5px;
  transform: rotate(-90deg);
  width: 40px; /* reduced slider length */
  border: 1px solid #cbcbcb;
}
body.dark .slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  -webkit-appearance: none;
  width: 5px;
  height: 20px;
  background: rgb(255, 255, 255);
  cursor: pointer;
  border: 1px solid #000000;
  border-radius: 1px;
}

/* Ensure header and buttons sit above the equalizer */
body.dark #headerBar { position: relative; z-index: 5; }
body.dark .button, body.dark .headerBtn, body.dark .listButton { position: relative; z-index: 6; }

