:root {
    --bg: #0d1117;
    --bg2: #161b22;
    --text: #e6edf3;
    --accent: #5865f2;
    --green: rgb(136, 0, 20);
    --yellow: #d29922;
    --red: #da3633;
    --border: #30363d;
    --muted: #8b949e;

}
body.light {
    --bg: #ffffff;
    --bg2: #f5f5f5;
    --text: #111111;
    --border: #d0d7de;
    --muted: #57606a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
header {
    background: var(--bg2);
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.back-home {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s;
}
.back-home:hover { opacity: 0.8; }
header h1 {
    font-size: 28px;
    font-weight: 700;
}
.status-header {
    text-align: center;
    padding: 70px 20px 50px;
}
.status-badge {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    background: var(--green);
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}
.status-badge.offline { background: var(--red); box-shadow: 0 8px 20px rgba(218,54,51,0.3); }
.status-badge.degraded { background: var(--yellow); color: #111; box-shadow: 0 8px 20px rgba(210,153,34,0.3); }
.status-header p {
    font-size: 18px;
    opacity: 0.9;
}
.uptime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
}
.uptime-card {
    background: var(--bg2);
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.35s;
}
.uptime-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.uptime-card h3 {
    font-size: 19px;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 600;
}
.uptime-bar {
    height: 14px;
    background: #30363d;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}
.uptime-fill {
    height: 100%;
    background: var(--green);
    width: 99.98%;
    border-radius: 8px;
    transition: width 1.5s ease;
}
.uptime-fill.warn { background: var(--yellow); }
.uptime-fill.danger { background: var(--red); }
.uptime-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}
.response-time {
    text-align: center;
    margin: 70px 0;
    font-size: 20px;
    font-weight: 500;
}
.response-time span {
    font-size: 48px;
    font-weight: 800;
    color: var(--green);
    margin: 0 8px;
}
.incidents {
    max-width: 1000px;
    margin: 80px auto 60px;
    padding: 0 24px;
}
.incidents h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
    color: var(--accent);
}
.incident {
    background: var(--bg2);
    padding: 28px;
    border-radius: 16px;
    border-left: 6px solid var(--yellow);
    margin-bottom: 24px;
    transition: all 0.3s;
}
.incident:hover {
    transform: translateX(8px);
    border-left-width: 8px;
}
.incident.resolved { border-left-color: var(--green); }
.incident-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}
.incident p {
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.7;
}
.incident-date {
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
}
.no-incidents {
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    margin-top: 50px;
    opacity: 0.8;
}
footer {
    margin-top: auto;
    background: var(--bg2);
    padding: 50px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 15px;
    opacity: 0.9;
}


@media (max-width: 768px) {
    header { padding: 18px 20px; }
    header h1 { font-size: 26px; }
    .back-home { left: 20px; }
    .status-header { padding: 60px 20px; }
    .status-badge { font-size: 21px; padding: 12px 32px; }
    .uptime-grid { gap: 24px; padding: 0 20px; }
    .uptime-card { padding: 28px 24px; }
    .response-time { margin: 60px 0; }
    .response-time span { font-size: 42px; }
}

@media (max-width: 480px) {
    header { padding: 16px; text-align: center; }
    .back-home {
        position: static;
        transform: none;
        display: block;
        margin-bottom: 12px;
        font-size: 15.5px;
    }
    header h1 { font-size: 24px; }
    .status-header { padding: 50px 16px 40px; }
    .status-badge { font-size: 19px; padding: 11px 28px; }
    .uptime-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; }
    .uptime-card { padding: 26px 20px; }
    .uptime-card h3 { font-size: 18px; }
    .uptime-text { font-size: 28px; }
    .response-time { font-size: 18px; margin: 50px 0; }
    .response-time span { font-size: 38px; }
    .incidents { padding: 0 16px; margin: 60px auto 40px; }
    .incidents h2 { font-size: 27px; }
    .incident { padding: 24px; }
    .incident-title { font-size: 19px; }
}