* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Ensures padding and borders are included in element width/height */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Full height body with centered content */
body {
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  background: linear-gradient(120deg, grey, grey); /* Soft blue gradient background */
}

/* Main login container */
.login-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.05); /* Layered shadows for depth */
  width: 400px;
  max-width: 90%; /* Responsive width on smaller screens */
  padding: 2rem;
}

/* Main login container */
.settingsContainer {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.05); /* Layered shadows for depth */
  width: 400px;
  max-width: 90%; /* Responsive width on smaller screens */
  padding: 2rem;
}


/* Header section styling */
.login-header {
  margin-bottom: 2rem;
  text-align: center;
}

.login-header h1 {
  color: #000000;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.login-header p {
  color: #4e4e4e; /* Lighter color for subtitle */
  font-size: 1rem;
}

/* Form group container */
.form-group {
  margin-bottom: 1.5rem; /* Space between form elements */
}

/* Label styling */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 1rem;
}

/* Input field styling */
.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transitions for interactions */
}

/* Focus state for input fields */
.form-group input:focus {
  border-color: #787878; /* Blue border on focus */
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); /* Subtle glow effect */
  outline: none; /* Remove default browser outline */
}

/* Password field wrapper for positioning the toggle button */
.password-field {
  position: relative; /* Allows absolute positioning of child elements */
  display: flex;
  align-items: center;
}

/* Password visibility toggle button */
.toggle-password {
  position: absolute;
  right: 10px; /* Position from the right edge */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #777;
}

/* Eye icon styling */
.eye-icon {
  width: 20px;
  height: 20px;
  fill: #777; /* Gray color for the icon */
}

/* Toggle between eye icons when password visibility changes */
.password-visible .eye-open {
  display: none; /* Hide open eye when password is visible */
}

.password-visible .eye-closed {
  display: block !important; /* Show closed eye when password is visible */
}

/* Error state styling for form inputs */
.form-group input.error {
  border-color: #e74c3c; /* Red border for validation errors */
}

/* Error message styling */
.error-message {
  color: #e74c3c; /* Red text for error messages */
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none; /* Hidden by default, shown via JavaScript */
}

/* Form options container (Remember me and Forgot password) */
.form-options {
  display: flex;
  justify-content: space-between; /* Space items evenly */
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Remember me checkbox styling */
.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type="checkbox"] {
  margin-right: 0.5rem; /* Space between checkbox and label */
}

.remember-me label {
  font-size: 0.9rem;
  color: #666;
}

/* Forgot password link styling */
.forgot-password {
  font-size: 0.9rem;
  color: #000000; /* Blue color for links */
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline; /* Underline on hover for better UX */
}

/* Main login button styling */
.login-button {
  width: 100%;
  padding: 0.8rem;
  background: #000000;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s; /* Smooth hover and click effects */
}

/* Button hover state */
.login-button:hover {
  background: rgb(90, 90, 90); /* Darker blue on hover */
}

/* Button active/pressed state */
.login-button:active {
  transform: scale(0.98); /* Slight scale down when clicked */
}

/* Registration link container */
.register-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: grey;
}

/* Registration link styling */
.register-link a {
  color: #000000; 
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline; /* Underline on hover */
}



/* Responsive design for mobile devices */
@media (max-width: 480px) {
  .login-container {
      padding: 1.5rem; /* Reduced padding on small screens */
  }

  .login-header h1 {
      font-size: 2rem; /* Smaller heading on mobile */
  }

  /* Stack form options vertically on small screens */
  .form-options {
      flex-direction: column;
      align-items: flex-start;
  }

  .forgot-password {
      margin-top: 0.5rem; /* Add space when stacked */
  }
}

/* ---------------- Homepage Styles ---------------- */
.Home-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.Home-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.Home-header p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.Home-container a {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    color: white;
    background-color: black;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    margin: 0.5rem;
    transition: background 0.3s;
}

.Home-container a:hover {
    background-color: rgb(90, 90, 90);
}

/* Make the login/signup links stack nicely on mobile */
@media (max-width: 480px) {
    .Home-container a {
        width: 80%;
        margin: 0.5rem auto;
        display: block;
    }
}

/* ---------------- Dashboard Styles ---------------- */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 50px;
}
#player {
    margin-top: 20px;
    margin-bottom: 20px;
}
.controlBar > .button:enabled:hover {
    fill: grey;
}
#albumCover{
    height: 100px;
    border: rgb(168, 168, 168);
    border-style:outset;
}
#skipper {
    height: 40px;
    width: 100px;
}


