/* Reset and base styles */
.district-alert-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999999;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: none; /* Hidden by default */
}

.district-alert-popup.active {
    display: block; /* Show when active */
}

.district-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999998;
    display: none;
}

.district-alert-overlay.active {
    display: block;
}

.district-alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.district-alert-content {
    position: relative;
}

.district-alert-popup.emergency {
    background: #ffebee;
    border-left: 5px solid #f44336;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .district-alert-popup {
        width: 95%;
        padding: 20px;
    }
}