@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   PLANBAR - Sky Blue Weather Theme
   Fresh, airy colors inspired by clear skies and weather
   ========================================================================== */

:root {
    /* Sky-Inspired Background */
    --bg-gradient-start: #f0f9ff;
    /* Sky 50 */
    --bg-gradient-mid: #e0f2fe;
    /* Sky 100 */
    --bg-gradient-end: #bae6fd;
    /* Sky 200 */

    /* Surfaces */
    --surface-primary: #ffffff;
    --surface-secondary: #f0f9ff;
    --surface-elevated: #ffffff;

    /* Sky Blue Accent */
    --accent-sky: #0ea5e9;
    /* Sky 500 */
    --accent-sky-light: #38bdf8;
    /* Sky 400 */
    --accent-sky-soft: rgba(14, 165, 233, 0.1);
    --accent-sky-glow: rgba(14, 165, 233, 0.25);

    /* Text Colors - High Contrast */
    --text-primary: #0c4a6e;
    /* Sky 900 */
    --text-secondary: #0369a1;
    /* Sky 700 */
    --text-muted: #7dd3fc;
    /* Sky 300 */
    --text-on-dark: #f0f9ff;

    /* Borders & Shadows */
    --border-subtle: rgba(14, 165, 233, 0.15);
    --border-medium: rgba(14, 165, 233, 0.25);
    --shadow-soft: 0 2px 8px rgba(14, 165, 233, 0.08);
    --shadow-medium: 0 8px 24px rgba(14, 165, 233, 0.12);
    --shadow-strong: 0 16px 48px rgba(14, 165, 233, 0.16);
    --shadow-glow: 0 0 24px rgba(14, 165, 233, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient-start);
    background: linear-gradient(170deg,
            var(--bg-gradient-start) 0%,
            var(--bg-gradient-mid) 50%,
            var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Glass Panel - Main container with frosted glass effect
   ========================================================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.75rem;
    box-shadow:
        var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    box-shadow:
        var(--shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Data Cards - Weather metric tiles with depth
   ========================================================================== */
.data-card {
    background: linear-gradient(135deg,
            var(--surface-secondary) 0%,
            rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect */
.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.6) 0%,
            transparent 100%);
    pointer-events: none;
    border-radius: 1.25rem 1.25rem 0 0;
}

.data-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent-sky);
    box-shadow:
        var(--shadow-medium),
        var(--shadow-glow);
}

/* ==========================================================================
   Loading Spinner - Smooth sky-blue animation
   ========================================================================== */
.loading-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid var(--accent-sky-soft);
    border-top-color: var(--accent-sky);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Chart & Interactive Elements
   ========================================================================== */
canvas {
    cursor: crosshair;
    border-radius: 1rem;
}

/* Focus states */
input:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-sky-soft);
}

/* Text selection */
::selection {
    background: var(--accent-sky);
    color: var(--text-on-dark);
}

/* Utility: Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-sky) 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}