/* SERE+ Web App Styles */

:root {
    --primary-color: #0A369D;
    --secondary-color: #4CAF50;
    --accent-color: #FF9800;
    --background-color: #0A369D;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --card-border-radius: 12px;
    --button-border-radius: 4px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --content-padding: 16px;
    --player-height: 64px; /* Mini player height */
    --player-expanded-height: 100vh; /* Expanded player height */
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

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

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

#app-container {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
}

/* Header Styles */
#app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo img {
    height: 60px;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.header-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Main Content Styles */
#app-content {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    padding-bottom: var(--player-height); /* Space for mini player */
}

.view-container {
    display: none;
    padding: var(--content-padding);
}

.active-view {
    display: block;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-secondary);
}

/* Bottom Navigation */
#bottom-nav {
    display: flex;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 16px;
}

.nav-btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-btn.active {
    color: var(--text-primary);
}

/* Mini Player (docked at bottom) */
.player-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #000000; /* Black background */
    color: white;
    position: fixed;
    bottom: 0; 
    width: 100%;
    max-width: 480px;
    z-index: 9;
    height: var(--player-height); /* Fixed height */
}

.player-station-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#player-album-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.player-text-info {
    display: flex;
    flex-direction: column;
}

#player-track-name {
    font-weight: 500;
    font-size: 0.9rem;
}

#player-artist-name {
    font-size: 0.8rem;
    opacity: 0.8;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Expanded Player Styles */
.player-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 480px;
    height: var(--player-expanded-height);
    background-color: #000000;
    color: white;
    z-index: 20;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.player-expanded.hidden {
    transform: translateY(100%);
}

.player-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    align-items: center;
}

#close-player-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    overflow-y: auto;
}

.player-artwork {
    width: 70%;
    aspect-ratio: 1;
    align-self: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.track-info {
    text-align: center;
    margin-bottom: 24px;
}

#expanded-player-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

#expanded-player-artist {
    font-size: 1rem;
    opacity: 0.8;
}

.player-controls-expanded {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Recently Played Section */
.recently-played {
    margin-top: 32px;
}

.recently-played h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 500;
    color: white;
}

#recently-played-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recently-played-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recently-played-artwork {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.recently-played-info {
    flex: 1;
}

.recently-played-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.recently-played-artist {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Media Queries for larger screens */
@media (min-width: 481px) {
    .player-mini, .player-expanded {
        width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .player-expanded.hidden {
        transform: translate(-50%, 100%);
    }
}

/* Bottom Navigation */
#bottom-nav {
    display: flex;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 16px;
}

.nav-btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-btn.active {
    color: var(--text-primary);
}

/* Audio Player */
#audio-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #000000; /* Changed to solid black background */
    color: white;
    position: fixed;
    bottom: 0; 
    width: 100%;
    max-width: 480px;
    z-index: 9;
    height: var(--player-height); /* Fixed height for the player */
}

.player-station-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#player-album-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.player-text-info {
    display: flex;
    flex-direction: column;
}

#player-station-name {
    font-weight: 500;
}

#player-now-playing {
    font-size: 0.8rem;
    opacity: 0.8;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Side Menu */
#side-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--primary-color);
    color: white;
    z-index: 30;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#side-menu.visible {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header img {
    height: 32px;
}

#close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-items {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.category-header {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 0 8px;
    margin-top: 8px;
    border-bottom: none;
    pointer-events: none;
}

.menu-item.category {
    padding-left: 8px;
}

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 12px 0;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 481px) {
    #overlay {
        width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px;
    }
}

/* Station Cards */
.station-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--card-border-radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
}

.station-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.station-info {
    flex: 1;
}

.station-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.station-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.station-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px; /* Updated station meta spacing */
    font-size: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Carousels */
.carousel-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    padding: 0;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 16px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Hero Carousel */
.hero-carousel {
    margin-bottom: 24px;
}

.hero-carousel .carousel {
    gap: 16px;
}

