/* Desktop Sidebar - SHOW ON DESKTOP */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(26, 255, 140, 0.1);
    overflow-y: auto;
    z-index: 999;
    padding-top: 20px;
    display: none; /* Hidden by default, shown on desktop */
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(26, 255, 140, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 255, 140, 0.3);
}

.sidebar-nav {
    padding: 0 15px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #b8b8b8;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(26, 255, 140, 0.1);
    color: #1aff8c;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(26, 255, 140, 0.15);
    color: #1aff8c;
    font-weight: 600;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.playlists-section {
    padding: 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 2px;
    cursor: pointer;
}

.playlist-item:hover {
    color: #1aff8c;
    background: rgba(26, 255, 140, 0.1);
    text-decoration: none;
}

.playlist-item svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    opacity: 0.7;
}

.create-playlist {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #1aff8c;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
    border: 1px dashed rgba(26, 255, 140, 0.3);
}

.create-playlist:hover {
    background: rgba(26, 255, 140, 0.1);
    text-decoration: none;
    border-color: #1aff8c;
}

.create-playlist svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* Main content adjustment for desktop sidebar */
@media (min-width: 1024px) {
    .sidebar {
        display: block !important; /* Show sidebar on desktop */
    }

    .app-header,
    .categories-scroll,
    .main-content,
    #audio-player {
        margin-left: 250px; /* Make room for sidebar */
    }

    .mobile-nav {
        display: none !important; /* Hide mobile nav on desktop */
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* Left Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(26, 255, 140, 0.1);
    padding: 20px;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(26, 255, 140, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 255, 140, 0.3);
}

/* Sidebar Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #1aff8c;
    background: rgba(26, 255, 140, 0.1);
}

.nav-item.active {
    color: #1aff8c;
    background: rgba(26, 255, 140, 0.1);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar Section Titles */
.sidebar-section-title {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 24px 16px 12px;
    letter-spacing: 1px;
}

/* Playlist Section */
.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.playlist-item:hover {
    color: #1aff8c;
    background: rgba(26, 255, 140, 0.1);
}

.playlist-item.active {
    color: #1aff8c;
    background: rgba(26, 255, 140, 0.1);
}

/* Logo Section */
.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 24px;
}

.sidebar-logo img {
    height: 32px;
    width: auto;
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(26, 255, 140, 0.1);
    padding: 10px 20px 10px;
    z-index: 1000;
    display: none;
}

.mobile-nav-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav-button.active {
    color: #1aff8c;
    background: rgba(26, 255, 140, 0.1);
}

.mobile-nav-button:hover {
    color: #1aff8c;
    text-decoration: none;
}

.mobile-nav-button svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-nav-button span {
    font-size: 11px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    body {
        padding-bottom: 70px; /* Make room for mobile nav */
    }
    
    .mobile-nav {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
}

/* Scrollable Header Categories */
.categories-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 20px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 255, 140, 0.1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin-right: 12px;
    background: rgba(26, 255, 140, 0.1);
    border: 1px solid rgba(26, 255, 140, 0.2);
    border-radius: 20px;
    color: #1aff8c;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-chip:hover,
.category-chip.active {
    background: rgba(26, 255, 140, 0.2);
    transform: translateY(-2px);
}

.category-chip svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-nav,
    .categories-scroll {
        display: block;
    }

    body {
        padding-bottom: 75px !important;
    }

    .app-header {
        padding-top: 10px;
    }

    #audio-player {
        bottom: 75px !important;
    }

    .float-button {
        bottom: 90px !important;
    }
}