.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    padding: 24px;
}

.record-card {
    background: rgba(20, 30, 50, 0.88);
    border: 1px solid rgba(120, 180, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}

.record-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.4rem;
}

.record-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 12px;
}

.record-line strong {
    color: #4fc3f7;
    min-width: 36px;
}

.record-line span {
    flex: 1;
    color: white;
    font-weight: 600;
}

.record-line small {
    color: #9fb3c8;
    text-align: right;
}

.record-card h3 {
    margin-top: 18px;
    color: #d9e9ff;
}


.records-page {
    padding: 24px;
}

.statistics-hero {
    margin: 0 0 20px 0;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(20, 35, 60, 0.96), rgba(8, 14, 26, 0.92));
    border: 1px solid rgba(120, 180, 255, 0.18);
    box-shadow: 0 18px 45px rgba(0,0,0,0.40);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.statistics-hero h2 {
    margin: 4px 0 6px 0;
    color: #ffffff;
    font-size: 2rem;
}

.section-subtitle {
    margin: 0;
    color: #9fb3c8;
}

.statistics-filters {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.statistics-filters label {
    color: #9fb3c8;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.statistics-filters select {
    min-width: 150px;
    background: rgba(8, 14, 26, 0.96);
    color: #eaf4ff;
    border: 1px solid rgba(120, 180, 255, 0.22);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(20, 30, 50, 0.88);
    border: 1px solid rgba(120, 180, 255, 0.15);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.stat-card span {
    display: block;
    color: #9fb3c8;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.05;
}

.stat-card small {
    display: block;
    color: #7f93aa;
    margin-top: 8px;
}

.statistics-chart-card {
    margin-bottom: 26px;
}

.rain-chart {
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    overflow-x: auto;
    padding: 18px 4px 4px 4px;
}

.rain-bar-wrap {
    min-width: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.rain-bar-value {
    min-height: 14px;
    color: #9fb3c8;
    font-size: 0.7rem;
}

.rain-bar {
    width: 22px;
    border-radius: 10px 10px 3px 3px;
    background: linear-gradient(180deg, #4fc3f7, #1d6fa5);
    box-shadow: 0 0 14px rgba(79,195,247,0.25);
}

.rain-bar-label {
    color: #7f93aa;
    font-size: 0.75rem;
}

.records-section-title {
    padding: 6px 2px 0 2px;
    margin-top: 8px;
}

.records-section-title h2 {
    color: #ffffff;
    margin: 2px 0 10px 0;
    font-size: 1.8rem;
}

.records-grid {
    padding: 0;
}

@media (max-width: 760px) {
    .statistics-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .statistics-filters {
        width: 100%;
    }

    .statistics-filters label {
        flex: 1;
    }

    .statistics-filters select {
        width: 100%;
        min-width: 0;
    }
}


.lightning-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lightning-stat {
    background: rgba(16, 24, 40, 0.75);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
}

.lightning-stat span {
    display: block;
    color: #9fb3c8;
    margin-bottom: 10px;
}

.lightning-stat strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
}

.lightning-stat small {
    display: block;
    margin-top: 8px;
    color: #7f93aa;
}

.distance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

.distance-card {
    background: rgba(16, 24, 40, 0.65);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.distance-card span {
    display: block;
    color: #9fb3c8;
    margin-bottom: 8px;
}

.distance-card strong {
    display: block;
    color: #ffffff;
    font-size: 1.5rem;
}


.storm-calendar-head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.storm-calendar-head div {
    background: rgba(16, 24, 40, 0.70);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
}

.storm-calendar-head strong {
    display: block;
    color: #ffffff;
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.storm-calendar-head span {
    color: #9fb3c8;
}

.storm-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}

.storm-day {
    min-height: 76px;
    border-radius: 16px;
    padding: 10px;
    background: rgba(16, 24, 40, 0.70);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.storm-day strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.storm-day span {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.storm-day small {
    color: rgba(255,255,255,0.75);
}

.storm-level-1 {
    background: linear-gradient(160deg, rgba(120, 100, 20, 0.65), rgba(20, 30, 50, 0.75));
}

.storm-level-2 {
    background: linear-gradient(160deg, rgba(180, 95, 20, 0.72), rgba(20, 30, 50, 0.75));
    box-shadow: 0 0 14px rgba(255, 150, 40, 0.16);
}

.storm-level-3 {
    background: linear-gradient(160deg, rgba(170, 35, 35, 0.78), rgba(20, 30, 50, 0.75));
    box-shadow: 0 0 16px rgba(255, 70, 70, 0.20);
}

.storm-level-4 {
    background: linear-gradient(160deg, rgba(110, 45, 180, 0.85), rgba(130, 25, 40, 0.78));
    box-shadow: 0 0 22px rgba(180, 90, 255, 0.25);
}


.climate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.climate-card {
    background: rgba(16, 24, 40, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
}

.climate-card span {
    display: block;
    color: #9fb3c8;
    margin-bottom: 10px;
}

.climate-card strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
}

.climate-card small {
    display: block;
    margin-top: 8px;
    color: #7f93aa;
}
