/**
 * Marine Dashboard Styles
 * 
 * Styles for the 3D marine conditions visualization dashboard.
 * Includes glass-morphism effects, animations, and responsive layouts.
 * 
 * @file marine-dashboard.css
 * @requires Tailwind CSS (loaded via CDN in layout)
 * @requires Font Awesome 6.4+ (loaded in page)
 */

/* ==========================================================================
   Page Layout
   ========================================================================== */

.dashboard-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #0c1929 0%, #050a12 100%);
    overflow: hidden;
}

/* ==========================================================================
   Glass-morphism Effects
   ========================================================================== */

.glass {
    background: rgba(8, 15, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card {
    background: rgba(8, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   Typography & Text Effects
   ========================================================================== */

.glow-text {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5), 0 0 40px rgba(56, 189, 248, 0.3);
}

.data-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Status Indicators
   ========================================================================== */

.status-live {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e;
    }
    50% {
        box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e, 0 0 30px #22c55e;
    }
}

/* ==========================================================================
   Condition Badges
   ========================================================================== */

.condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.condition-calm {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.condition-moderate {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.condition-rough {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Time Selection Table
   ========================================================================== */

.time-row {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 8px 12px;
}

.time-row:hover {
    background: rgba(56, 189, 248, 0.15);
}

.time-row.selected {
    background: rgba(56, 189, 248, 0.25);
    border-left: 3px solid #38bdf8;
}

.time-table-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.time-table-container::-webkit-scrollbar {
    width: 6px;
}

.time-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.time-table-container::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

/* ==========================================================================
   3D Scene Container
   ========================================================================== */

#scene-container {
    cursor: grab;
}

#scene-container:active {
    cursor: grabbing;
}

/* ==========================================================================
   Left Panel (Data Display)
   ========================================================================== */

.left-panel {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 320px;
    z-index: 10;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.panel-toggle {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 15;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #e2e8f0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .left-panel {
        top: 80px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: 360px;
    }

    .left-panel.is-collapsed {
        transform: translateX(calc(-100% - 24px));
        opacity: 0;
        pointer-events: none;
    }

    .panel-toggle {
        display: inline-flex;
    }
}
