/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.status-container {
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 25px;
    border: 1px solid #ddd;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.5em;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.status {
    font-size: 1.7em;
    font-weight: bold;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.status.operational {
    background-color: #e0f2f1;
    color: #00796b;
    border: 1px solid #00796b;
}

.status.down {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f5f5f5;
    transition: background-color 0.3s;
}

.service-name {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 10px;
}

.service-status {
    font-size: 1.1em;
    font-weight: bold;
    padding: 7px 12px;
    border-radius: 7px;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.service-status.operational {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.service-status.down {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.service-details {
    font-size: 1em;
    color: #777;
    margin-top: 15px;
}

.status-chart {
    margin-top: 15px;
    display: flex;
    height: 12px;
}

.status-bar {
    flex: 1;
    height: 100%;
    margin-right: 1px;
    border-radius: 3px;
    background-color: #ddd;
}

.status-bar.operational {
    background-color: #4caf50;
}

.status-bar.down {
    background-color: #f44336;
}

.status-bar.degraded_performance {
    background-color: #ff9800;
}

.status-bar.major_outage {
    background-color: #d32f2f;
}

.status-bar.partial_outage {
    background-color: #ffeb3b;
}

.status-bar.under_maintenance {
    background-color: #0288d1;
}

#details {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-size: 1em;
    color: #777;
}

#last-updated {
    font-size: 1em;
    color: #777;
    margin-bottom: 25px;
}

footer {
    margin-top: 25px;
    font-size: 1em;
    color: #777;
    animation: slideUp 1s ease-in-out;
}

/* Maintenance Section Styles */
.maintenance-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 10px;
    text-align: left;
}

.maintenance-section h2 {
    font-size: 1.5em;
    color: #f57c00;
    margin-bottom: 15px;
}

.maintenance {
    padding: 10px;
    border: 1px solid #ff9800;
    border-radius: 5px;
    background-color: #fffde7;
}

.maintenance-title {
    font-size: 1.2em;
    color: #e65100;
    margin-bottom: 10px;
}

.maintenance-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

.maintenance-status {
    font-size: 1em;
    color: #e65100;
}

.maintenance-status span {
    font-weight: bold;
}

/* Additional Styles */
@media (max-width: 768px) {
    .status-container {
        width: 90%;
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .status {
        font-size: 1.5em;
        padding: 12px;
    }

    .service-name {
        font-size: 1.1em;
    }

    .service-status {
        font-size: 1em;
        padding: 5px;
    }

    .service-details {
        font-size: 0.9em;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
