/* ===================================================================
   METEO ŽUPA — NEXT-GEN DESIGN SYSTEM (2026+)
   Ultra-modern Glassmorphism & Cyber-Meteo Aesthetics
   =================================================================== */

/* Google Fonts su premešteni u HTML <head> preko preconnect i async linka radi maksimalne brzine učitavanja */

:root {
    /* Color Palette */
    --bg-base: #07090e;
    --bg-surface: rgba(14, 19, 29, 0.72);
    --bg-surface-elevated: rgba(20, 27, 42, 0.85);
    --bg-surface-hover: rgba(28, 38, 58, 0.9);
    --bg-glass-card: rgba(16, 23, 36, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-bright: rgba(0, 229, 255, 0.35);
    
    /* Text Hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #00e5ff;

    /* Brand Accents */
    --accent-cyan: #00e5ff;
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #a855f7;

    /* Atmospheric Glows */
    --glow-cyan: 0 0 30px rgba(0, 229, 255, 0.25);
    --glow-emerald: 0 0 30px rgba(16, 185, 129, 0.25);
    --glow-amber: 0 0 30px rgba(245, 158, 11, 0.25);
    --glow-rose: 0 0 30px rgba(244, 63, 94, 0.25);
    --glow-purple: 0 0 30px rgba(168, 85, 247, 0.25);

    /* AQI Colors */
    --aqi-excellent: #10b981;
    --aqi-good: #84cc16;
    --aqi-moderate: #eab308;
    --aqi-sensitive: #f97316;
    --aqi-unhealthy: #ef4444;
    --aqi-very-unhealthy: #a855f7;
    --aqi-hazardous: #7e0023;

    /* Radii & Spacing */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================================================
   GLOBAL RESETS & BASE
   =================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Tabular figures for meteorological numbers */
.num-font {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* ===================================================================
   AMBIENT BACKGROUND (AURORA MESH & STARS)
   =================================================================== */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    transform: translateZ(0);
}

.aurora-blob-1 {
    width: 650px;
    height: 650px;
    top: -200px;
    left: 10%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.4) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
}

.aurora-blob-2 {
    width: 750px;
    height: 750px;
    top: 30%;
    right: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.1) 70%, transparent 100%);
}

.aurora-blob-3 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: 20%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(0, 229, 255, 0.1) 70%, transparent 100%);
}

/* Animacija aurore se pokreće isključivo na desktopu (sprečava CLS layout shift na mobilnom) */
@media (min-width: 769px) {
    .aurora-blob {
        animation: floatAurora 18s ease-in-out infinite alternate;
        will-change: transform;
    }
    .aurora-blob-2 {
        animation-delay: -5s;
    }
    .aurora-blob-3 {
        animation-delay: -9s;
    }
}

@keyframes floatAurora {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.12); }
    100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Subtle Starfield Canvas Overlay */
#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* ===================================================================
   LAYOUT & CONTAINER
   =================================================================== */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===================================================================
   HEADER & TOP NAVIGATION
   =================================================================== */
.site-header {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: sticky;
    top: 8px;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    box-sizing: border-box;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-logo-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    display: inline-block;
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glass-bright);
    box-shadow: var(--glow-cyan);
    transition: transform var(--transition-bounce);
}

.brand-logo-wrap .play-badge-icon {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00e5ff, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #07090e;
    font-weight: 900;
    border: 2px solid #07090e;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
    transition: transform var(--transition-fast);
}

.brand-logo-wrap:hover .play-badge-icon {
    transform: scale(1.25);
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.8);
}

.brand-logo-wrap:hover .brand-logo {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--accent-cyan);
}

