/* App Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    min-height: 70px;
    background: white;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 3rem;
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 700;
    color: #333;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.logo h1 span {
    background-image: url('https://storage.googleapis.com/www.clintonrivertraffic.com/images/crushpixel-1625816-ID1625816-640x427.jpg');
    background-size: 200%;
    background-position: top center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}




#logo-img {
  position: absolute;
  left: 0px;
  z-index: 2;
  width: 200px;
  height: 95px;
  top: 10px;
    /* width: 80px;
    height: 42px;
    object-fit: contain; */
}

a.nounder {
  text-decoration: none;      /* removes underline */
  color: inherit;             /* inherits color from parent element */
  cursor: pointer;            /* keeps the hand pointer on hover */
}

/* Fix FontAwesome font override */
/* Replace your FontAwesome CSS with this updated version */
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Updated FontAwesome 6 content codes */
.fa-gear:before {
    content: "\f013" !important;
}

.fa-bars:before {
    content: "\f0c9" !important;
}

.fa-times:before, .fa-xmark:before {
    content: "\f00d" !important;
}

/* Ensure pseudo-elements work properly */
.fa-solid:before, .fa-regular:before, .fa-brands:before {
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}


/* Site Info */
.site-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

#site-label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

#range-display {
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Mobile Menu Toggle - now in nav bar */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

