:root {
    --bg-color: #0b0e14;
    --card-bg: #161b22;
    --border-color: #30363d;
    --primary: #58a6ff;
    --success: #3fb950;
    --success-bg: rgba(63, 185, 80, 0.15);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --text-dim: #484f58;
    --nav-bg: #161b22;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    padding-bottom: 50px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo img {
    height: 32px;
}

.nav-center {
    display: flex;
    background: #1c2128;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.nav-link {
    padding: 6px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link.active {
    background: #2d333b;
    color: var(--text-main);
}

.nav-right a {
    background: #2d333b;
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.status-icon-large {
    width: 48px;
    height: 48px;
    background: var(--success);
    color: #0b0e14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.last-update {
    color: var(--text-muted);
    font-size: 14px;
}

/* Alert Box */
.info-alert {
    background: #1c2128;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.info-alert i {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 3px;
}

.info-alert p {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.6;
}

/* Status Cards */
.status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.card-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--success-bg);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.inactive {
    background: rgba(139, 148, 158, 0.1);
    color: var(--text-muted);
}

.status-badge .fa-chevron-right {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.5;
    transition: transform 0.3s;
}

.status-card.expanded .fa-chevron-right {
    transform: rotate(90deg);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.status-card.expanded .card-content {
    max-height: 1000px; /* Large enough to fit content */
    padding: 0 20px 20px;
}

.sub-item {
    margin-top: 15px;
}

.sub-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sub-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.sub-item-name i {
    font-size: 12px;
    color: var(--text-muted);
}

.availability-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Uptime History Bars */
.uptime-history {
    display: flex;
    gap: 2px;
    height: 32px;
    margin-bottom: 8px;
}

.bar {
    flex: 1;
    background: var(--success);
    border-radius: 1px;
    opacity: 0.9;
}

.bar.down {
    background: #f85149;
}

.bar.no-data {
    background: var(--text-dim);
}

.history-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}
