/* Global Styles */
:root {
  --primary-color: var(--color-primary, #10b981);
  --secondary-color: var(--bg-surface, #181818);
  --dark-bg: var(--bg-main, #0a0a0a);
  --light-text: var(--text-primary, #ffffff);
  --dark-text: var(--text-secondary, #b3b3b3);
  --sidebar-width: 250px;
  --player-height: 80px;
}

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

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--secondary-color);
  height: calc(100vh - var(--player-height));
  position: fixed;
  padding: 20px 0;
  overflow-y: auto;
  border-right: 1px solid #333;
}

.sidebar .logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.logo h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  margin-bottom: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-left: 3px solid var(--primary-color);
}

.library-section {
  padding: 0 20px;
}

.library-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--dark-text);
}

.playlist-list {
  list-style: none;
}

.playlist-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.playlist-list li:last-child {
  border-bottom: none;
}

.playlist-list a {
  text-decoration: none;
  color: var(--dark-text);
  transition: color 0.3s ease;
}

.playlist-list a:hover {
  color: var(--light-text);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  height: calc(100vh - var(--player-height));
  overflow-y: auto;
  padding: 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
}

.search-box {
  position: relative;
  width: 400px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-text);
}

.search-box input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 20px;
  color: var(--light-text);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn {
  padding: 8px 16px;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.user-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.content-area {
  margin-bottom: 100px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* Card Styles */
.song-grid, .library-grid, .radio-stations, .playlist-grid, .artist-grid, .album-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.station-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.station-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.station-info {
  padding: 15px;
}

.station-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.genre, .description {
  font-size: 14px;
  color: var(--dark-text);
  margin: 5px 0;
}

.station-actions {
  margin-top: 10px;
}

/* Player */
.player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background-color: var(--secondary-color);
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

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

.song-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.album-art img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.current-song h4 {
  font-size: 14px;
  margin-bottom: 3px;
}

.current-song p {
  font-size: 12px;
  color: var(--dark-text);
}

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

.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  width: 30%;
}

.time {
  font-size: 12px;
  color: var(--dark-text);
  min-width: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }
  
  .logo h2 span, .nav-item span, .library-section h3, .playlist-list li, .filter-section, .lib-card, .station-card, .artist-card, .album-card {
    display: none;
  }
  
  .sidebar:hover {
    width: 250px;
  }
  
  .sidebar:hover .logo h2 span, .sidebar:hover .nav-item span, 
  .sidebar:hover .library-section h3, .sidebar:hover .playlist-list li,
  .sidebar:hover .filter-section, .sidebar:hover .lib-card,
  .sidebar:hover .station-card, .sidebar:hover .artist-card, 
  .sidebar:hover .album-card {
    display: block;
  }
  
  .search-box {
    width: 200px;
  }
  
  .song-grid, .library-grid, .radio-stations, .playlist-grid, .artist-grid, .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}