.brand-text h1 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-text p {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-badge {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-pill);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav Menu (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 5px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #050811;
    background: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
    font-weight: 700;
}

.nav-link .nav-icon {
    font-size: 13px;
}

/* Header Action Tools (Uvek na desnoj strani i 100% vidljivo bez sečenja) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    min-height: 40px;
}

.header-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1440px) {
    .nav-link {
        padding: 4px 7px;
        font-size: 11px;
        gap: 3px;
    }
    .brand-text p {
        display: none;
    }
}

@media (max-width: 1320px) {
    .btn-install-app span:last-child {
        display: none;
    }
    .btn-install-app {
        padding: 5px 9px;
    }
    .nav-link {
        padding: 4px 6px;
        font-size: 10.5px;
    }
    .header-time-pill {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    font-size: 16px;
}

.icon-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.icon-btn.spinning svg,
.icon-btn.spinning span {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===================================================================
   STATION SELECTOR BAR (UPADLJIVO I VISOKO VIDLJIVO)
   =================================================================== */
.stations-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 10px;
    background: linear-gradient(135deg, rgba(14, 21, 38, 0.95), rgba(7, 12, 24, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 229, 255, 0.35);
    border-radius: var(--radius-xl);
    padding: 10px 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.12);
}
.stations-bar::-webkit-scrollbar {
    display: none;
}

/* Red 1 levo: Oznaka */
.stations-bar-title {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(37, 99, 235, 0.2));
    border: 1.5px solid rgba(0, 229, 255, 0.5);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Red 1 desno: Gradijent pilula */
.thermal-gradient-pill {
    order: 2;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(37, 99, 235, 0.32));
    border: 1.5px solid var(--accent-cyan);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35), inset 0 0 8px rgba(0, 229, 255, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Red 2: Sve 4 stanice u punoj širini (4 kolone) */
.stations-cards-group {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: stretch;
}

.station-pill-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    min-width: 0;
    box-sizing: border-box;
}

.station-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
}

.station-pill-btn.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(37, 99, 235, 0.35));
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.5), inset 0 0 12px rgba(0, 229, 255, 0.2);
    transform: translateY(-1px);
}

.station-pill-btn.station-offline {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
}

.station-pill-btn.station-offline:hover {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.25);
}

.station-pill-btn.station-offline.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(185, 28, 28, 0.35));
    border-color: #ef4444;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.5), inset 0 0 12px rgba(239, 68, 68, 0.2);
}

.station-pill-alt-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.station-pill-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin: 0 4px;
    text-align: left;
    flex-grow: 1;
}

.station-pill-temp {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 229, 255, 0.3);
    flex-shrink: 0;
}

.station-pill-aqi {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2.5px 6px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
    flex-shrink: 0;
}

/* ===================================================================
   GLASS CARD UTILITIES
   =================================================================== */
.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-elevated);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.card-title .title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    font-size: 16px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================================================
   DASHBOARD HERO GRID
   =================================================================== */
.hero-dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

/* Hero Weather Main Card */
.weather-hero-card {
    background: linear-gradient(135deg, rgba(20, 28, 45, 0.8) 0%, rgba(13, 19, 32, 0.85) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
}

.weather-hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-station-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero-location-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.hero-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.hero-status-tag.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.hero-status-tag.offline .live-pulse-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: none;
}

.hero-sensor-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-sensor-time .num-font {
    color: var(--accent-cyan);
    font-weight: 700;
}

@media (max-width: 520px) {
    .hero-station-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .hero-status-wrapper {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-temp-condition-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 14px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-temp-wrapper {
    display: flex;
    align-items: flex-start;
}

.hero-temp-value {
    font-size: 64px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-temp-unit {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 2px;
}

.hero-condition-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-condition-icon-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: weatherFloat 4s ease-in-out infinite alternate;
}

.hero-condition-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.4));
    transition: filter 0.35s ease;
    display: block;
}

.station-merit-badge {
    position: relative;
    margin-top: -10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: var(--radius-pill);
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
    letter-spacing: 0.3px;
    cursor: default;
    user-select: none;
    transition: transform 0.25s ease;
}

.station-merit-badge:hover {
    transform: scale(1.05);
}

.station-merit-badge .merit-badge-icon {
    font-size: 10px;
    line-height: 1;
}

.station-merit-badge .merit-badge-text {
    letter-spacing: 0.2px;
}

