/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid #e74c3c;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Main content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.status-card, .alert-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.status-card h2, .alert-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Zone display */
.time-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.time-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-display {
    display: grid;
    gap: 25px;
}

.current-zone, .next-zone {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e1e8ed;
}

.current-zone h3, .next-zone h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    background: white;
}

.highlight {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #d35400;
    animation: pulse 2s infinite;
}

.error {
    background: #ffeaea;
    color: #e74c3c;
}

/* Alert card */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.act-group {
    margin-bottom: 20px;
}

.act-group h4 {
    color: #3498db;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3498db;
}

.zone-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.zone-checkbox:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.zone-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Buttons */
.refresh-btn, .save-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.refresh-btn:hover, .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.refresh-btn:active, .save-btn:active {
    transform: translateY(0);
}

.save-btn {
    background: linear-gradient(to right, #27ae60, #219653);
    width: 100%;
}

.save-btn:hover {
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.refresh-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.refresh-info p {
    margin-bottom: 15px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Current alerts */
.current-alerts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.current-alerts h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#activeAlerts {
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

#activeAlerts li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

#activeAlerts li.no-alerts {
    color: #95a5a6;
    font-style: italic;
    border-left-color: #bdc3c7;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-top: 5px solid #e74c3c;
}

footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}