/* Navigation Styles */
.main-nav {
    background: #2c3e50;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-button {
    display: block;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-button:hover {
    background: #34495e;
    color: #3498db;
}

.nav-button.active {
    background: #3498db;
    color: white;
}

/* Sub Navigation */
.sub-nav {
    background: #34495e;
    padding: 0.5rem 0;
    border-top: 1px solid #2c3e50;
}

.sub-nav-content {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sub-nav-button {
    padding: 0.5rem 1rem;
    background: rgba(52, 73, 94, 0.5);
    border: 1px solid #3498db;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sub-nav-button:hover,
.sub-nav-button.active {
    background: #3498db;
    color: white;
}

/* Tooltip */
.nav-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-tooltip.show {
    opacity: 1;
}

/* Main Content */
main {
    margin-top: 110px; /* Account for fixed header */
    /* padding: 1rem; */
    min-height: calc(100vh - 110px);
}

/* Override padding for maps page to use full width */
#maps-page main {
    padding: 0; /* Remove padding for maps page */
}

/* Page Templates */
.page-template {
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
}

/* Keep existing page-template as is, but add this override: */
#maps-page.page-template {
    max-width: none; /* Remove width limit for maps page only */
    margin: 0; /* Remove auto centering */
    width: 100%; /* Use full browser width */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Activity page needs extra padding to show content below sub-nav */
#activity-page .page-header {
    padding: 3rem 1rem 1rem 1rem;
}

/* Maps page should keep minimal padding */
#maps-page .page-header {
    padding: 1rem;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.content-area {
    background: white;
    border-radius: 8px;
    /* padding: 1.5rem; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* History Page Styles */
.search-area {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#vessel-search {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#search-btn {
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.vessel-history {
    min-height: 300px;
}



/* CLEAN VESSEL CARD DEFINITIONS - Add after sidebar-header */
.vessel-display {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    width: 100%;
}

.vessel-tiles {
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.vessel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    height: 100%;
    overflow-y: auto;
    padding: 0;
    align-content: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.vessel-card {
    flex: 0 0 18rem; /* Changed from 280px to relative units */
    width: 18rem; /* Changed from 280px to relative units */
    margin-bottom: 0.75rem;
}

.maps-layout .listMode ul {
    max-width: none !important;
    width: 100% !important;
    padding: 0;
    margin: 0;
}


.list-wrap {
    background-color: #2c3e50;
    opacity: 1;
    border-radius: 8px 8px 0px 0px;
    display: flex;
    font-size: 20pt;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    padding: 4px 0.5rem;
}

.listMode h5 {
    font-size: 1rem;
    border-radius: 0px 0px 8px 8px;
    color: rgba(255, 255, 255, 0.829);
    padding: .3rem;
    margin-top: 0px;
    background: rgb(168, 179, 14);
    text-align: center;
    text-shadow: 1px 1px #000;
}

h4.map-label {
    display: inline;
    background: aquamarine;
    color: black;
    padding: 0.3rem 0.5rem; /* Changed from fixed 5px 8px to relative units */
    border-radius: 60%;
    font-size: 0.7rem; /* Changed from 10px to relative units */
    border: 2px solid black;
    margin: 1vh;
}

h4.map-label.type-watched {
    background: rgba(255, 255, 0, 0.82);
}

.list-wrap .tile-title {
    font-size: 1rem; /* Changed from 1.2rem to be smaller by default */
    color: white;
    margin: auto;
    margin-bottom: 2px;
    margin-left: auto;
    margin-right: auto;
}

.list-wrap div.dir-container {
    position: relative;
    text-align: center;
}

.list-wrap span.speed {
    color: white;
    font-size: small;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

img.dir-img {
    margin-left: auto;
    margin-right: auto;
    height: 2.5rem; /* Changed from 3.47vh to rem units for better scaling */
    filter: drop-shadow(2px 2px 4px #4444dd);
}

/* ===== MAPS PAGE GENERAL LAYOUT ===== */
.maps-layout {
    display: flex;
    height: calc(100vh - 140px);
    gap: 0;
    overflow: hidden;
}

.map-container {
    width: 50vw; /* Changed from 40vw to 50vw for 50/50 split */
    height: 100%;
    background: #f0f0f0;
    position: relative;
}

#imap {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.vessel-sidebar {
    width: 50vw; /* Changed from 60vw to 50vw for 50/50 split */
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    border-left: none; /* Removed border */
    overflow: hidden;
}

/* Page Header with Submenu - hidden since moved to settings dialog */
.page-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.page-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

/* Hide submenu since controls moved to settings dialog */
.page-submenu {
    display: none !important;
}

/* Submenu Styling */
.page-submenu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
    justify-content: space-between;
}

.submenu-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.submenu-right {
    display: flex;
    align-items: center;
}

.submenu-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submenu-group label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-right: 0.5rem;
    color: white;
}

.submenu-btn {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-family: inherit;
}

.submenu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.submenu-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3c72;
    border-color: white;
    font-weight: 600;
}

/* Audio Toggle Button in Submenu */
.audio-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-family: inherit;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.audio-toggle.active {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3c72;
    border-color: white;
}

.audio-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    transition: background-color 0.2s ease;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.audio-led.on {
    background: #28a745;
    box-shadow: 0 0 6px #28a745;
}

/* Sidebar Header */
.sidebar-header {
    padding: 0 1.5rem 0.5rem 1.5rem; /* Only bottom padding */
    background: white;
    border-bottom: none; /* Removed border for cleaner look */
    display: flex;
    justify-content: flex-end;
    align-items: flex-start; /* Align to top instead of center */
    flex-shrink: 0;
    height: auto; /* Remove fixed height */
    margin-top: 0; /* Remove margin-top */
    padding-top: 0; /* Remove top padding completely */
}

.vessel-count-title {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    padding-top: 0; /* Ensure no top padding */
    line-height: 1.2; /* Tighter line height */
}

/* List View Styles */
.waypoint-band {
    background-color: #FF0000;
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waypoint-label {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.list-view-unit {
    background-color: #f8f9fa;
    margin: 2px 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.list-view-unit .list-wrap {
    position: relative;
    padding-left: 110px; /* Make room for detail button and map label */
}

.list-view-unit .map-label {
    position: absolute;
    left: 70px; /* Position after detail button with some spacing */
    top: 50%;
    transform: translateY(-50%);
}

.detail-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10;
}

.detail-btn:hover {
    background-color: #0056b3;
}

.detail-btn.active {
    background-color: #28a745;
}

.detail-btn.active:hover {
    background-color: #1e7e34;
}

/* Ensure data tables are hidden by default in list view */
.list-view-unit .data-cont {
    display: none;
    transition: all 0.3s ease;
}

.list-view-unit .data-cont.show {
    display: block;
}

/* Hide vessel tiles when list view is active */
#vessel-list-view {
    display: none;
}

/* Ensure proper display states */
#vessel-tiles {
    display: block;
}

/* When list view is active */
.list-view-active #vessel-tiles {
    display: none !important;
}

.list-view-active #vessel-list-view {
    display: block !important;
}

/* List view container styling */
#vessel-list-view {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 10px;
}

.vessel-list-view {
    height: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Better scrolling for the vessel sidebar */
.vessel-sidebar {
    max-height: calc(100vh - 140px); /* Account for header */
}

.vessel-display {
    max-height: calc(100vh - 200px); /* Account for header and title */
}

/* Mobile site info in nav bar */
.mobile-site-info {
    display: none;
    color: white;
    padding: 0.5rem 1rem;
    background: #34495e;
    font-size: 0.9rem;
    border-bottom: 1px solid #4a6741;
    position: relative;
    text-align: center;
}

.mobile-site-info span {
    margin-right: 1rem;
}

/* Remove extra spacing between range value and miles */
#mobile-range-value {
    margin-right: 0;
}