/* ---------------- Settings Page Styles ---------------- */
.settingsButton {
  width: 40%;
  padding: 0.8rem;
  background: #000000;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}
/* Button hover state */
.settingsButton:hover {
  background: rgb(90, 90, 90); /* Darker blue on hover */
}

/* Button active/pressed state */
.settingsButton:active {
  transform: scale(0.98); /* Slight scale down when clicked */
}

.tab {
    display: none;
}
.tab.active {
    display: block;
}
/* Search results and playlist styling */
.song-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
  background: transparent;
}
.song-result .song-meta {
  text-align: left;
}
.song-result .song-sub {
  font-size: 0.9rem;
  color: #666;
}
.song-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.small-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}
.small-btn:hover { background: #222222; }
.small-link {
  background: transparent;
  color: #000000;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.small-link:hover { background: #f4f4f4; }

/* Playlist menu */
#playlistMenu { box-shadow: 0 8px 20px rgba(0,0,0,0.12); border-radius:6px; }
#playlistList button { display:block; width:100%; margin:4px 0; text-align:left; padding:8px; border-radius:4px; }

/* Dark mode overrides */
body.dark .song-result { border-bottom-color: #333; }
body.dark .song-result .song-sub { color: #bbb; }
body.dark .small-btn { background: #111111; color: #eee; border-color: rgba(255,255,255,0.06); }
body.dark .small-btn:hover { background: #222222; }
body.dark .small-link { color: #ddd; border-color: rgba(255,255,255,0.03); }
body.dark .small-link:hover { background: #1a1a1a; }

/* Make playlist menu buttons match theme */
#playlistList button { background: transparent; color: inherit; border: 1px solid rgba(0,0,0,0.06); padding: 8px; border-radius: 6px; }
#playlistList button:hover { background: #f4f4f4; }
body.dark #playlistList button { border-color: rgba(255,255,255,0.03); }
body.dark #playlistList button:hover { background: #1a1a1a; }
nav {
    margin-bottom: 20px;
}
nav a {
    margin: 0 10px;
    cursor: pointer;
}
.button {
    background-color: black;
    border-width: 2px;
    width: 350px;
    height: 40px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline;
    font-size: 16px;
}
.button:hover {
    background-color: rgb(121, 119, 119);
    border-width: 2px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}
.button:active {
    background-color: rgb(219, 218, 218);
    border-width: 2px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline;
    font-size: 16px;
}
.listButton {
    background-color: black;
    border-width: 2px;
    color: white;
    padding: 15px 60px;
    text-align: center;
    text-decoration:grey;
    display:inline;
    font-size: 13px;
    width: 350px;
    height:70px
    
}
.listButton:hover {
    background-color: grey;
    border-width: 1px;
    color: white;
    padding: 15px 60px;
    text-align: center;
    text-decoration:grey;
    display:inline;
    font-size: 13px;
    width: 350px;
    height:75px
    
}
.listButton:active {
    background-color: rgb(218, 217, 217);
    border-width: 1px;
    color: rgb(180, 180, 180);
    padding: 15px 60px;
    text-align: center;
    text-decoration:rgb(78, 78, 78);
    display:inline;
    font-size: 13px;
    width: 350px;
    height:90px
    
}
.playlistSelect {
    position: center;
    width: 165px;
    color: black;
    background-color: white;
    border-width: 2;
    border-color: black;

}
#searchbar {
    width: 160px;
    border-width: 2px;
    border-color: black;
    color: black;
    background-color: white;
}
.slider-container {
    display: block;
    opacity:1;
    margin-top: 400px;
    margin: auto;
    width: 360px;
}
.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 3px;
    scale: 1.5;
    background: grey;
    outline: rgb(91, 91, 91);
    opacity: 1;
    transform: rotate(-90deg); /* Rotate to make it vertical */
    margin: auto;
    margin-top: 60px;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 5px;
    height: 20px;
    background: black;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 5px;
    height: 20px;
    background: black;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 5px;
    height: 20px;
    background: black;
    cursor: pointer;
}
.eLabels {
    display: block;
    margin: auto;
    width: 355px;
}
.eLabels.space-around {
    justify-content: start;
}
.eLabel {
    display: inline-block;
    padding: 1.3px;
    margin-top: 30px;
    font-size: 12px;
}