:root {
    --font: "Montserrat", sans-serif;
    --text-color: #222;
    --top-bar-height: 80px;

    --primary-color: #f2ae49; /* Vibrant */
    --secondary-color: #33CCFF; /* Bright Blue */
    --accent-color: #FFCC00; /* Yellow */
    --background-color: #f4f4f4;

    --nav-text-color: #222;
}

body {
    font-family: var(--font), 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-title {
    margin: 0px 0;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 0.9;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.status-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Status Overview (Combined) */
.status-overview {
    background-color: #e8f5e9;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.overview-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.status-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon-wrapper.operational {
    background-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.check-icon {
    width: 36px;
    height: 36px;
    color: white;
}

.overview-details {
    flex: 1;
}

.overview-details h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #2e7d32;
    font-weight: 800;
    text-transform: uppercase;
}

.health-metrics {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.health-label {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
}

.health-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2ecc71;
}

.health-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(46, 204, 113, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    background-color: #2ecc71;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Services Container */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.services-group {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.services-group h3 {
    font-size: 1.3rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    border-radius: 10px;
}

.service:hover {
    background-color: #f9f9f9;
}

.service:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #444;
}

.service-status {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.service-status.operational {
    color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.service-status.degraded {
    color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.1);
}

.service-status.outage {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

/* Timeline Section */
.timeline-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.timeline-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px; /* Adjust based on padding-left of .timeline */
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #eee;
}

.timeline-item:first-child::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(242, 174, 73, 0.3);
}

.timeline-date {
    font-weight: 700;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
}

.timeline-content p {
    margin: 0;
    color: #666;
}

.incident-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.incident-tag.resolved {
    background-color: #2ecc71;
    color: white;
}

footer {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #999;
    padding-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .overview-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .health-metrics {
        justify-content: center;
    }

    .services-container {
        grid-template-columns: 1fr;
    }
}