* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: white;
    padding: 20px 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.controls {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.last-updated {
    margin-left: auto;
    color: #6c757d;
    font-size: 14px;
}

.warning-box {
    margin: 20px 30px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

.warning-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
}

.warning-box.success {
    background: #d4edda;
    border-color: #28a745;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.warning-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

.warning-text h3 {
    margin-bottom: 5px;
    color: #333;
}

.location-info {
    margin: 20px 30px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
}

.location-info h3 {
    margin-bottom: 10px;
    color: #0066cc;
}

.countdown-container {
    margin: 15px 30px;
}

.countdown-box {
    padding: 12px 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 8px;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    animation: pulse-countdown 2s infinite;
}

@keyframes pulse-countdown {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(255, 0, 0, 0.5); }
}

.countdown-box h3 {
    margin-bottom: 8px;
    font-size: 1em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    backdrop-filter: blur(10px);
}

.countdown-item:last-child {
    margin-bottom: 0;
}

.countdown-location {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.countdown-time {
    font-size: 1.1em;
    font-weight: bold;
    margin: 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.countdown-details {
    font-size: 0.75em;
    opacity: 0.9;
}

.map-container {
    position: relative;
    margin: 30px;
}

#map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.map-legend h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #333;
}

.legend-line {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    display: block;
}

.location-btn-container {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.location-btn-container .btn {
    min-width: 250px;
}

.alerts-section {
    padding: 30px;
}

.alerts-section h2 {
    margin-bottom: 20px;
    color: #333;
}

#alertsList {
    display: grid;
    gap: 15px;
}

.alert-card {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    background: #f8f9fa;
}

.alert-card.cancelled {
    border-left-color: #28a745;
    background: #d4edda;
}

.alert-card.scheduled {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.alert-card h4 {
    margin-bottom: 8px;
    color: #333;
}

.alert-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.info-section {
    padding: 30px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.info-section h3 {
    margin: 20px 0 15px 0;
    color: #333;
}

.info-section ol {
    margin-left: 20px;
    line-height: 1.8;
    color: #666;
}

.info-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info-section a:hover {
    text-decoration: underline;
}

.info-section code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .logo {
        max-width: 280px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .last-updated {
        margin-left: 0;
        text-align: center;
    }

    #map {
        height: 400px;
    }

    .map-legend {
        position: static;
        margin-top: 10px;
    }

    .location-btn-container {
        padding: 20px 30px;
    }

    .location-btn-container .btn {
        width: 100%;
    }
}
