/* Zenith Status Page Styles */

.status-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
    max-width: 800px;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

/* Overall Status Banner */
.overall-status {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overall-status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overall-status-icon {
    width: 32px;
    height: 32px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.overall-status-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Service Groups */
.service-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.service-group-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

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

.service-item:hover {
    background: var(--bg-card-hover);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-uptime {
    display: flex;
    gap: 2px;
    margin-top: 0.5rem;
}

.uptime-bar {
    width: 4px;
    height: 24px;
    background: #4ade80;
    opacity: 0.3;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.uptime-bar:hover {
    opacity: 1;
}

.uptime-bar.outage {
    background: #f87171;
}

.uptime-bar.partial {
    background: #fbbf24;
}

.uptime-bar.maintenance {
    background: #60a5fa;
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-operational {
    color: #4ade80;
}

.status-degraded {
    color: #fbbf24;
}

.status-outage {
    color: #f87171;
}

.status-loading {
    color: var(--text-muted);
}

/* Legend & Past Incidents */
.page-footer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.incident-history h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.incident-item {
    margin-bottom: 1.5rem;
}

.incident-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.incident-title {
    font-weight: 500;
    color: #fbbf24;
    /* Amber for partial outage example */
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}