/* Live count overlay for mobile nav - now inline */
.mobile-live-count {
    background: #f1c40f;
    color: #000;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, shown when on Maps page */
    margin-left: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .mobile-site-info {
        display: block;
    }
    
    /* Show mobile live count only on mobile */
    .mobile-live-count {
        display: none; /* Will be shown by JS when on Maps page */
    }
    
    /* Hide desktop site info on mobile */
    .site-info {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        padding: 0.5rem;
        min-height: 60px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    #logo-img {
        top: 10px;
        width: 130px;
        height: 62px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    main {
        margin-top: 70px;
        padding: 0.5rem;
        margin-bottom: 0; /* Remove bottom margin on mobile */
    }
    
    /* Special handling for maps page - no bottom padding */
    #maps-page {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px; /* Hidden off-screen initially */
        width: 300px;
        height: 100vh;
        background: #2c3e50;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 80px; /* Account for header height */
    }
    
    .nav-menu.mobile-open {
        left: 0; /* Slide in from left */
    }
    
    /* Overlay to darken background when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-button {
        text-align: left;
        border-bottom: 1px solid #34495e;
    }
    
    main {
        margin-top: 70px;
        padding: 0.5rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .search-area {
        flex-direction: column;
    }
    
    .activity-filters {
        justify-content: center;
    }
    
    .site-info {
        display: none;
    }

    .activity-filters {
        margin-top: 5rem;
        
    }
}

/* Mobile-only navigation items */
.mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    /* Style mobile announcements toggle in navigation */
    #mobile-toggle-announcements {
        background: #34495e !important;
        border-top: 1px solid #4a6741;
        margin-top: 1rem;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    #mobile-announcements-led {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: red;
        display: inline-block;
        margin-right: 0.5rem;
    }
    
    #mobile-announcements-led.on {
        background: #00ff00;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .content-area {
        padding-top: 1rem;
    }
}

/* Responsive scaling for better zoom behavior on tablets and mobile */
/* General responsive layout changes */
@media screen and (max-width: 1024px) {
    .vessel-card {
        flex: 0 0 10rem;
        width: 10rem;
    }
}

@media screen and (max-width: 768px) {
    .vessel-card {
        flex: 0 0 8rem;
        width: 8rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Settings popup dialog */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

.settings-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.settings-overlay.active .settings-dialog {
    transform: scale(1);
}

/* Site selection modal (shown when app route has missing/invalid siteID) */
.app-site-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-site-popup.dialog {
    opacity: 1;
    visibility: visible;
}

.app-site-popup .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, 92vw);
    max-height: 78vh;
    overflow-y: auto;
    background: #5b2f2f;
    color: #f4f4f4;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-site-popup .content h1 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.app-site-popup .content p {
    margin: 0 0 10px;
}

.app-site-popup .site-list-controls {
    text-align: center;
    margin: 8px 0 10px;
}

.app-site-popup .site-sort-button {
    border: none;
    border-radius: 6px;
    background: #0a4d9a;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.app-site-popup .site-sort-button:active {
    background: #08376f;
}

.app-site-popup ul.site-select-list {
    list-style: none;
    padding: 0 10px;
    margin: 0 auto 12px;
    columns: 2;
    column-gap: 150px;
    max-width: 480px;
}

.app-site-popup ul.site-select-list li {
    break-inside: avoid;
    margin: 2px 0;
    white-space: nowrap;
}

.app-site-popup ul.site-select-list li.iowa,
.app-site-popup ul.site-select-list li.Iowa {
    text-align: left;
}

.app-site-popup ul.site-select-list li.illinois,
.app-site-popup ul.site-select-list li.Illinois {
    text-align: right;
}

.app-site-popup ul.site-select-list li a {
    color: #fff8dc;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

.app-site-popup ul.site-select-list li a:hover {
    text-decoration: underline;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.settings-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.settings-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.settings-content {
    padding: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.setting-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.setting-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.setting-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.setting-btn .audio-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    transition: background-color 0.2s ease;
}

.setting-btn.active .audio-led {
    background: #28a745;
}

/* Settings icon in navigation */
.settings-toggle i {
    margin-right: 0.5rem;
}

/* Mobile navigation updates */
@media screen and (max-width: 768px) {
    /* Hide settings button on mobile - use mobile controls instead */
    .settings-toggle {
        display: none !important;
    }
    
    /* Update mobile menu toggle styling */
    .mobile-menu-toggle i {
        margin-right: 0.5rem;
    }
}

/* Desktop - hide mobile menu button */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}