.hero-carousel-item {
    min-width: 250px;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-carousel-item-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-carousel-item-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Standard Carousel */
.standard-carousel {
    margin-bottom: 24px;
}

.standard-carousel-item {
    min-width: 200px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.standard-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.standard-carousel-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;  /* Increased from 50% to 60% to provide more space */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.standard-carousel-item-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 6px;  /* Increased from 2px to 6px for better spacing */
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standard-carousel-item-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    max-height: 3.6em;  /* Increased from 2.4em to 3.6em to accommodate 3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Increased from 2 to 3 lines */
    -webkit-box-orient: vertical;
}

/* Mini Carousel */
.mini-carousel {
    margin-bottom: 20px;
}

.mini-carousel-item {
    min-width: 150px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Carousel Styles */
.swiper {
    width: 100%;
    margin-bottom: 24px;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Hero Carousel Swiper Styles */
.hero-carousel .swiper-slide {
    width: 250px;
}

.hero-carousel-item {
    width: 100%;
    min-width: unset;
}

/* Standard Carousel Swiper Styles */
.standard-carousel .swiper-slide {
    width: 200px;
}

.standard-carousel-item {
    width: 100%;
    min-width: unset;
}

/* Mini Carousel Swiper Styles */
.mini-carousel .swiper-slide {
    width: 150px;
}

.mini-carousel-item {
    width: 100%;
    min-width: unset;
}

/* Pagination for Swipers */
.swiper-pagination {
    position: relative;
    margin-top: 8px;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background-color: #FFFFFF;
}

/* Search Container */
.search-container {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--card-border-radius);
    background-color: rgba(255, 255, 255, 0.1);
}

.search-input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Station Details View */
.station-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.station-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.station-header-info {
    flex: 1;
}

.station-header-name {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.station-header-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
}

.status-online {
    background-color: rgba(76, 175, 80, 0.3);
    color: #7CFC00;
}

.status-offline {
    background-color: rgba(244, 67, 54, 0.3);
    color: #FF6347;
}

.section-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--card-border-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.section-card-title {
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-card-content {
    color: rgba(255, 255, 255, 0.9);
}

/* Action Buttons */
.station-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px;
}

.action-button {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button i {
    font-size: 1rem;
}

.primary-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* Now Playing Section */
.now-playing-info {
    display: flex;
    gap: 16px;
}

.now-playing-art img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.now-playing-details {
    flex: 1;
}

.now-playing-track {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.now-playing-artist {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.now-playing-album {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Hidden class */
.hidden {
    display: none !important;
}


@media (min-width: 481px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background-color: #E1E2E1;
        background-image: url(../assets/fbc-black-bg-1920x1080-40p.jpg);
        background-size: cover;
    }
    
    #app-container {
        width: 90%;
        max-width: 1200px; /* Increased max-width for desktop */
        border-radius: 16px;
        height: 90vh;
        max-height: 800px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        display: grid;
        grid-template-columns: 280px 1fr; /* Sidebar + main content */
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header header"
            "sidebar main"
            "player player";
    }
    
    #app-header {
        grid-area: header;
        width: 100%;
    }
    
    #app-content {
        grid-area: main;
        overflow-y: auto;
    }
    
    /* Add a sidebar for navigation */
    #side-menu {
        grid-area: sidebar;
        position: relative;
        transform: none;
        width: 100%;
        height: 100%;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(10, 54, 157, 0.9); /* Slightly transparent */
    }
    
    #mini-player, .player-mini, #bottom-nav {
        grid-area: player;
        position: relative;
        width: 100%;
        max-width: unset;
        left: auto;
        transform: none;
        bottom: auto;
    }
    
    /* Hero carousel desktop improvements */
    .hero-carousel .carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 12px 20px;
        overflow-x: visible;
    }
    
    .hero-carousel-item {
        min-width: unset;
        width: 100%;
    }
    
    /* Station grid for desktop */
    #station-list-view .station-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 16px;
    }
    
    #station-list-view .station-card {
        flex-direction: column;
        height: 100%;
        text-align: center;
        padding: 20px;
    }
    
    #station-list-view .station-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    
    #station-list-view .station-play-button {
        position: static;
        transform: none;
        margin-top: 15px;
        background-color: var(--primary-color);
        width: 50px;
        height: 50px;
        opacity: 0.9;
        transition: all 0.2s ease;
    }
    
    #station-list-view .station-play-button:hover {
        opacity: 1;
        transform: scale(1.05);
    }
    
    /* Expanded player positioning fixes */
    .player-expanded {
        position: fixed;
        top: 5vh;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1200px;
        height: 90vh;
        max-height: 800px;
        border-radius: 16px;
        z-index: 30;
    }
    
    .player-expanded.hidden {
        transform: translate(-50%, 100%);
    }
    
    #overlay.visible {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    
    /* Standard Carousel desktop improvements */
    .standard-carousel .carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
        padding: 8px 16px;
        overflow-x: visible;
    }
    
    .standard-carousel-item {
        min-width: unset;
        width: 100%;
    }
    
    /* Mini Carousel desktop improvements */
    .mini-carousel .carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        padding: 8px 16px;
        overflow-x: visible;
    }
    
    .mini-carousel-item {
        min-width: unset;
        width: 100%;
    }
}

/* Station List with Filters */
.filter-container {
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.filter-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.filter-row {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 8px;
}

.filter-chip {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-chip.selected {
    background-color: var(--primary-color);
    border-color: var(--text-primary);
}

.filter-chip i {
    font-size: 0.8rem;
}

.station-tags {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.station-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Station list view specific styles */
#station-list-view {
    padding-top: 16px;
}

.station-list-header {
    margin-bottom: 20px;
}

.station-list-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.station-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--card-border-radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    position: relative;
}

.station-play-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Side Menu Enhanced Styles */
.menu-items {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.category-header {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 0 8px;
    margin-top: 8px;
    border-bottom: none;
    pointer-events: none;
}

.menu-item.category {
    padding-left: 8px;
}

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 12px 0;
}

/* Desktop-specific menu styles */
@media (min-width: 481px) {
    .menu-header {
        padding: 24px 16px;
    }
    
    .menu-header img {
        height: 80px;
        display: block;
        margin: 0 auto;
    }
    
    #close-menu-btn {
        display: none; /* Hide close button on desktop */
    }
    
    .menu-items {
        padding-top: 24px;
    }
    
    /* Hide duplicate logo in header on desktop */
    #app-header .logo {
        display: none;
    }
    
    /* Hide search and menu buttons on desktop */
    #app-header .header-actions {
        display: none;
    }
    
    /* Make header more compact on desktop */
    #app-header {
        padding: 8px;
        justify-content: flex-end;
        min-height: 40px;
    }
}