
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #121212;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 220px;
  background: #1c1c1c;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;   /* Add this */
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1001;     /* Ensure it stays on top */
}


.sidebar h2 {
  margin-bottom: 20px;
  color: #236fe1;
}

.sidebar nav a, .bottom-links a {
  color: #ccc;
  text-decoration: none;
  margin: 10px 0;
  display: block;
  font-size: 15px;
}

.sidebar h3 {
  margin-top: 20px;
  color: #888;
  font-size: 14px;
}

.content-wrapper {
  display: flex;
  flex: 1;
  position: relative;
  padding-left: 220px; /* left sidebar width */
  padding-right: 250px; /* NEW: right sidebar width */
  padding-bottom: 70px;
}


.main-content {
  flex: 1;
  padding: 20px;
  background: #181818;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header input {
  width: 450px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
}


.highlight {
  margin-top: 20px;
  background-image: url("assets/images/cover.jpeg");
  background-size: cover;
  background-position: center;
  height: 200px;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.highlight-overlay {
  position: relative;
  z-index: 1;
}

.playlist-row {
  margin-top: 30px;
}

.playlists {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.playlist-card {
  width: 150px;
  height: 180px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.playlist-card p {
  margin: 10px 0;
  font-size: 14px;
  color: #eee;
}

/* Make main content scrollable */
.main-content {
  overflow-y: auto;
  height: calc(100vh - 80px); /* Adjust based on footer height */
  padding-bottom: 100px; /* space for bottom bar */
}

/* Trending Songs Section */
/* Trending Section Layout */
.trending-section {
  padding: 20px;
  color: white;
  margin-bottom: 20px; /* give room for fixed bottom bar */
}

.trending-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Grid layout for trending songs */
.trending-songs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Song Card */
.song-card {
  background-color: #1e1e1e;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s;
}

.song-card:hover {
  transform: scale(1.05);
}

.song-card img {
  width: 100%;
  border-radius: 8px;
}

.song-card h3 {
  font-size: 16px;
  margin-top: 10px;
  font-weight: bold;
}

.song-card p {
  font-size: 14px;
  color: #bbb;
}



.right-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background-color: #111;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid #333;
  z-index: 1000; /* Ensure it's above content */
}


.now-playing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 10px;
}

.now-playing-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 80vh;
  overflow-y: auto;
}

.song-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s;
}

.song-item:hover {
  background-color: #222;
}

.song-item.playing {
  background-color: #3b3b3b;
  border-left: 4px solid #6a5acd;
}

.song-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}

.song-details {
  flex-grow: 1;
}

.song-title {
  font-weight: bold;
  font-size: 14px;
}

.song-artist {
  font-size: 12px;
  color: #aaa;
}


.now-footer {
  position: fixed;
  bottom: 0;
  left: 220px;   /* left sidebar width */
  right: 250px;  /* right sidebar width */
  height: 70px;
  background: #1c1c1c;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}


.now-footer-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.now-footer-content img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.song-text {
  flex: 1;
}

.song-text .title {
  font-weight: bold;
}

.song-text .artist {
  font-size: 13px;
  color: #ccc;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.player-controls button {
    background-color: #236fe1; /* Spotify green */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 16px;
}

.player-controls button:hover {
    background-color: #236fe1;
}

.view-all {
    color: #236fe1; /* Use same theme color as logo */
    font-weight: 500;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

.play {
  background-color: #236fe1;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.play:hover {
  background-color: #1e5ed6;
}


.main-content::-webkit-scrollbar {
  display: none;
}



/* playlist */


.playlist-header {
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.playlist-header h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* NEW: Separate song list with padding */
.playlist-content {
  padding: 30px 20px;
}

/* Optional: Style individual songs nicely */
.song {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid gray;
  color: white;
}



.songs-list {
  margin-top: 20px;
}


.song img {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 4px;
}

.song-title {
  font-weight: bold;
  margin: 0;
}

.song-artist {
  font-size: 0.9em;
  color: gray;
  margin: 0;
}









.now-playing-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.now-playing-bar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.now-info {
    flex: 1;
}

.now-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}



.punjabi-songs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding-bottom:20px ;
}



.song-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.song-item:hover {
  background-color: #222;
}

.song-item.playing {
  background-color: #333;
  border-left: 3px solid #6a5acd;
}

.song-title {
  font-weight: bold;
  font-size: 14px;
}

.song-artist {
  font-size: 12px;
  color: #aaa;
}




/* album */

.album-section {
  margin-top: 10px; /* reduced from large default to 10px */
  padding: 10px 20px;
}

.album-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #fff;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center; /* center album card content */
}

.album-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.album-card:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}
  

.album-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px; /* Or 0 for perfect square */
  display: block;
  margin: 0 auto;
}


.album-card h3 {
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
}

.album-card p {
  font-size: 13px;
  color: #bbb;
  margin-top: 2px;
}





/* artist */

/* artist */

.artist-section {
  margin-top: 20px;
  padding: 10px 20px;
}

.artist-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #fff;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.artist-card {
  text-align: center;
}

.artist-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.artist-card h3 {
  margin-top: 10px;
  font-size: 15px;
  color: #fff;
}

.artist-card p {
  font-size: 12px;
  color: #bbb;
  margin-top: 3px;
}

.artist-card:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}


.artist-card {
  text-decoration: none;
  color: inherit;
  display: block;
}





/* settings */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s, color 0.3s;
}

.dark {
  background-color: #121212;
  color: #ffffff;
}

.light {
  background-color: #f0f0f0;
  color: #222;
}

.settings-container {
  max-width: 800px;
  padding: 40px 20px;
   margin-left: 250px;
   
}



.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.placeholder {
  color: #999;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontally center */
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid #444;
  text-align: center;
  color: #ccc;
  font-size: 14px;
  margin-top: 40px;
  margin-bottom: 100px;
}


/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #888;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4f46e5;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.mode-label {
  margin-left: 15px;
  font-size: 16px;
}



/* logout */

/* Logout Modal Styling */
.logout-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.logout-modal-content {
  background-color: #1e1e1e;
  color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.logout-buttons {
  margin-top: 20px;
}

.logout-buttons button {
  padding: 8px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.logout-buttons button:first-child {
  background-color: #e74c3c;
  color: #fff;
}

.logout-buttons button:last-child {
  background-color: #2ecc71;
  color: #fff;
}

.btn-login {
  background-color: #3c82f6;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s;
}


.btn-login {
  background-color: #3c82f6;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: #2c6cd9;
}



