/* teefeed Status Page — Kamels B.V. */
:root {
    --petrol: #002A3A;
    --turquoise: #3EB1C8;
    --orange: #DF5C16;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--petrol);
    letter-spacing: -0.5px;
}

.logo .subtitle {
    display: block;
    font-size: 13px;
    color: var(--turquoise);
    font-weight: 400;
    margin-top: -2px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.status-operational {
    background-color: #dcfce7;
    color: #166534;
}

.status-degraded {
    background-color: #fef9c3;
    color: #854d0e;
}

.status-major_outage {
    background-color: #fef2f2;
    color: #991b1b;
}

.status-loading {
    background-color: var(--gray-100);
    color: var(--gray-500);
}

.last-updated {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

/* Services */
.services {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

.service-card.loading {
    justify-content: center;
    color: var(--gray-400);
    padding: 24px;
}

.service-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-900);
}

.service-meta {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background-color: var(--green); }
.dot-yellow { background-color: var(--yellow); }
.dot-red { background-color: var(--red); }
.dot-gray { background-color: var(--gray-400); }

/* Uptime bars */
.uptime-section {
    margin-bottom: 40px;
}

.uptime-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--petrol);
    margin-bottom: 16px;
}

.uptime-row {
    margin-bottom: 20px;
}

.uptime-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.uptime-label-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.uptime-label-pct {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

.uptime-label-pct.degraded { color: var(--yellow); }
.uptime-label-pct.outage { color: var(--red); }

.uptime-bars {
    display: flex;
    gap: 2px;
    height: 32px;
    align-items: stretch;
}

.uptime-bar {
    flex: 1;
    border-radius: 2px;
    min-width: 0;
    position: relative;
    cursor: default;
    transition: opacity 0.15s;
}

.uptime-bar:hover {
    opacity: 0.8;
}

.uptime-bar.green { background-color: var(--green); }
.uptime-bar.yellow { background-color: var(--yellow); }
.uptime-bar.red { background-color: var(--red); }
.uptime-bar.gray { background-color: var(--gray-200); }

.uptime-bar-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.uptime-bar:hover .uptime-bar-tooltip {
    display: block;
}

.uptime-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.uptime-dates span {
    font-size: 11px;
    color: var(--gray-400);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* History */
.history-section {
    margin-bottom: 40px;
}

.history-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--petrol);
    margin-bottom: 12px;
}

.no-incidents {
    font-size: 14px;
    color: var(--gray-400);
    padding: 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
}

.incident {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 8px;
}

.incident-date {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.incident-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.incident-desc {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.footer p {
    font-size: 13px;
    color: var(--gray-400);
}

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

.footer a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 4px;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 480px) {
    .container { padding: 24px 16px; }
    .header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stats { flex-direction: column; }
}
