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

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --bg-light: #f9f9f9;
    --status-operational: #10b981;
    --status-degraded: #f59e0b;
    --status-down: #ef4444;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    margin-bottom: 50px;
    animation: slideInDown 0.6s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.last-updated {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

main {
    flex: 1;
}

section {
    margin-bottom: 40px;
}

section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.status-overview {
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
}

.status-indicator h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.status-indicator p {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.status-indicator.operational .status-dot {
    background-color: var(--status-operational);
}

.status-indicator.degraded .status-dot {
    background-color: var(--status-degraded);
}

.status-indicator.down .status-dot {
    background-color: var(--status-down);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 200% center;
    }
    50% {
        background-position: -200% center;
    }
}

.status-indicator.operational {
    animation: glow 2.5s infinite;
}

.components {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.component-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out backwards;
}

.component-item:nth-child(1) { animation-delay: 0.25s; }
.component-item:nth-child(2) { animation-delay: 0.3s; }
.component-item:nth-child(3) { animation-delay: 0.35s; }
.component-item:nth-child(4) { animation-delay: 0.4s; }
.component-item:nth-child(5) { animation-delay: 0.45s; }
.component-item:nth-child(6) { animation-delay: 0.5s; }

.component-item:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.component-info h4 {
    font-size: 14px;
    font-weight: 500;
}

.component-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.component-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.operational {
    background-color: var(--status-operational);
}

.status-badge.degraded {
    background-color: var(--status-degraded);
}

.status-badge.down {
    background-color: var(--status-down);
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.incidents {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.incident-item {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #ffffff;
    animation: slideInUp 0.5s ease-out backwards;
    transition: all 0.3s ease;
}

.incident-item:nth-child(1) { animation-delay: 0.35s; }
.incident-item:nth-child(2) { animation-delay: 0.4s; }
.incident-item:nth-child(3) { animation-delay: 0.45s; }

.incident-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.incident-item h4 {
    font-size: 14px;
    font-weight: 500;
}

.incident-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.incident-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.incident-status {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.uptime {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.uptime-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    gap: 3px;
    margin-bottom: 12px;
}

.uptime-day {
    aspect-ratio: 1;
    border-radius: 2px;
    background-color: var(--status-operational);
    cursor: pointer;
    transition: all 0.2s ease;
}

.uptime-day:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.uptime-day.partial {
    background-color: var(--status-degraded);
}

.uptime-day.down {
    background-color: var(--status-down);
}

.uptime-percentage {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--status-operational);
}

footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo h1 {
        font-size: 24px;
    }

    .last-updated {
        text-align: left;
    }

    section h3 {
        font-size: 14px;
    }

    .status-indicator h2 {
        font-size: 18px;
    }

    .uptime-chart {
        grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
    }
}