/* Advanced Marine Forecast CSS */
:root {
    /* Color Palette */
    --primary-color: #00ffff;
    --primary-glow: rgba(0, 255, 255, 0.4);
    --secondary-color: #ff6b6b;
    --background-dark: #0f1419;
    --background-medium: #1a1d21;
    --background-light: rgba(45, 49, 54, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #9aa0a6;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(60, 64, 67, 0.6);
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

html, body {
    height: 100%;
    overflow: hidden;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 200;
    background: #0f1419;
    color: #e8eaed;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

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

/* Beta Banner */
.beta-banner {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: bannerGlow 4s ease-in-out infinite;
    z-index: 9998;
}

@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5); }
}

.beta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.beta-banner .beta-text {
    position: relative;
    z-index: 1;
}

.beta-banner .beta-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Beta Features Dropdown */
.beta-features-dropdown {
    position: relative;
    margin-left: auto;
}

.beta-features-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.beta-features-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.beta-features-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.beta-features-content {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 400px;
    max-height: 700px;
    background: rgba(15, 20, 25, 0.98);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
    pointer-events: none;
}

.beta-features-content::-webkit-scrollbar {
    width: 6px;
}

.beta-features-content::-webkit-scrollbar-track {
    background: transparent;
}

.beta-features-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.beta-features-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 999999 !important;
    pointer-events: auto;
}

.features-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.features-header h4 {
    color: #00ffff;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.features-header p {
    color: #9aa0a6;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(60, 64, 67, 0.2);
    border: 1px solid rgba(60, 64, 67, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(60, 64, 67, 0.3);
    border-color: rgba(0, 255, 255, 0.3);
}

.feature-item.live {
    border-color: rgba(0, 255, 0, 0.4);
    background: rgba(0, 255, 0, 0.05);
}

.feature-item.coming-soon {
    border-color: rgba(255, 165, 0, 0.4);
    background: rgba(255, 165, 0, 0.05);
}

.feature-item.future {
    border-color: rgba(128, 128, 128, 0.4);
    background: rgba(128, 128, 128, 0.05);
    opacity: 0.7;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.feature-content {
    flex: 1;
}

.feature-name {
    color: #e8eaed;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-item.live .feature-status {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.feature-item.coming-soon .feature-status {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.feature-item.future .feature-status {
    background: rgba(128, 128, 128, 0.2);
    color: #808080;
}

.feature-description {
    color: #9aa0a6;
    font-size: 0.85rem;
    line-height: 1.4;
}

.features-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.suggest-feature-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.suggest-feature-link:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    text-decoration: none;
}

.data-attributions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.attribution-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0;
}

.attribution-text a {
    color: #00ffff;
    text-decoration: none;
}

.attribution-text a:hover {
    text-decoration: underline;
}

/* Update beta banner layout */
.beta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a1d21 0%, #0f1419 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 9998;
}

.beta-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e8eaed;
    font-size: 0.9rem;
}



/* Header */
.header {
    background: #1a1d21;
    border-bottom: 1px solid #3c4043;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.logo-text {
    position: relative;
    z-index: 10;
    margin-left: 1rem;
}

.brand-name {
    font-size: 2rem !important;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1.1rem !important;
    font-weight: 500;
    color: #00ffff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.wave-container {
    position: absolute;
    top: 0;
    left: -2rem;
    right: -2rem;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 8px;
    background: #00ffff;
    opacity: 0.2;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.4));
    clip-path: polygon(
        0% 50%,
        5% 40%,
        10% 60%,
        15% 30%,
        20% 70%,
        25% 45%,
        30% 55%,
        35% 35%,
        40% 65%,
        45% 50%,
        50% 40%,
        55% 60%,
        60% 30%,
        65% 70%,
        70% 45%,
        75% 55%,
        80% 35%,
        85% 65%,
        90% 50%,
        95% 40%,
        100% 60%
    );
}

.wave1 {
    animation: wave1 8s ease-in-out infinite;
    bottom: 20%;
}

.wave2 {
    animation: wave2 10s ease-in-out infinite;
    bottom: 40%;
    animation-delay: -2s;
}

.wave3 {
    animation: wave3 12s ease-in-out infinite;
    bottom: 60%;
    animation-delay: -4s;
}

.wave4 {
    animation: wave4 14s ease-in-out infinite;
    bottom: 80%;
    animation-delay: -6s;
}

@keyframes wave1 {
    0% { transform: translateX(-50%) translateY(0px) scaleX(1); }
    25% { transform: translateX(-40%) translateY(-5px) scaleX(1.1); }
    50% { transform: translateX(-30%) translateY(0px) scaleX(1.2); }
    75% { transform: translateX(-40%) translateY(-3px) scaleX(1.1); }
    100% { transform: translateX(-50%) translateY(0px) scaleX(1); }
}

@keyframes wave2 {
    0% { transform: translateX(-60%) translateY(0px) scaleX(0.8); }
    25% { transform: translateX(-50%) translateY(-3px) scaleX(0.9); }
    50% { transform: translateX(-40%) translateY(0px) scaleX(1.0); }
    75% { transform: translateY(-2px) scaleX(0.9); }
    100% { transform: translateX(-60%) translateY(0px) scaleX(0.8); }
}

