/* General Reset */
body, h1, button, div {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
    position: relative;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Settings Icon */
#settingsIcon {
  font-size: 24px;
  color: #1DB954;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.6s;
  height: 24px;
  display: flex;
  align-items: center;
}

.rotate-gear {
  transform: rotate(90deg);
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1DB954;
}

button {
  font-size: 20px;
  color: #ffffff;
  background-color: #1DB954;
  border: none;
  border-radius: 25px;
  padding: 20px 60px;
  margin: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.green-button:hover {
  background-color: #1ed760;
  transform: scale(1.05);
}

.hidden {
  display: none!important;
  visibility: hidden;
}

#songInfo {
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.top-info {
  color: #1DB954;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  z-index: 1100;
  height: 24px;
  display: flex;
  align-items: center;
}

#songInfo strong {
  color: #1DB954;
}

/* Settings Panel */
.settings-panel {
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  /* right: 0; */
  /* bottom: 0; */
  /* background-color: #121212; */
  /* padding: 60px 20px 40px; */
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.settings-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  /* background-color: #333; */
  /* border-radius: 10px; */
  padding: 15px;
  /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); */
}

.setting-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.setting-group label {
  flex: 1;
  text-align: left;
  font-size: 18px;
  margin-right: 15px;
}

.setting-group input {
  box-sizing: border-box;
  width: 120px;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 12px;
  font-size: 16px;
}

.settings-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
}

#saveSettingsBtn, #cancelSettingsBtn {
  padding: 15px 25px;
  font-size: 16px;
  margin: 10px;
  flex: 1;
}

#cancelSettingsBtn {
  background-color: #555;
}

#cancelSettingsBtn:hover {
  background-color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 500px) {
  h1 {
    /* font-size: 1.5rem; */
  }

  button {
    /* font-size: 0.9rem; */
  }
  
  .setting-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setting-group input {
    width: 100%;
    margin-top: 5px;
  }
  
  .settings-buttons {
    flex-direction: column;
  }
}

#songInfo table {
  width: 100%;
  border-collapse: collapse;
  background-color: #333;
  color: #fff;
  border-radius: 8px;
  overflow: hidden; /* Ensure proper rounded corners */
  margin: 10px auto;
  font-size: 20px;
  min-width: 300px;
}

#songInfo th, #songInfo td {
  padding: 20px 25px;
  text-align: left;
}

#songInfo th {
  color: #1DB954;
  font-weight: bold;
  text-transform: uppercase;
}

#songInfo tr:hover {
  background-color: #444; /* Highlight row on hover */
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 10px 0;
}

.control-btn {
  font-size: 16px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin: 0 10px;
}

/* .control-btn:hover { */
/*   transform: scale(1.1); */
/* } */

.info-btn {
  margin-bottom: 20px;
}

#pauseBtn i, #unpauseBtn i {
  font-size: 60px;
  color: #1DB954;
}

.skip-btn {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.skip-btn:hover {
  background: none;
  transform: scale(1.1);
}

.skip-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.skip-icon i {
  font-size: 30px;
  color: #1DB954;
  font-weight: 100;
}

#backwardBtn {
  margin-right: 5px;
}

#forwardBtn {
  margin-left: 5px;
}

.year-group{
    margin-top: 30px;
}
/* Year Range Slider Styles */
.year-range-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

.year-slider {
  height: 15px;
  background: #222!important;
  width: calc(100% - 12px)!important;
}

/* Custom noUiSlider styling */
.noUi-connect {
  background: #1DB954!important;
}

.noUi-target {
    border: none!important;
    box-shadow: none!important;
}

.noUi-horizontal .noUi-handle {
  border: 2px solid #444;
  width: 30px!important;
  height: 30px!important;
  border-radius: 50%;
  background-color: #1DB954;
  box-shadow: none;
  /* border: 2px solid #fff; */
  cursor: pointer;
  top: -5px;
  right: -12px;
}

.noUi-horizontal .noUi-handle:before,
.noUi-horizontal .noUi-handle:after {
  display: none;
}

.noUi-tooltip {
  transform: translate(-50%, 200%)!important;
  background-color: #1DB954;
  border: none!important;
  color: white!important;
  background: #222!important;
  font-weight: bold;
  padding: 10px!important;
  border-radius: 4px;
}

.year-display {
  margin-top: 15px;
  text-align: center;
  font-size: 16px;
}

#yearRangeDisplay {
  color: #1DB954;
  font-weight: bold;
}

.includes-earlier {
  position: relative;
}

.includes-earlier::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1DB954;
}

.year-hint {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  font-style: italic;
}

@media (max-width: 500px) {
  .year-range-container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Footer styles */
.footer {
    margin-top: auto;
    text-align: center;
    /* padding: 20px 20px; */
    box-sizing: border-box;
    margin: 10px;
}

.privacy-link {
    color: #1DB954;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.privacy-link:hover {
    opacity: 1;
}

.welcome-section {
    max-width: 700px;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.app-icon {
    font-size: 4rem;
    color: #1DB954;
    margin-bottom: 1rem;
}

.welcome-section h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.welcome-section .tagline {
    font-size: 1.1rem;
    color: #b3b3b3;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #282828;
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    transition: background-color 0.3s;
}

.feature:hover {
    background: #383838;
}

.feature i {
    color: #1DB954;
    font-size: 1.2rem;
}

/* Hide welcome section after login */
.logged-in .welcome-section {
    display: none;
}

#topBar{
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

#songInfo td {
    padding: 20px 25px;
    text-align: left;
    position: relative;
}

.spotify-link {
    color: #1DB954;
    text-decoration: none;
    margin-left: 8px;
    font-size: 16px;
    transition: color 0.3s;
}

.spotify-link:hover {
    color: #1ed760;
}

.spotify-link i {
    vertical-align: middle;
}
