/* Страница статуса Collaba (референс: публичные status-страницы в духе Better Stack) */

.status-body {
    margin: 0;
    min-height: 100vh;
    background: #0b0b0f;
    color: #f4f4f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: text;
}

.status-body a {
    color: #a78bfa;
    text-decoration: none;
}

.status-body a:hover {
    text-decoration: underline;
}

.status-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.status-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.status-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fafafa;
    font-weight: 600;
    font-size: 15px;
}

.status-brand img {
    display: block;
    border-radius: 6px;
}

.status-top-links {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.status-top-links a {
    color: rgba(255, 255, 255, 0.55);
}

.status-top-links a:hover {
    color: #fff;
}

.status-hero {
    text-align: center;
    margin-bottom: 28px;
}

.status-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}

.status-hero-icon--ok {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-hero-icon--warn {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.status-hero-icon--bad {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.status-hero-meta {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.status-card {
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.status-service {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.status-service-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.status-service-head:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-service-name {
    font-size: 15px;
    font-weight: 500;
    color: #fafafa;
}

.status-service-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.status-chevron {
    width: 18px;
    height: 18px;
    opacity: 0.45;
    transition: transform 0.2s;
}

.status-service.is-open .status-chevron {
    transform: rotate(90deg);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge--ok {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.status-badge--warn {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.status-badge--bad {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.status-badge-icon {
    font-size: 11px;
    line-height: 1;
}

.status-panel {
    display: none;
    padding: 0 18px 18px;
}

.status-service.is-open .status-panel {
    display: block;
}

.status-panel-inner {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
}

.status-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.status-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e4e4e7;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.status-uptime-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.status-uptime-pct {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
}

.status-bar-wrap {
    margin-top: 4px;
}

.status-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
}

.status-bar {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 36px;
}

.status-bar-seg {
    flex: 1;
    min-width: 2px;
    border-radius: 1px;
    background: #22c55e;
    opacity: 0.85;
    align-self: stretch;
}

.status-bar-seg--down {
    background: #ef4444;
    opacity: 1;
}

.status-detail {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.45;
}

.status-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.status-loading {
    text-align: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.status-error {
    text-align: center;
    padding: 24px;
    color: #f87171;
    font-size: 14px;
}

@media (max-width: 520px) {
    .status-hero h1 {
        font-size: 22px;
    }

    .status-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
