.nws-alerts-panel {
    background: linear-gradient(180deg, #0c203d 0%, #15345f 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    margin: 24px 0;
}

.nws-alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.nws-alerts-header h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 28px;
}

.nws-alerts-subtitle,
.nws-alerts-meta span {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.nws-alerts-selector {
    background: rgba(255,255,255,0.08);
    padding: 14px 16px;
    border-radius: 12px;
    margin: 0 0 18px;
}

.nws-alerts-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.nws-alerts-selector select,
.nws-alerts-selector button {
    min-width: 260px;
    border-radius: 10px;
    border: none;
    padding: 10px 12px;
}

.nws-alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.nws-alert-card {
    background: #ffffff;
    color: #10213d;
    border-radius: 16px;
    padding: 18px;
    border-top: 6px solid #7a8798;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.nws-alert-card.severity-extreme { border-top-color: #b50000; }
.nws-alert-card.severity-severe { border-top-color: #de4f11; }
.nws-alert-card.severity-moderate { border-top-color: #d6a100; }
.nws-alert-card.severity-minor { border-top-color: #2378ff; }
.nws-alert-card.severity-unknown { border-top-color: #7a8798; }

.nws-alert-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.nws-alert-badge {
    display: inline-block;
    background: #10213d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}

.nws-alert-event {
    font-weight: 700;
    font-size: 13px;
    color: #15345f;
    text-align: right;
}

.nws-alert-card h4 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.nws-alert-details {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.nws-alert-details li {
    margin-bottom: 8px;
    font-size: 14px;
}

.nws-alert-description,
.nws-alert-instruction p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.nws-alert-instruction {
    background: #f3f7fb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.nws-alert-link {
    display: inline-block;
    background: #0f66d8;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.nws-alert-link:hover {
    opacity: 0.92;
}

.nws-alerts-empty,
.nws-alerts-error {
    background: rgba(255,255,255,0.12);
    padding: 16px;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .nws-alerts-panel {
        padding: 18px;
    }

    .nws-alerts-header {
        flex-direction: column;
    }

    .nws-alerts-header h3 {
        font-size: 22px;
    }
}


.nws-alerts-selector-buttons {
    padding: 16px;
}

.nws-alerts-selector-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #fff;
}

.nws-alerts-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow: auto;
}

.nws-state-button {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px 12px;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nws-state-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.28);
}

.nws-state-button.is-active {
    background: #fff;
    color: #10213d;
    border-color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.nws-state-button-code {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.nws-state-button-name {
    font-size: 12px;
    line-height: 1.3;
}