@keyframes weatherFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.hero-condition-meta h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-condition-meta p {
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-realfeel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

/* Hero Metrics Row */
.hero-quick-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}
@media (max-width: 900px) {
    .hero-quick-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 520px) {
    .hero-quick-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-metric-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qm-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.qm-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.qm-unit {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.qm-trend {
    font-size: 11.5px;
    font-weight: 700;
}
.qm-trend.up { color: var(--accent-rose); }
.qm-trend.down { color: var(--accent-emerald); }
.qm-trend.steady { color: var(--text-secondary); }

/* ===================================================================
   AIR QUALITY (AQI) HUB CARD
   =================================================================== */
.aqi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(16, 23, 36, 0.75) 0%, rgba(13, 19, 32, 0.8) 100%);
    padding: 16px 20px;
}

.aqi-card .card-header {
    margin-bottom: 8px;
}

.aqi-gauge-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 6px 0;
}

.aqi-circle-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    flex-shrink: 0;
}

.aqi-svg-gauge {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.aqi-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.aqi-gauge-bar {
    fill: none;
    stroke: var(--accent-emerald);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 250;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.aqi-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.aqi-score-num {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.aqi-score-sub {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.aqi-level-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aqi-category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    width: max-content;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.aqi-desc-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* PM Metrics Grid */
.pm-particles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}

.pm-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pm-box:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.04);
}

.pm-status-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 3px;
}

.pm-status-badge {
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    padding: 1.5px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.2px;
}

/* Unified PM Scale & Health Recommendation Box */
.pm-scale-unified-card {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all 0.2s ease;
}

.pm-scale-unified-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    background: rgba(0, 229, 255, 0.06);
}

.pm-scale-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-scale-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

.pm-scale-gradient-bar {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #10b981 0%, #eab308 25%, #f97316 50%, #ef4444 75%, #a855f7 100%);
    width: 100%;
    cursor: pointer;
}

.pm-scale-thresholds {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 600;
    cursor: pointer;
}

.pm-health-tip-row {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.pm-health-tip-row strong {
    color: var(--text-primary);
}

.pm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.pm-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.pm-num {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
}

.pm-unit {
    font-size: 10px;
    color: var(--text-muted);
}

.pm-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: 3px;
}

.pm-progress-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--accent-emerald);
    transition: width 0.8s ease;
}

/* Laser Particle Spectrum Grid */
.particle-spectrum-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
}

.particle-spectrum-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

@media (max-width: 640px) {
    .particle-spectrum-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

.spectrum-mini-box {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-fast);
}

.spectrum-mini-box:hover {
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.06);
}

.spectrum-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.spectrum-num {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.spectrum-unit {
    font-size: 8.5px;
    color: var(--text-muted);
}

/* Health Recommendation Banner */
.health-tip-box {
    background: rgba(0, 229, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 11.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.health-tip-box strong {
    color: var(--text-primary);
}

.aqi-guide-btn {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}
/* ===================================================================
   ATMOSPHERIC DETAILS, SUN & CLOUD LAYERS (6-GRID + CLOUDS)
   =================================================================== */
.astro-clouds-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(16, 23, 38, 0.88) 0%, rgba(10, 15, 26, 0.94) 100%);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.astro-clouds-card .card-header {
    margin-bottom: 8px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.wg-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 6px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all var(--transition-fast);
    text-align: center;
}

.wg-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wg-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wg-val {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* Cloud Layers Row */
.cloud-layers-container {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cloud-layers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cloud-total-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.cloud-layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cloud-layer-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cloud-layer-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.cloud-layer-name {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.cloud-layer-name small {
    color: var(--text-muted);
    font-size: 10px;
}

.cloud-layer-val {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.cloud-layer-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.cloud-layer-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #3b82f6, #00e5ff);
    transition: width 0.8s ease;
}

@media (max-width: 900px) {
    .weather-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .cloud-layers-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 580px) {
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .wg-item {
        padding: 8px 4px;
    }
    .wg-val {
        font-size: 15px;
    }
    .astro-clouds-card {
        padding: 12px 10px;
    }
}

/* ===================================================================
   METEOROLOGICAL SENSORS & AGRO (ŽUPA TERROIR) GRID
   =================================================================== */
.section-heading-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 0px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

.param-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.param-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 8px 20px -8px rgba(0, 229, 255, 0.25);
}

.param-card.agro-highlight {
    border-left: 3.5px solid var(--accent-emerald);
}

.param-card.special-highlight {
    border-left: 3.5px solid var(--accent-cyan);
}

.param-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.param-icon {
    font-size: 16px;
    opacity: 0.85;
}

.param-main {
    margin-top: 4px;
}

.param-value {
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.param-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}

.param-subtext {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===================================================================
   HOURLY & 7-DAY FORECAST SECTION
   =================================================================== */
.forecast-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hourly-scroll-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hourly-scroll-strip::-webkit-scrollbar {
    height: 6px;
}

.hourly-scroll-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-pill);
}

.hourly-scroll-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-pill);
}

.hourly-item {
    scroll-snap-align: start;
    min-width: 100px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: var(--transition-fast);
}

.hourly-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.08);
}