@keyframes wave3 {
    0% { transform: translateX(-70%) translateY(0px) scaleX(0.6); }
    25% { transform: translateX(-60%) translateY(-2px) scaleX(0.7); }
    50% { transform: translateX(-50%) translateY(0px) scaleX(0.8); }
    75% { transform: translateX(-60%) translateY(-1px) scaleX(0.7); }
    100% { transform: translateX(-70%) translateY(0px) scaleX(0.6); }
}

@keyframes wave4 {
    0% { transform: translateX(-80%) translateY(0px) scaleX(0.4); }
    25% { transform: translateX(-70%) translateY(-1px) scaleX(0.5); }
    50% { transform: translateX(-60%) translateY(0px) scaleX(0.6); }
    75% { transform: translateX(-70%) translateY(-1px) scaleX(0.5); }
    100% { transform: translateX(-80%) translateY(0px) scaleX(0.4); }
}

.header-text h1 {
    font-size: 1.2rem;
    font-weight: 200;
    color: #e8eaed;
    margin: 0;
    letter-spacing: -0.02em;
}

.header-text p {
    font-size: 0.875rem;
    color: #9aa0a6;
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.location-display {
    background: #2d3136;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.camera-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

.camera-btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 200;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-tropical {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    text-decoration: none;
    display: flex;
    letter-spacing: 0.01em;
    align-items: center;
    gap: 0.5rem;
}

.btn-tropical:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* Autoplay Button */
.autoplay-btn {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.autoplay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, #00ffff, #0066cc);
}

.autoplay-btn svg {
    width: 16px;
    height: 16px;
}

.autoplay-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 255, 255, 0.3);
}

/* Time Display */
.time-display {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

.local-time, .utc-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.time-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.time-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.time-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    opacity: 0.9;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    gap: 0.75rem; /* Reduced gap */
    padding: 0.75rem; /* Reduced padding */
    height: calc(100vh - 200px); /* More conservative height */
    z-index: 1;
    min-height: 0; /* Allow flex shrinking */
    overflow: hidden; /* Prevent scrollbars */
}

/* (removed) legacy "Desktop optimized for 1920x1080+ / use a larger screen"
   splash gate — the app is going fully responsive (tablet + mobile). */

.left-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Further reduced gap */
    min-height: 0; /* Allow flex shrinking */
    flex-shrink: 1; /* Allow panel to shrink */
    overflow: hidden; /* Prevent scrollbars */
}

.right-panel {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 0; /* Allow flex shrinking */
    flex-shrink: 1; /* Allow panel to shrink */
    overflow: hidden; /* Prevent scrolling, allow proper sizing */
}



/* Map Container */
.map-container {
    position: relative;
    flex: 3; /* Reduced from 4 to give more space to buoy cards */
    min-height: 0; /* Allow flex shrinking */
    background: #1a1d21;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(60, 64, 67, 0.3);
    z-index: 1;
}

#map {
    height: 100%;
    width: 100%;
}

/* Neon Circle Marker Styles */
.neon-pulse {
    animation: neonPulse 2s infinite;
    filter: drop-shadow(0 0 8px #00ffff);
}



@keyframes neonPulse {
    0% {
        opacity: 1;
        filter: drop-shadow(0 0 8px #00ffff);
    }
    50% {
        opacity: 0.7;
        filter: drop-shadow(0 0 12px #00ffff);
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px #00ffff);
    }
}



/* Data Source Indicator */
.data-source-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 1000;
    font-size: 12px;
    color: #ffffff;
}

.source-badge {
    display: flex;
    align-items: center;
    margin: 2px 0;
    gap: 6px;
}

.source-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.source-dot.nws {
    background: #00ffff;
    box-shadow: 0 0 5px #00ffff;
}

.source-dot.openmeteo {
    background: #ff6b6b;
    box-shadow: 0 0 5px #ff6b6b;
}

/* Controls Panel */
.controls-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Timeline Controls */
.timeline-controls {
    background: rgba(26, 29, 33, 0.9);
    border: 1px solid rgba(60, 64, 67, 0.6);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(20px);
    width: 100%;
    margin-bottom: 0.5rem;
    min-height: 2.25rem;
    flex-shrink: 0; /* Prevent timeline from shrinking */
}

.timeline-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    height: auto;
    flex: 1;
    min-width: 200px;
}

.timeline-slider {
    width: 100% !important;
    height: 6px !important;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.1)) !important;
    border-radius: 3px !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid rgba(0, 255, 255, 0.5) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 4px rgba(0, 255, 255, 0.2) !important;
    cursor: pointer !important;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00ffff, #00cccc) !important;
    cursor: pointer !important;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.8),
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    transition: all 0.2s ease !important;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #9aa0a6;
    white-space: nowrap;
    width: 100%;
    line-height: 1;
    margin: 0;
    padding: 0 0.5rem;
    height: 1rem;
}

