:root {
    --weather-bg: #f8f9fa;
    --weather-card-bg: #ffffff;
    --weather-text-main: #2c3e50;
    --weather-text-muted: #6c757d;
    --weather-accent: #3498db;
    --weather-danger: #e74c3c;
    --weather-border: #e9ecef;
    --weather-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --weather-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
    --weather-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.infopico-weather-widget {
    border: 1px solid var(--weather-border);
    padding: 20px;
    border-radius: 12px;
    background: var(--weather-card-bg);
    font-family: var(--weather-font);
    max-width: 100%;
    box-shadow: var(--weather-shadow);
    color: var(--weather-text-main);
}

.infopico-weather-widget.live .weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.weather-temp {
    font-size: 3em;
    font-weight: 700;
    color: var(--weather-text-main);
    letter-spacing: -1px;
}

.weather-icon {
    font-size: 3em;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    color: var(--weather-text-muted);
}

.weather-footer {
    margin-top: 15px;
    font-size: 0.85em;
    color: var(--weather-text-muted);
    text-align: right;
    border-top: 1px solid var(--weather-border);
    padding-top: 10px;
}

/* Storm Widget */
.infopico-weather-widget.storm-alert {
    background: #fff5f5;
    border-color: #feb2b2;
    text-align: center;
    color: #c53030;
}

.storm-alert h3 {
    color: #c53030;
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 700;
}

.storm-stats {
    display: flex;
    justify-content: space-around;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-box .value {
    font-size: 1.8em;
    font-weight: 800;
    color: #c53030;
}

.stat-box .unit {
    font-size: 0.9em;
    color: #742a2a;
    font-weight: 500;
}

.stat-box .label {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #9b2c2c;
    margin-top: 4px;
    font-weight: 600;
}

/* Dashboard */
.infopico-weather-dashboard {
    background: var(--weather-bg);
    padding: 30px;
    border-radius: 16px;
    font-family: var(--weather-font);
    color: var(--weather-text-main);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--weather-text-main);
    font-weight: 700;
}

.infopico-weather-dashboard .big-temp {
    font-size: 6em;
    font-weight: 800;
    color: var(--weather-text-main);
    line-height: 1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Status Grid Modernization */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.status-item {
    background: var(--weather-card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--weather-shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--weather-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--weather-shadow-hover);
}

.status-item .label {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--weather-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.status-item .value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--weather-text-main);
}

.status-item .value small {
    font-size: 0.6em;
    color: var(--weather-text-muted);
    font-weight: 400;
}

.status-item .sub-value {
    display: block;
    font-size: 0.8em;
    color: var(--weather-text-muted);
    margin-top: 8px;
    border-top: 1px solid #f1f1f1;
    padding-top: 5px;
}

/* Charts Area */
.dashboard-charts {
    background: var(--weather-card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--weather-shadow);
    margin: 40px 0;
    border: 1px solid var(--weather-border);
}

.dashboard-charts h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: var(--weather-text-main);
    border-bottom: 1px solid var(--weather-border);
    padding-bottom: 10px;
}

/* History Table Modernization */
.infopico-weather-history {
    background: var(--weather-card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--weather-shadow);
    border: 1px solid var(--weather-border);
}

.infopico-weather-history h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: var(--weather-text-main);
    border-bottom: 1px solid var(--weather-border);
    padding-bottom: 10px;
}

.weather-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.weather-history-table th {
    background: #f8f9fa;
    color: var(--weather-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--weather-border);
}

.weather-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--weather-border);
    color: var(--weather-text-main);
    font-size: 0.95em;
}

.weather-history-table tr:last-child td {
    border-bottom: none;
}

.weather-history-table .temp-max {
    color: var(--weather-danger);
    font-weight: 600;
}

.weather-history-table .temp-min {
    color: var(--weather-accent);
    font-weight: 600;
}

@media (max-width: 600px) {
    .infopico-weather-dashboard .big-temp {
        font-size: 4em;
    }

    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Live Rain Banner */
.ip-rain-banner {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 12px 20px;
    font-family: var(--weather-font);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 6px;
}

.ip-rain-container {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.ip-rain-icon-anim {
    font-size: 1.5em;
    animation: bounce 2s infinite;
}

.ip-rain-text {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.ip-rain-text .rain-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ip-rain-text .rain-data {
    font-size: 0.95em;
    white-space: nowrap;
}

.ip-rain-text strong {
    font-weight: 700;
    font-size: 1.1em;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .ip-rain-text {
        gap: 10px;
        justify-content: center;
    }

    .ip-rain-text .rain-title {
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }
}