.hourly-item.past {
    opacity: 0.62;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.hourly-item.past:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

.hourly-item.now {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.12);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
    transform: scale(1.03);
}

.hourly-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.hourly-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.hourly-temp {
    font-size: 16px;
    font-weight: 800;
}

.hourly-pop {
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ===================================================================
   HOURLY & 7-DAY FORECAST SECTION (UVEK CENTRIRANO NA SREDINI STRANE)
   =================================================================== */
.forecast-section-centered {
    width: 100%;
    max-width: 1240px;
    margin: 36px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.centered-forecast-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    flex-wrap: wrap;
}

.centered-forecast-header .section-title {
    font-size: 22px;
    font-weight: 800;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hourly-day-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.hourly-item.now .hourly-day-badge {
    background: rgba(0, 229, 255, 0.22);
    color: var(--accent-cyan);
    font-weight: 800;
    border: 1px solid rgba(0, 229, 255, 0.4);
}

.centered-forecast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}

.centered-forecast-container .hourly-scroll-strip {
    width: 100%;
    max-width: 1240px;
    justify-content: flex-start;
    padding: 6px 4px 12px 4px;
}

/* 7-Day Forecast Grid Centered */
.daily-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.daily-forecast-grid.centered-daily-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 1150px) {
    .daily-forecast-grid.centered-daily-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        max-width: 860px;
    }
}

@media (max-width: 600px) {
    .daily-forecast-grid.centered-daily-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

.daily-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.daily-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.25);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.daily-card:active {
    transform: translateY(-1px) scale(0.98);
}

.daily-card.today {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, var(--bg-surface) 100%);
}

.daily-card-link-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
    margin-top: 2px;
    transition: opacity 0.2s, transform 0.2s;
}

.daily-card:hover .daily-card-link-badge {
    opacity: 1;
    transform: translateX(2px);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.forecast-open-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-pill);
    color: var(--accent-cyan);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forecast-open-link-btn:hover {
    background: var(--accent-cyan);
    color: #07090e;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
    transform: translateY(-1px);
}

.daily-day-name {
    font-size: 14px;
    font-weight: 800;
}

.daily-date {
    font-size: 11px;
    color: var(--text-muted);
}

.daily-icon {
    width: 44px;
    height: 44px;
}

.daily-temp-bar-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.daily-temp-min { color: var(--accent-blue); }
.daily-temp-max { color: var(--accent-rose); }

/* ===================================================================
   INTEGRATED TABS / VIEWS (RADAR, MUNJE, POŽARI, ANALITIKA)
   =================================================================== */
.view-panel {
    display: none;
    animation: fadeIn 0.3s ease-out forwards;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.full-height-map-wrap {
    width: 100%;
    height: 68vh;
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    position: relative;
    background: #0d131f;
}

.full-height-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#leaflet-fire-map {
    width: 100%;
    height: 100%;
}

.view-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    background: var(--bg-surface);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.view-controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-select {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.custom-select:focus {
    border-color: var(--accent-cyan);
}

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: var(--accent-cyan);
    color: #050811;
    border-color: var(--accent-cyan);
}

/* ===================================================================
   MODALS (AQI GUIDE, FIRE NOTIF, INSTALL)
   =================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 99999;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

/* AQI Table in Modal */
.aqi-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.aqi-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-glass);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 11px;
}