.current-time {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 200;
    font-size: 0.8rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Charts Container */
.charts-container {
    flex: 0.4; /* Much smaller to ensure it fits */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.15rem; /* Smaller gap */
    padding: 0.15rem; /* Smaller padding */
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0.15rem; /* Smaller margin */
}

.chart-panel {
    background: #1a1d21;
    border: 1px solid rgba(60, 64, 67, 0.6);
    border-radius: 0;
    padding: 0.15rem; /* Normal padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    min-height: 0;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem; /* Normal margin */
}

.chart-header h3 {
    font-size: 0.7rem; /* Normal font size */
    font-weight: 600;
    color: #00ffff;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-container {
    flex: 1;
    position: relative;
    background: #0f1419;
    border-radius: 6px;
    min-height: 0;
    height: 100%;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Current Conditions */
.current-conditions {
    flex-shrink: 0; /* Fixed height */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem; /* Smaller gap */
    margin-top: 0.4rem; /* Less space from timeline */
    margin-bottom: 0.4rem; /* Less space to charts */
    padding: 0.5rem; /* Less padding */
    min-height: 0;
}

.condition-card {
    background: rgba(45, 49, 54, 0.4);
    border: 1px solid rgba(60, 64, 67, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.condition-card:hover {
    background: rgba(45, 49, 54, 0.8);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.condition-card:hover .condition-value {
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

/* Chart highlighting on condition card hover */
.condition-card:nth-child(1):hover ~ .charts-container .chart-panel:nth-child(1),
.condition-card:nth-child(1):hover ~ .charts-container .chart-panel:nth-child(1) .chart-header h3 {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.condition-card:nth-child(2):hover ~ .charts-container .chart-panel:nth-child(2),
.condition-card:nth-child(2):hover ~ .charts-container .chart-panel:nth-child(2) .chart-header h3 {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.condition-card:nth-child(3):hover ~ .charts-container .chart-panel:nth-child(3),
.condition-card:nth-child(3):hover ~ .charts-container .chart-panel:nth-child(3) .chart-header h3 {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.condition-card:nth-child(4):hover ~ .charts-container .chart-panel:nth-child(4),
.condition-card:nth-child(4):hover ~ .charts-container .chart-panel:nth-child(4) .chart-header h3 {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.condition-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.15rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    line-height: 1.2;
}

.condition-label {
    font-size: 0.75rem;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.condition-card:hover {
    background: rgba(45, 49, 54, 0.8);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.condition-card:hover .condition-value {
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

/* Location Presets */
.location-presets {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(26, 29, 33, 0.9);
    border: 1px solid rgba(60, 64, 67, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.location-presets h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.preset-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-btn {
    background: rgba(45, 49, 54, 0.6);
    border: 1px solid rgba(60, 64, 67, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #9aa0a6;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.preset-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

.preset-btn.active {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border-color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* BuoyCAM Section */
.buoycam-section {
    margin-top: 0.5rem; /* Further reduced margin */
    background: rgba(26, 29, 33, 0.9);
    border: 1px solid rgba(60, 64, 67, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px; /* Fully rounded corners */
    padding: 0.5rem; /* Further reduced padding */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    flex: 1; /* Take remaining space to reach bottom */
    min-height: 0; /* Allow shrinking */
}

.buoycam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem; /* Reduced margin */
}

.buoycam-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #00ffff;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.buoycam-timestamp {
    font-size: 0.75rem;
    color: #9aa0a6;
    font-weight: 400;
}

.buoycam-container {
    position: relative;
    width: 100%;
    height: 92%; /* Slightly reduce height to sit within container */
    border-radius: 12px; /* Match buoy card border radius */
    overflow: hidden;
    background: rgba(45, 49, 54, 0.6);
    border: 1px solid rgba(60, 64, 67, 0.4);
    margin-bottom: 0.2rem; /* Add some space at bottom */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure all images within buoycam container respect rounded corners */
.buoycam-container img,
.buoycam-container .buoycam-panorama {
    border-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    object-fit: cover !important; /* Cover to fill container properly */
    max-height: 95% !important; /* Leave room for rounded corners */
    max-width: 100% !important;
    margin-bottom: 0.1rem !important; /* Small margin to show rounded bottom */
    overflow: visible !important; /* Prevent clipping */
    clip-path: none !important; /* Remove any clip paths */
}

.buoycam-panorama {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 12px; /* Ensure image has rounded corners */
    border-bottom-left-radius: 12px; /* Explicitly set bottom corners */
    border-bottom-right-radius: 12px;
    max-height: 95%; /* Leave room for rounded corners */
    max-width: 100%;
    overflow: visible; /* Prevent clipping */
    clip-path: none; /* Remove any clip paths */
}

.buoycam-loading,
.buoycam-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9aa0a6;
    font-size: 0.875rem;
    text-align: center;
}

.buoycam-error {
    color: #ff6b6b;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(26, 29, 33, 0.9);
    border: 1px solid rgba(60, 64, 67, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



.control-group {
    margin-bottom: 1.5rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.model-toggles, .parameter-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.model-toggle, .parameter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.model-toggle:hover, .parameter-toggle:hover {
    background: rgba(241, 245, 249, 0.8);
}

.model-toggle input, .parameter-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.unit-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

/* Right Panel */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Timeline Controls - Duplicate removed */

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.0625rem;
    font-size: 0.65rem;
    color: #9aa0a6;
}

.current-time {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    min-width: 80px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Charts Container */
.charts-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    overflow-y: auto;
}

.chart-panel {
    background: rgba(26, 29, 33, 0.3);
    border: 1px solid rgba(60, 64, 67, 0.6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #9aa0a6;
    cursor: pointer;
}

.order-toggle input {
    width: 12px;
    height: 12px;
}

.info-icon {
    font-size: 0.75rem;
    color: #9aa0a6;
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 200px;
    background: rgba(15, 20, 25, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Current Conditions */
.current-conditions {
    flex: 0.1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem;
    margin-top: 0.15rem;
    padding: 0.15rem;
    min-height: 0;
}

.condition-card {
    background: rgba(45, 49, 54, 0.4);
    border: 1px solid rgba(60, 64, 67, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.condition-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.condition-label {
    font-size: 0.75rem;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Satellite Timestamp Overlay */
.satellite-timestamp {
    position: absolute;
    bottom: 20px;
    right: 80px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
    animation: timestampGlow 2s ease-in-out infinite alternate;
}

@keyframes timestampGlow {
    from { box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3); }
    to { box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5); }
}

.timestamp-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timestamp-icon {
    font-size: 16px;
    color: #00ff00;
}

.timestamp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timestamp-date {
    font-size: 12px;
    font-weight: 600;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.timestamp-time {
    font-size: 10px;
    color: rgba(0, 255, 0, 0.8);
    font-weight: 500;
}

/* Time Controls State Management */
.time-controls-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.time-controls-disabled .fullscreen-timeline-slider {
    background: #666;
    cursor: not-allowed;
}

.time-controls-disabled .control-btn {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.time-controls-disabled .fullscreen-time-display {
    color: #999;
}

.time-controls-enabled {
    opacity: 1;
    pointer-events: auto;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

/* Layer Toggle Forecast Support Indicators */
.layer-toggle[data-forecast-support="false"] .layer-name::after {
    content: " (No Forecast)";
    font-size: 10px;
    color: #888;
    font-style: italic;
    margin-left: 4px;
}

.layer-toggle[data-forecast-support="true"] .layer-name::after {
    content: " (5-Day Forecast)";
    font-size: 10px;
    color: #00ff00;
    font-weight: 500;
    margin-left: 4px;
}

/* Wind Layer Styling */
.wind-speed-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid #00ffff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.wind-info-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    min-width: 200px;
}

.wind-info-header h4 {
    margin: 0 0 12px 0;
    color: #00ffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.wind-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wind-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.wind-stat:last-child {
    border-bottom: none;
}

.wind-label {
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
}

.wind-value {
    color: #00ffff;
    font-size: 12px;
    font-weight: 600;
}

/* Pressure Center Styling */
.pressure-popup {
    font-family: 'Inter', sans-serif;
    min-width: 200px;
}

.pressure-popup h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.pressure-popup p {
    margin: 4px 0;
    font-size: 12px;
    color: #666;
}

.pressure-popup strong {
    color: #333;
    font-weight: 600;
}

/* Wind Arrow Styling */
.wind-arrow {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wind-arrow:hover {
    opacity: 1;
    stroke-width: 3;
}

.loading-overlay p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Model Colors - All cyan for consistency */
.model-gfs { color: #00ffff; }
.model-ww3 { color: #00ffff; }
.model-graphcast { color: #00ffff; }
.model-fourcastnet { color: #00ffff; }
.model-earth2 { color: #00ffff; }









/* Map Controls Container */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}



/* Fullscreen Button */
.fullscreen-btn {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #00ffff;
    font-size: 12px;
    font-weight: 500;
}

.fullscreen-btn:hover {
    background: rgba(15, 20, 25, 1);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Fullscreen Mode - Clean and Simple */
.app-container.fullscreen-mode {
    height: 100vh;
    overflow: hidden;
}

.app-container.fullscreen-mode .beta-banner,
.app-container.fullscreen-mode .header,
.app-container.fullscreen-mode .right-panel {
    display: none !important;
}

/* Ensure right panel is visible when not in fullscreen */
.app-container:not(.fullscreen-mode) .right-panel {
    display: flex !important;
    width: 35%;
    flex-direction: column;
    background: transparent;
    border-left: none;
    overflow: hidden;
}
.app-container.fullscreen-mode .buoy-cards,
.app-container.fullscreen-mode .buoycam-section,
.app-container.fullscreen-mode .timeline-controls,
.app-container.fullscreen-mode .charts-container,
.app-container.fullscreen-mode .chart-panel,
.app-container.fullscreen-mode .chart-container {
    display: none !important;
}

/* Show fullscreen-only elements when in fullscreen mode */
.app-container.fullscreen-mode .current-conditions.fullscreen-only {
    display: grid !important;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    backdrop-filter: blur(20px);
}

.app-container.fullscreen-mode .timeline-controls.fullscreen-only {
    display: flex !important;
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    backdrop-filter: blur(20px);
}

.app-container.fullscreen-mode .charts-container.fullscreen-only {
    display: grid !important;
    position: absolute;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
    z-index: 1000;
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    backdrop-filter: blur(20px);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Hide normal elements when in fullscreen mode */
.app-container.fullscreen-mode .current-conditions:not(.fullscreen-only),
.app-container.fullscreen-mode .timeline-controls:not(.fullscreen-only),
.app-container.fullscreen-mode .charts-container:not(.fullscreen-only) {
    display: none !important;
}

/* Ensure normal elements are visible when NOT in fullscreen mode */
.app-container:not(.fullscreen-mode) .current-conditions:not(.fullscreen-only) {
    display: grid !important;
}

/* Tide Overlay Styles */
.tide-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: rgba(15, 20, 25, 0.95);
    border-top: 2px solid rgba(0, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: none;
}

.tide-overlay.show {
    transform: translateY(0);
}

.tide-overlay-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.tide-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tide-overlay-header h3 {
    color: #00ffff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tide-overlay-close {
    background: none;
    border: none;
    color: #00ffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tide-overlay-close:hover {
    background: rgba(0, 255, 255, 0.1);
}

.tide-chart-container {
    flex: 1;
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    min-height: 200px;
}

#tide-chart {
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: block;
    min-height: 200px;
    overflow: visible;
}

.tide-info {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.tide-current, .tide-next {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tide-label {
    color: #9aa0a6;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.tide-value {
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Moon Overlay Styles */
.moon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 2px solid rgba(255, 0, 255, 0.6);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    display: none;
}

.moon-overlay.show {
    transform: translateY(0);
}

.moon-overlay-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.moon-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.moon-overlay-header h3 {
    color: #ff00ff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.moon-overlay-close {
    background: none;
    border: none;
    color: #ff00ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.moon-overlay-close:hover {
    background: rgba(255, 0, 255, 0.1);
}

.moon-forecast {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex: 1;
    gap: 1.5rem;
    padding: 0 1rem;
}

.moon-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background: rgba(255, 0, 255, 0.05);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem 0.75rem;
    transition: all 0.3s ease;
    justify-content: space-between;
}

.moon-day:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.4);
}

.moon-day-header {
    color: #ff00ff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.moon-day-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.5));
    margin-bottom: 0.75rem;
}

.moon-day-phase {
    color: #ff00ff;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.moon-day-date {
    color: #9aa0a6;
    font-size: 0.75rem;
    text-align: center;
}

/* Snappy layer controls transitions */
.ocean-layers-controls {
    transition: transform 0.3s ease-out;
}

/* Snappy overlay positioning */
.ocean-layers-controls.tide-active {
    transform: translateY(-200px) !important;
    max-height: calc(100vh - 240px) !important;
}

.ocean-layers-controls.moon-active {
    transform: translateY(280px) !important;
    max-height: calc(100vh - 240px) !important;
}

.ocean-layers-controls.both-active {
    transform: translateY(40px) !important;
    max-height: calc(100vh - 240px) !important;
}

.app-container:not(.fullscreen-mode) .timeline-controls:not(.fullscreen-only) {
    display: flex !important;
}

.app-container:not(.fullscreen-mode) .charts-container:not(.fullscreen-only) {
    display: grid !important;
}

.app-container.fullscreen-mode .main-content {
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.app-container.fullscreen-mode .left-panel {
    width: 100%;
    height: 100vh;
    position: relative;
}

.app-container.fullscreen-mode .map-container {
    width: 100%;
    height: 100vh;
    position: relative;
}








    }
}


        gap: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.75rem;
        background: rgba(15, 20, 25, 0.95);
        border: 1px solid rgba(0, 255, 255, 0.3);
        border-radius: 8px;
        backdrop-filter: blur(20px);
    }
    
    .condition-card {
        padding: 0.75rem;
        background: rgba(45, 49, 54, 0.8);
        border: 1px solid rgba(60, 64, 67, 0.4);
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        transition: all 0.3s ease;
    }
    
    .condition-value {
        font-size: 1.25rem;
        font-weight: 600;
        color: #00ffff;
        margin-bottom: 0.25rem;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        word-break: break-word;
        line-height: 1.2;
    }
    
    .condition-label {
        font-size: 0.7rem;
        color: #9aa0a6;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1.2;
    }
    
    .header h1 {
        font-size: 1rem;
    }
    
    .header .tagline {
        font-size: 0.6rem;
    }
    
    .beta-banner {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .beta-banner .beta-text {
        line-height: 1.3;
    }
    

    

    
    .current-time {
        font-size: 0.9rem;
        background: rgba(0, 255, 255, 0.1);
        color: #00ffff;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 500;
        text-align: center;
        text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    }
    

}
    

    

}




    

}



/* Chart.js Customization */
.chart-container canvas {
    max-height: 300px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}


}


}

/* Enhanced Neon Glow for Data Points on Hover */
.chart-panel:hover .chart-container canvas {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.7));
}

/* Map Customization */
.leaflet-container {
    background: #1a1d21 !important;
}

.leaflet-control-zoom {
    background: rgba(45, 49, 54, 0.8) !important;
    border: 1px solid rgba(60, 64, 67, 0.5) !important;
    backdrop-filter: blur(10px);
}

.leaflet-control-zoom a {
    background: rgba(45, 49, 54, 0.8) !important;
    border: 1px solid rgba(60, 64, 67, 0.5) !important;
    color: #e8eaed !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(60, 64, 67, 0.8) !important;
    border-color: rgba(138, 180, 248, 0.3) !important;
}

.leaflet-control-attribution {
    background: rgba(15, 20, 25, 0.8) !important;
    color: #9aa0a6 !important;
    backdrop-filter: blur(10px);
}

/* Map marker pulse animation */
.neon-pulse {
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { 
        opacity: 0.8; 
        box-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
    }
    50% { 
        opacity: 1; 
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.8), 0 0 30px rgba(0, 122, 255, 0.4);
    }
}

/* Pressure Systems */
.pressure-system {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-align: center;
}

.pressure-high {
    border: 3px solid #ff6b6b;
    color: #d63031;
}

.pressure-low {
    border: 3px solid #74b9ff;
    color: #0984e3;
}

.pressure-symbol {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.pressure-value {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

.pressure-strong {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pressure-moderate {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pressure-weak {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Wind Flow Canvas - Separate layer to avoid conflicts */
.wind-flow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100; /* Very low z-index to stay below satellite (1000) and other layers */
    display: none; /* Hidden by default */
    background: transparent; /* No background to avoid blocking other layers */
}

/* Show wind flow canvas when active, regardless of fullscreen mode */
.wind-flow-canvas.active {
    display: block !important;
    visibility: visible !important;
    z-index: 2000 !important; /* Ensure it's above all map layers */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Wind Flow Display Styling */
.wind-flow-display {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 20, 40, 0.9) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.wind-flow-header {
    color: #00ff88;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.wind-flow-content {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.wind-flow-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px;
    color: white;
    z-index: 1001;
    display: none; /* Hidden by default */
}

/* Show wind flow elements only in fullscreen mode when enabled */
.fullscreen-mode .wind-flow-canvas.active {
    display: block;
}

.fullscreen-mode .wind-flow-controls.active {
    display: block;
}

.wind-flow-controls label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.wind-flow-controls input[type="range"] {
    width: 100px;
    margin-bottom: 10px;
}

/* Cloud Overlay */
.cloud-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ffff;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    z-index: 2000;
    backdrop-filter: blur(10px);
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.cloud-overlay-content {
    padding: 15px;
}

.cloud-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #00ffff;
    padding-bottom: 10px;
}

.cloud-overlay-header h3 {
    margin: 0;
    color: #00ffff;
    font-size: 16px;
}

.cloud-overlay-close {
    background: none;
    border: none;
    color: #00ffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.cloud-overlay-close:hover {
    background: rgba(0, 255, 255, 0.2);
}

.cloud-metrics {
    margin-bottom: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.metric-label {
    color: #cccccc;
    font-size: 12px;
}

.metric-value {
    color: #00ffff;
    font-weight: bold;
    font-size: 12px;
}

.quality-excellent {
    color: #00ff88 !important;
}

.quality-good {
    color: #ffff00 !important;
}

.quality-poor {
    color: #ff4444 !important;
}

.cloud-recommendations h4 {
    color: #00ffff;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.cloud-recommendations ul {
    margin: 0;
    padding-left: 20px;
    font-size: 11px;
    line-height: 1.4;
}

.cloud-recommendations li {
    margin-bottom: 5px;
    color: #cccccc;
}

/* Cloud Overlay Button */
.cloud-overlay-btn {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    border-radius: 8px;
    color: #00ffff;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cloud-overlay-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

/* Buoy Cards */
.buoy-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem; /* Reduced gap */
    margin-top: 0.25rem; /* Reduced margin */
    padding: 0.25rem; /* Reduced padding */
    background: transparent; /* Remove background container */
    border: none; /* Remove border */
    border-radius: 0;
    backdrop-filter: none; /* Remove backdrop filter */
    box-shadow: none; /* Remove shadow */
    flex: 1; /* Increased from 0.6 to give buoy cards more space */
    min-height: 0; /* Allow shrinking */
    overflow: hidden; /* Changed back to hidden to contain cards properly */
}

/* Fullscreen Mode - Reorganized Layout */
.app-container.fullscreen-mode .left-panel {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-container.fullscreen-mode .map-container {
    flex: 1;
    height: 40vh;
    position: relative;
}

/* Numerical forecast cards below map */
.app-container.fullscreen-mode .current-conditions {
    position: absolute;
    top: calc(40vh + 1rem);
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 0;
}

/* Buoy cards below numerical forecast */
.app-container.fullscreen-mode .buoy-cards {
    position: absolute;
    top: calc(40vh + 120px);
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem;
    z-index: 1000;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 0;
}

/* Timeline controls above charts */
.app-container.fullscreen-mode .timeline-controls {
    position: absolute;
    top: calc(40vh + 280px);
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem;
    z-index: 1000;
    margin: 0;
}

/* Charts below timeline controls */
.app-container.fullscreen-mode .charts-container {
    position: absolute;
    top: calc(40vh + 360px);
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem;
    z-index: 1000;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
    max-height: calc(60vh - 460px);
    overflow-y: auto;
}

.app-container.fullscreen-mode .chart-panel {
    padding: 0.75rem;
}

.app-container.fullscreen-mode .chart-container {
    min-height: 180px;
}

/* BuoyCAM photo at the bottom */
.app-container.fullscreen-mode .buoycam-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem;
    z-index: 1000;
    margin: 0;
}

.app-container.fullscreen-mode .buoycam-container {
    height: 150px;
}

.app-container.fullscreen-mode .buoycam-header {
    margin-bottom: 0.75rem;
}

.app-container.fullscreen-mode .buoycam-header h4 {
    font-size: 0.9rem;
}

.app-container.fullscreen-mode .buoycam-timestamp {
    font-size: 0.7rem;
}

.app-container.fullscreen-mode .buoy-card {
    min-height: 120px;
    padding: 0.75rem;
}

.app-container.fullscreen-mode .buoy-header h4 {
    font-size: 0.75rem;
}

.app-container.fullscreen-mode .buoy-distance {
    font-size: 0.65rem;
}

.app-container.fullscreen-mode .buoy-label {
    font-size: 0.65rem;
}

.app-container.fullscreen-mode .buoy-value {
    font-size: 0.75rem;
}

.app-container.fullscreen-mode .buoy-status {
    font-size: 0.65rem;
    padding-top: 0.5rem;
}

.buoy-card {
    background: rgba(26, 29, 33, 0.9); /* Slightly more prominent background */
    border: 1px solid rgba(0, 255, 255, 0.3); /* Slightly more visible border */
    border-radius: 12px;
    padding: 0.5rem; /* Increased padding for better spacing */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Changed back to hidden to contain status within card */
    min-height: 150px; /* Slightly increased to better fill space */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); /* Add shadow for definition */
}

.buoy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff, #00ffff);
    opacity: 0.6;
}

.buoy-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    cursor: pointer;
}

.buoy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem; /* Increased margin for better spacing */
}

.buoy-header h4 {
    color: #ffffff;
    font-size: 1rem; /* Increased from 0.875rem */
    font-weight: 200;
    margin: 0;
    letter-spacing: 0.01em;
}

.buoy-distance {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem; /* Increased from 0.75rem */
    font-weight: 200;
}

.buoy-data {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Increased gap for better spacing */
    flex: 1;
    justify-content: space-evenly; /* Changed back to space-evenly for better distribution */
    margin-bottom: 0.4rem; /* Increased space before status */
}

.buoy-reading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3; /* Increased line height for better readability */
    padding: 0.1rem 0; /* Added small vertical padding */
}

.buoy-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem; /* Increased from 0.75rem */
    font-weight: 200;
}

.buoy-value {
    color: #ffffff;
    font-size: 1rem; /* Increased from 0.875rem */
    font-weight: 200;
    font-family: 'Courier New', monospace;
}

/* Smaller font for wind data to prevent cutoff */
.buoy-value[id*="wind"] {
    font-size: 0.75rem; /* Smaller font for wind data */
}

/* Make buoy data text smaller in condition cards */
.condition-value[id*="currentWind"] .buoy-data,
.condition-value[id*="currentSST"] .buoy-data {
    font-size: 0.6rem;
    line-height: 1.1;
}

.buoy-status {
    margin-top: 0; /* Remove auto margin */
    padding: 0.4rem 0.3rem; /* Increased padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem; /* Increased from 0.75rem */
    font-weight: 200;
    text-align: center;
    line-height: 1.2; /* Ensure proper line height for status text */
    min-height: 1.5rem; /* Increased minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent status from shrinking */
}

.buoy-status.online {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6); /* Add glow to online status */
}

.buoy-status.offline {
    color: #ff4444;
}

/* Buoy wave indicator on map */
.buoy-wave-indicator {
    position: absolute;
    width: 4px;
    background: linear-gradient(to top, #00ffff, #0080ff);
    border-radius: 2px;
    animation: wave-pulse 2s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes wave-pulse {
    0%, 100% { 
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
        transform: scaleY(0.8);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
        transform: scaleY(1.1);
    }
}

@keyframes buoy-pulse {
    0%, 100% { 
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.9), 0 0 30px rgba(0, 255, 255, 0.4);
        transform: translateX(-50%) scale(1.1);
    }
}

/* Refresh button styling */
.refresh-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 1.2rem;
}

.refresh-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}



.ocean-layers-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 340px;
    max-height: calc(100vh - 40px);
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
    transition: transform 0.5s ease-in-out;
}

/* Separate zoom controls */
.map-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.zoom-control-btn {
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.zoom-control-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.2);
}

.zoom-control-btn:active {
    transform: translateY(0);
}

.zoom-control-btn svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.5));
}

.ocean-layers-controls::-webkit-scrollbar {
    width: 8px;
}

.ocean-layers-controls::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ocean-layers-controls::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.ocean-layers-controls::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Sophisticated Button Styling */
.control-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 255, 255, 0.3);
}

.control-btn svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.5));
}

/* Time Controls Section */
.time-controls {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.playback-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}







.time-display {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    min-width: 120px;
    white-space: nowrap;
}



.ocean-currents-controls {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.ocean-currents-controls.show {
    display: flex;
}

.control-section {
    background: rgba(45, 49, 54, 0.3);
    border: 1px solid rgba(60, 64, 67, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.control-section h3 {
    color: #00ffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Section titles with color borders */
.section-title {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid;
}

/* Color borders for different sections */
.section-title[data-section="current-conditions"] {
    border-left-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.section-title[data-section="ocean-dynamics"] {
    border-left-color: #0080ff;
    background: rgba(0, 128, 255, 0.1);
}

.section-title[data-section="fishing-biology"] {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.section-title[data-section="surf-coastal"] {
    border-left-color: #00ff80;
    background: rgba(0, 255, 128, 0.1);
}

.section-title[data-section="display-settings"] {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.section-title[data-section="time-controls"] {
    border-left-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}



.layer-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.layer-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #00ffff;
    border-radius: 4px;
}

.layer-toggle input:checked + .layer-name {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.layer-toggle input:checked ~ .layer-source {
    color: rgba(0, 255, 255, 0.8);
}

/* Enhanced styling for satellite layer when active */
.layer-toggle.satellite-active input:checked + .layer-name {
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    animation: satelliteGlow 2s ease-in-out infinite alternate;
}

@keyframes satelliteGlow {
    from { text-shadow: 0 0 8px rgba(0, 255, 255, 0.4); }
    to { text-shadow: 0 0 16px rgba(0, 255, 255, 0.8); }
}

.layer-name {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 500;
    flex: 1;
}

.layer-source {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.time-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.playback-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}



/* Fullscreen timeline controls - completely separate from default page */
.fullscreen-time-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding: 0.5rem !important;
}

.fullscreen-timeline-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
    width: 100% !important;
}

.fullscreen-timeline-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.fullscreen-timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.fullscreen-timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.fullscreen-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #9aa0a6;
    white-space: nowrap;
    width: 100%;
    line-height: 1;
    margin: 0;
    padding: 0 0.5rem;
    height: 1rem;
}

.fullscreen-time-display {
    background: rgba(0, 255, 255, 0.1) !important;
    color: #00ffff !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 6px !important;
    font-weight: 200 !important;
    font-size: 0.8rem !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4) !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
}

.fullscreen-playback-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}



/* Fullscreen mode timeline slider only - more specific to override !important */
.app-container.fullscreen-mode .timeline-slider {
    width: 100% !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
}

.app-container.fullscreen-mode .timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    background: #00ffff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.app-container.fullscreen-mode .timeline-slider::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    background: #00ffff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.time-slider {
    width: 100%;
    height: 6px;
    background: rgba(60, 64, 67, 0.5);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.time-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.time-display {
    text-align: center;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.playback-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.playback-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 0.875rem;
}

.playback-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.6);
}

.playback-btn.active {
    background: rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.8);
}

.display-settings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.setting-toggle:hover {
    background: rgba(241, 245, 249, 0.1);
}

.setting-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #00ffff;
}

.setting-toggle-label {
    font-size: 0.875rem;
    color: #ffffff;
}

.future-features {
    color: #9aa0a6;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    padding: 1rem;
    background: rgba(45, 49, 54, 0.2);
    border-radius: 6px;
    border: 1px dashed rgba(60, 64, 67, 0.4);
}

/* Camera Modal */
.camera-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    transform: translateZ(0);
    will-change: transform;
}

.camera-modal-content {
    background: #0f1419;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0 auto;
    padding: 0;
    width: 99%;
    max-width: 2000px;
    max-height: 99vh;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
}

.camera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.05);
}

.camera-attribution a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.camera-attribution a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.camera-modal-header h3 {
    color: #00ffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.camera-modal-body {
    padding: 0.5rem;
    max-height: calc(99vh - 80px);
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.video_wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.videos {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
    display: block;
    min-height: 600px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Additional video stream optimizations */
    object-fit: cover;
    object-position: center;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    /* Prevent layout shifts */
    contain: layout style paint;
    /* Smooth video rendering */
    filter: none;
    /* Optimize for video content */
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.camera-attribution {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: #9aa0a6;
    font-size: 0.875rem;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 10;
}

.name_video {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.control_wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
}

.main_control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.btns {
    display: flex;
    gap: 0.5rem;
}

.play, .pause {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play:hover, .pause:hover {
    background: rgba(255, 255, 255, 0.3);
}

.right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.logo a:hover {
    color: #00ffff;
}

/* If any Leaflet top-right control still injects a Wind & Pressure checkbox, hide it */
.leaflet-top.leaflet-right .leaflet-control label:has(.layer-name) {
    display: none !important;
}
