* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
}

.affected-areas-page {
    padding: 40px 20px;
    min-height: 600px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    color: #377586;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #6b7280;
    font-size: 16px;
}

/* ===== ALERT STATUS SECTION ===== */
.alert-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.alert-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid;
}

.alert-green {
    border-top-color: #22c55e;
}

.alert-orange {
    border-top-color: #f97316;
}

.alert-red {
    border-top-color: #dc2626;
}

.alert-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
    flex-shrink: 0;
}

.alert-green .alert-icon {
    background-color: #dcfce7;
    color: #16a34a;
}

.alert-orange .alert-icon {
    background-color: #ffedd5;
    color: #ea580c;
}

.alert-red .alert-icon {
    background-color: #fee2e2;
    color: #dc2626;
}

.alert-content {
    flex: 1;
}

.alert-level {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.alert-green .alert-level {
    color: #16a34a;
}

.alert-orange .alert-level {
    color: #ea580c;
}

.alert-red .alert-level {
    color: #dc2626;
}

.alert-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* ===== BRIDGE CARDS GRID ===== */
.bridge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.bridge-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bridge-name {
    font-size: 22px;
    font-weight: 600;
    color: #377586;
    margin-bottom: 6px;
}

.bridge-location {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.level-label {
    font-size: 14px;
    color: #6b7280;
}

.level-value {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.speed-info {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.button-group {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    background: white;
    color: #377586;
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    border-color: #377586;
}

.btn-primary {
    background: #377586;
    color: white;
    border: 2px solid #377586;
}

.btn-primary:hover {
    background: #2c5f6d;
    border-color: #2c5f6d;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.page-btn:hover {
    background: #f9fafb;
    border-color: #377586;
}

.page-btn.active {
    background: #377586;
    color: white;
    border-color: #377586;
}

.page-dots {
    color: #9ca3af;
    padding: 0 5px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .affected-areas-page {
        padding: 30px 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .alert-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bridge-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }
}