.aqi-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aqi-badge-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.btn-primary-pill {
    padding: 8px 18px;
    background: var(--accent-cyan);
    color: #050811;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.banner-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

/* ===================================================================
   BOTTOM NAVIGATION BAR (MOBILE)
   =================================================================== */
.bottom-dock-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 10px;
    right: 10px;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(14, 19, 29, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 229, 255, 0.25);
    z-index: 9990;

    /* Enable smooth horizontal scrolling on mobile touch devices */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 4px;
}

.bottom-dock-nav::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bottom-dock-nav {
        justify-content: center;
    }
}

.dock-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: var(--transition-fast);
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    flex: 0 0 auto; /* Prevent button compression on mobile screens */
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dock-item .dock-icon {
    font-size: 18px;
    line-height: 1.1;
}

.dock-item:hover, .dock-item.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
}

.dock-item.active .dock-icon {
    filter: drop-shadow(0 0 8px var(--accent-cyan));
    transform: translateY(-1px);
}

/* ===================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================================================== */
@media (max-width: 1024px) {
    .hero-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none; /* Show mobile bottom dock */
    }

    .bottom-dock-nav {
        display: flex;
    }

    .app-container {
        padding-bottom: 110px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .stations-cards-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .aurora-blob {
        filter: blur(40px) !important;
        animation: none !important;
        opacity: 0.3 !important;
        transform: none !important;
    }

    .stations-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border-radius: var(--radius-lg);
        overflow-x: visible;
    }

    .stations-bar-title {
        order: 1;
        font-size: 13px;
        padding: 5px 12px;
    }

    .thermal-gradient-pill {
        order: 2;
        margin-left: auto;
        font-size: 12px;
        padding: 5px 10px;
        gap: 5px;
        flex-shrink: 0;
        max-width: 100%;
    }

    @media (max-width: 460px) {
        .thermal-gradient-pill .gradient-text-full {
            display: none;
        }
        .thermal-gradient-pill {
            padding: 4px 8px;
            font-size: 11.5px;
        }
        .thermal-gradient-pill strong {
            font-size: 13px;
        }
        .gradient-inversion-badge {
            font-size: 10px;
            padding: 1px 5px;
        }
    }

    .stations-cards-group {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .station-pill-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }

    .station-pill-name {
        flex-grow: 1;
        text-align: left;
        margin-left: 8px;
        font-size: 14px;
    }

    .station-pill-temp {
        font-size: 14.5px;
        margin-right: 6px;
    }

    .app-container {
        padding: 12px 14px 100px;
        gap: 16px;
    }

    .site-header {
        top: 8px;
        padding: 12px 16px;
        border-radius: var(--radius-lg);
    }

    .brand-logo-wrap {
        width: 44px;
        height: 44px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text p {
        font-size: 11px;
    }

    .header-time-pill {
        display: none;
    }

    .hero-temp-value {
        font-size: 60px;
    }

    .hero-condition-icon {
        width: 60px;
        height: 60px;
    }

    .station-merit-badge {
        margin-top: -10px;
        font-size: 9px;
        padding: 2px 8px;
    }

    .hero-condition-box {
        gap: 14px;
    }

    .hero-quick-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .aqi-gauge-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .aqi-level-info {
        align-items: center;
    }

    .parameters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .param-card {
        padding: 14px;
        min-height: auto;
    }

    .param-value {
        font-size: 20px;
    }

    .full-height-map-wrap {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .parameters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-temp-condition-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin: 16px 0 20px;
    }

    .hero-condition-box {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===================================================================
   TREND & MONTHLY STATISTICS TABLES STYLING
   =================================================================== */
.data-table-section {
    background: var(--bg-surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
    margin-top: 18px;
    position: relative;
    overflow: hidden;
}

.data-table-section.trend-highlight {
    border-left: 4px solid var(--accent-amber);
}

.data-table-section.monthly-highlight {
    border-left: 4px solid var(--accent-cyan);
}

.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.data-table-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.data-table-hint {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: normal;
}

.modern-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.modern-data-table th {
    text-align: left;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.18);
}

.modern-data-table td {
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}

.modern-data-table tr.clickable-row {
    cursor: pointer;
    transition: var(--transition-fast);
}

.modern-data-table tr.clickable-row:hover {
    background: rgba(0, 229, 255, 0.08);
    border-left: 3px solid var(--accent-cyan);
}

.trend-up {
    color: var(--accent-rose) !important;
    font-weight: 800;
}

.trend-down {
    color: var(--accent-emerald) !important;
    font-weight: 800;
}

.trend-cold {
    color: var(--accent-blue) !important;
    font-weight: 800;
}

.trend-neutral {
    color: var(--text-muted) !important;
}

.status-dot-ok {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    margin-right: 4px;
}

/* ===================================================================
   PWA INSTALLATION BANNER & BUTTONS
   =================================================================== */
.btn-install-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--accent-cyan);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.btn-install-app:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(99, 102, 241, 0.4));
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
}

