body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #07090e !important;
  background-image: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e5e7eb;
  width: 100vw;
  height: 100vh;
  user-select: none;
}

#root {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  background-color: #07090e;
}

/* App Container */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 90px);
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: #0d111b;
  border-right: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  box-sizing: border-box;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 8px;
}

.app-logo-svg {
  width: 28px;
  height: 28px;
  color: #06b6d4;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.app-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 4px;
  padding-left: 8px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #f3f4f6;
  background-color: #1e293b;
}

.nav-item.active {
  color: #ffffff;
  background-color: #1e293b;
  border-left: 3px solid #06b6d4;
}

.sidebar-divider {
  height: 1px;
  background-color: #1f2937;
  margin: 12px 0 20px 0;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.sidebar-btn:hover {
  background: #1e293b;
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.sidebar-btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border: none;
  color: white;
}

.sidebar-btn-primary:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: white;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Main Content Styling */
.main-content {
  flex: 1;
  background-color: #090d16;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Search bar header */
.header-bar {
  height: 70px;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 20px;
  padding: 6px 16px;
  width: 320px;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

.search-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.search-input::placeholder {
  color: #6b7280;
}

/* Tab panes styling */
.content-pane {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  box-sizing: border-box;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin-top: -18px;
  margin-bottom: 24px;
}

/* Grid layout for cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.music-card {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.music-card:hover {
  background-color: #1e293b;
  border-color: #374151;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.card-img-container {
  aspect-ratio: 1;
  background-color: #1f2937;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

.music-card:hover .card-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-play-btn:hover {
  transform: scale(1.1);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Song Table/List view */
.song-list-container {
  background-color: #0d111b;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}

.song-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.song-table th, .song-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid #1f2937;
}

.song-table th {
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  background-color: #111827;
}

.song-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.song-row:hover {
  background-color: #1e293b;
}

.song-row.active {
  background-color: rgba(6, 182, 212, 0.08);
}

.song-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.song-index {
  color: #6b7280;
  width: 20px;
  text-align: center;
  font-weight: 600;
}

.song-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.song-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-name-text {
  font-weight: 600;
  color: #ffffff;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-row.active .song-name-text {
  color: #06b6d4;
}

.song-artist-text {
  color: #9ca3af;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-source-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-local {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.badge-online {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.song-action-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-action-btn:hover {
  color: #ffffff;
  background-color: #374151;
}

/* Playlist modal & management */
.playlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px;
  width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.modal-input {
  width: 100%;
  background-color: #1e293b;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 10px 12px;
  color: white;
  font-size: 14px;
  outline: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #06b6d4;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.modal-btn-cancel {
  background-color: #334155;
  color: #cbd5e1;
}

.modal-btn-cancel:hover {
  background-color: #475569;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
}

.modal-btn-confirm:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

/* Dropdown menu for playlist assignment */
.dropdown-menu {
  position: absolute;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  z-index: 50;
  min-width: 150px;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #334155;
  color: white;
}

/* Bottom Player Bar Styling */
.player-bar {
  height: 90px;
  background-color: #090c13;
  border-top: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 10;
}

/* Player left: Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 30%;
  min-width: 180px;
}

.player-artwork {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: #1e293b;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-track-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.player-track-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Player Center: Controls */
.player-controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 40%;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.player-btn:hover {
  color: white;
  transform: scale(1.05);
}

.player-btn.active {
  color: #06b6d4;
}

.player-btn-play {
  width: 42px;
  height: 42px;
  background-color: white;
  color: black;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.player-btn-play:hover {
  background-color: #f3f4f6;
  color: black;
  transform: scale(1.08);
}

.player-slider-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.player-time {
  font-size: 11px;
  color: #6b7280;
  font-family: monospace;
  width: 40px;
  text-align: center;
}

.player-slider-wrapper {
  position: relative;
  flex: 1;
  height: 4px;
  background-color: #374151;
  border-radius: 2px;
  cursor: pointer;
}

.player-slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border-radius: 2px;
}

.player-slider-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.player-slider-wrapper:hover .player-slider-thumb {
  opacity: 1;
}

.player-slider-wrapper:hover {
  height: 6px;
}

/* Player Right: Volume and actions */
.player-actions-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 30%;
  min-width: 160px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 120px;
}

.volume-slider-wrapper {
  position: relative;
  flex: 1;
  height: 4px;
  background-color: #374151;
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #06b6d4;
  border-radius: 2px;
}

.volume-slider-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.1s ease;
}

.volume-slider-wrapper:hover .volume-slider-thumb {
  opacity: 1;
}

/* Empty State Styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #6b7280;
  text-align: center;
  padding: 40px;
}

.empty-state-svg {
  width: 64px;
  height: 64px;
  color: #374151;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 13px;
  max-width: 250px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Playlist detail view banner */
.playlist-banner {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.15) 0%, rgba(9, 13, 22, 0) 100%);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.08);
}

.playlist-banner-art {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0d111b);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.playlist-banner-art-svg {
  width: 48px;
  height: 48px;
  color: #06b6d4;
}

.playlist-banner-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #06b6d4;
}

.playlist-name-title {
  font-size: 32px;
  font-weight: 900;
  color: white;
  margin: 0;
  line-height: 1.1;
}

.playlist-song-count {
  font-size: 13px;
  color: #9ca3af;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #374151;
}
