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

:root {
    --color-up: #10b981;
    --color-down: #ef4444;
    --color-unknown: #6b7280;
    --color-warning: #f59e0b;
    --color-bg: #f9fafb;
    --color-card: #ffffff;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

header a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

header a:hover {
    text-decoration: underline;
}

section {
    background-color: var(--color-card);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.status-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.status-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    font-size: 4rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
}

.status-badge.up .status-icon::before {
    content: '✓';
}

.status-badge.down .status-icon::before {
    content: '✗';
}

.status-badge.unknown .status-icon::before {
    content: '?';
}

.status-text {
    font-size: 2rem;
    font-weight: 600;
}

.status-details {
    text-align: center;
    opacity: 0.9;
}

.status-details p {
    margin: 0.25rem 0;
    font-size: 1rem;
}

.uptime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.uptime-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    border: 2px solid var(--color-border);
}

.uptime-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.uptime-card.excellent .uptime-value {
    color: var(--color-up);
}

.uptime-card.good .uptime-value {
    color: var(--color-warning);
}

.uptime-card.poor .uptime-value {
    color: var(--color-down);
}

.uptime-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 300px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--color-bg);
}

th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-border);
}

th.text-center {
    text-align: center;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.loading {
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
}

.status-up {
    color: var(--color-up);
    font-weight: 600;
}

.status-down {
    color: var(--color-down);
    font-weight: 600;
}

td.check-icon {
    text-align: center;
}

.check-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    text-align: center;
}

.check-icon.yes {
    color: var(--color-up);
}

.check-icon.no {
    color: var(--color-down);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

footer a {
    color: var(--color-text-light);
    text-decoration: underline;
}

footer .last-updated {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .status-icon {
        font-size: 3rem;
        width: 6rem;
        height: 6rem;
    }

    .status-text {
        font-size: 1.5rem;
    }

    .uptime-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 1.5rem;
    }

    .chart-container {
        height: 250px;
    }
}