.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    width: calc(100% - 48px);
    max-width: 400px;
    background: rgba(13, 19, 31, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 229, 255, 0.2);
    z-index: 9999;
    animation: slideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpBanner {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    flex-shrink: 0;
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-banner-text strong {
    font-size: 13.5px;
    color: #fff;
    font-weight: 800;
}

.pwa-banner-text span {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pwa-install-banner {
        right: 12px;
        left: 12px;
        bottom: 76px;
        width: auto;
        max-width: 100%;
        padding: 8px 12px;
        gap: 10px;
        border-radius: var(--radius-md);
    }
    .pwa-banner-icon {
        width: 34px;
        height: 34px;
    }
    .pwa-banner-text strong {
        font-size: 12.5px;
        white-space: nowrap;
    }
    .pwa-banner-text span {
        display: none;
    }
}

/* ===================================================================
   EDUCATIONAL MODAL & QUESTION BUTTONS
   =================================================================== */
.help-question-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 6px;
    vertical-align: middle;
}
.help-question-btn:hover {
    background: var(--accent-cyan);
    color: #0b0e14;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.edu-modal-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 8px;
}
.edu-modal-content h2, .edu-modal-content h3 {
    color: #fff;
    margin-top: 14px;
    margin-bottom: 8px;
}
.edu-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}
.edu-modal-content th, .edu-modal-content td {
    border: 1px solid var(--border-glass);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.edu-modal-content th {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
    font-weight: 800;
    white-space: nowrap;
}

/* ===================================================================
   FLOATING VERSION UPDATE BANNER
   =================================================================== */
.update-floating-banner {
    position: relative;
    width: 100%;
    margin: 0 0 16px 0;
    box-sizing: border-box;
    z-index: 100;
    background: rgba(14, 20, 32, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    animation: slideDownUpdate 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDownUpdate {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.update-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.update-rocket {
    font-size: 26px;
    animation: rocketBounce 1.5s infinite;
    flex-shrink: 0;
}
@keyframes rocketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.update-banner-text strong {
    font-size: 13.5px;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}
.update-banner-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}
.update-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
}
@media (max-width: 600px) {
    .update-floating-banner {
        padding: 10px 14px;
        margin-bottom: 12px;
    }
    .update-banner-content {
        gap: 10px;
        flex-wrap: wrap;
    }
    .update-rocket {
        font-size: 22px;
    }
    .update-banner-text strong {
        font-size: 13px;
    }
    .update-banner-text p {
        font-size: 11px;
    }
}

/* ===================================================================
   AGRO SAVETNIK CARD
   =================================================================== */
.agro-advisor-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.12) 0%, rgba(13, 22, 38, 0.95) 100%);
    border: 1px solid rgba(40, 167, 69, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 1.2fr 1px 1.5fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .agro-advisor-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 14px;
    }
    .agro-advisor-card .agro-divider {
        display: none;
    }
}
.agro-status-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.agro-status-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.agro-status-badge {
    font-size: 20px;
    font-weight: 900;
    color: #28a745;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.agro-status-desc {
    font-size: 12px;
    color: var(--text-secondary);
}
.agro-divider {
    width: 1px;
    height: 80%;
    background: var(--border-glass);
}
.agro-metrics-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}
.agro-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2px;
}
.agro-metric-label {
    font-size: 11.5px;
    color: var(--text-secondary);
}
.agro-metric-val {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

/* ===================================================================
   ALARM DOT PILL
   =================================================================== */
.alarm-dot-pill {
    position: absolute;
    top: 6px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4757;
    animation: alarmPulse 1.8s infinite;
}
@keyframes alarmPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ===================================================================
   ACCESSIBILITY & SEO UTILITIES
   =================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================================================
   SMART METEO ALARM BANNER
   =================================================================== */
.smart-meteo-alarm {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.65);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    animation: fadeInDown 0.4s ease;
}
.smart-meteo-alarm .alarm-icon {
    font-size: 26px;
    animation: alarmPulse 1.8s infinite;
}
.smart-meteo-alarm .alarm-content {
    flex: 1;
}
.smart-meteo-alarm .alarm-content strong {
    font-size: 14.5px;
    color: #fff;
    display: block;
    letter-spacing: -0.2px;
}
.smart-meteo-alarm .alarm-content p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 2px 0 0 0;
    line-height: 1.4;
}
.smart-meteo-alarm .alarm-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    line-height: 1;
}
.smart-meteo-alarm .alarm-close-btn:hover {
    opacity: 1;
}

