.status-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 1.5rem 3rem;
    min-height: 100vh;
}
.overall-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}
.overall-banner.loading {
    background: rgba(255,255,255,0.07);
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.1);
}
.overall-banner.operational {
    background: linear-gradient(135deg, rgba(46,204,113,0.2), rgba(39,174,96,0.1));
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.3);
}
.overall-banner.issues {
    background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(192,57,43,0.1));
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}
.overall-banner.degraded {
    background: linear-gradient(135deg, rgba(243,156,18,0.2), rgba(211,84,0,0.1));
    color: #f39c12;
    border: 1px solid rgba(243,156,18,0.3);
}
.banner-icon { font-size: 1.5rem; }
.last-updated {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
    margin-bottom: 2rem;
    text-align: right;
}
.category-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.category-header:hover { background: rgba(255,255,255,0.04); }
.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.category-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.category-status-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}
.category-status-badge.operational {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.25);
}
.category-status-badge.issues {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.25);
}
.category-chevron {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    transition: transform 0.25s;
}
.category-chevron.rotated { transform: rotate(180deg); }
.category-items { padding: 0.5rem 0; }
.category-items.collapsed { display: none; }

.service-row {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.service-row:last-child { border-bottom: none; }
.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}
.service-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-icon { font-size: 1rem; }
.status-icon.operational { color: #2ecc71; }
.status-icon.down { color: #e74c3c; }
.ping-badge {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 400;
}
.service-uptime {
    font-size: 0.85rem;
    font-weight: 600;
}
.service-uptime.uptime-good { color: #2ecc71; }
.service-uptime.uptime-bad { color: #e74c3c; }
.uptime-bar-wrap { width: 100%; }
.uptime-bar {
    display: flex;
    gap: 2px;
    height: 32px;
    align-items: stretch;
    width: 100%;
}
.uptime-bar-cell {
    flex: 1;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    min-width: 2px;
}
.uptime-bar-cell:hover {
    opacity: 0.8;
    transform: scaleY(1.1);
}
.uptime-bar-cell.operational { background: #2ecc71; }
.uptime-bar-cell.degraded { background: #f39c12; }
.uptime-bar-cell.down { background: #e74c3c; }
.uptime-bar-cell.nodata { background: rgba(255,255,255,0.12); }

.bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* 툴팁 */
.bar-tooltip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    white-space: nowrap;
}

/* 범례 */
.uptime-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.legend-dot.operational { background: #2ecc71; }
.legend-dot.degraded { background: #f39c12; }
.legend-dot.down { background: #e74c3c; }
.legend-dot.nodata { background: rgba(255,255,255,0.15); }

@media (max-width: 768px) {
    .status-page {
        padding: 80px 1rem 2rem;
    }
    .overall-banner {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .banner-icon {
        font-size: 1.25rem;
    }
    .category-header {
        padding: 0.85rem 1rem;
    }
    .category-name {
        font-size: 0.95rem;
    }
    .category-status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    .service-row {
        padding: 0.85rem 1rem;
    }
    .service-name {
        font-size: 0.9rem;
    }
    .service-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .uptime-bar {
        height: 28px;
    }
    .uptime-bar-cell {
        border-radius: 2px;
        gap: 1px;
    }
    .ping-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
    .service-uptime {
        font-size: 0.8rem;
    }
    .bar-labels {
        font-size: 0.7rem;
    }
    .uptime-legend {
        gap: 1rem;
    }
    .legend-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .status-page {
        padding: 70px 0.75rem 1.5rem;
    }
    .overall-banner {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .banner-icon {
        font-size: 1.1rem;
    }
    .last-updated {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .category-block {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    .category-header {
        padding: 0.75rem 0.9rem;
    }
    .category-name {
        font-size: 0.9rem;
    }
    .category-right {
        gap: 0.5rem;
    }
    .category-status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    .category-chevron {
        font-size: 0.75rem;
    }
    .service-row {
        padding: 0.75rem 0.9rem;
    }
    .service-name {
        font-size: 0.85rem;
    }
    .status-icon {
        font-size: 0.9rem;
    }
    .ping-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
    }
    .service-uptime {
        font-size: 0.75rem;
    }
    .uptime-bar {
        height: 24px;
        gap: 1px;
    }
    .uptime-bar-cell {
        min-width: 1.5px;
        border-radius: 1px;
    }
    .bar-labels {
        font-size: 0.65rem;
        margin-top: 0.3rem;
    }
    .uptime-legend {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    .legend-item {
        font-size: 0.7rem;
    }
    .legend-dot {
        width: 10px;
        height: 10px;
    }
    .bar-tooltip {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}