/* ===================================================================
   ŽUPSKI TERMALNI & VISINSKI PROFIL (KOMPAKTNO U IZBORU STANICA)
   =================================================================== */
.thermal-gradient-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(37, 99, 235, 0.32));
    border: 1.5px solid var(--accent-cyan);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35), inset 0 0 8px rgba(0, 229, 255, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.thermal-gradient-pill:hover {
    border-color: #ffffff;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
    transform: translateY(-1px);
}
.thermal-gradient-pill:active {
    transform: scale(0.97);
}
.thermal-gradient-pill .gradient-label {
    color: #e2e8f0;
    font-weight: 800;
    font-size: 12.5px;
}
.thermal-gradient-pill strong {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* Stanje kada je u Župi temperaturna inverzija (toplije na visini nego u nizinama) */
.thermal-gradient-pill.is-inversion {
    border-color: rgba(255, 159, 67, 0.75);
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.25), rgba(220, 38, 38, 0.22));
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.45), inset 0 0 10px rgba(255, 159, 67, 0.2);
}
.thermal-gradient-pill.is-inversion strong {
    color: #ffb067 !important;
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.7) !important;
}

.gradient-inversion-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 159, 67, 0.3);
    color: #ffd8a8;
    border: 1px solid rgba(255, 159, 67, 0.75);
    padding: 1.5px 7px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.4);
    white-space: nowrap;
}

.thermal-flow-station {
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.thermal-flow-station:hover {
    transform: translateY(-2px);
}
.thermal-flow-step {
    transition: background var(--transition-fast);
}
.thermal-flow-step:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ===================================================================
   HERO SHARE BUTTON & TODAY'S MIN/MAX
   =================================================================== */
.btn-share-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-share-hero:hover {
    background: rgba(0, 229, 255, 0.22);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.hero-today-minmax {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    font-size: 12px;
}
.minmax-tag.min {
    color: var(--accent-cyan);
}
.minmax-tag.max {
    color: #ff9f43;
}
.minmax-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* ===================================================================
   AGRO SPRAY WINDOW
   =================================================================== */
.agro-spray-window {
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.35);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.spray-win-label {
    color: var(--text-secondary);
}
.spray-win-val {
    color: #28a745;
    font-weight: 800;
}

/* ===================================================================
   CSV EXPORT BUTTON
   =================================================================== */
.btn-export-csv {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-export-csv:hover {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

/* ===================================================================
   SHARE MODAL
   =================================================================== */
.share-modal-dialog {
    max-width: 480px;
    background: rgba(10, 15, 28, 0.98);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    padding: 24px;
}
.share-preview-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0 20px 0;
}
.share-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.share-preview-station {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.share-preview-badge {
    font-size: 15px;
    font-weight: 900;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.share-preview-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-line;
}
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 420px) {
    .share-buttons-grid {
        grid-template-columns: 1fr;
    }
}
.share-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.share-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.share-btn-viber:hover {
    background: rgba(115, 96, 242, 0.3);
    border-color: #7360f2;
}
.share-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: #25d366;
}
.share-btn-copy:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
}
.share-btn-native:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

