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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.timestamp {
    color: #64748b;
    font-size: 0.875rem;
}

/* Overall Status */
.overall {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.overall.healthy { background: #065f46; color: #6ee7b7; }
.overall.degraded { background: #92400e; color: #fcd34d; }
.overall.unhealthy { background: #991b1b; color: #fca5a5; }
.overall.checking { background: #1e40af; color: #93c5fd; }

/* Services List */
.services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #1e293b;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-name {
    font-weight: 500;
}

.service-url {
    color: #64748b;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    text-decoration: none;
}

.service-url:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.service-details {
    color: #64748b;
    font-size: 0.875rem;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Status Dots */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.healthy {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-dot.unhealthy {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.status-dot.checking {
    background: #3b82f6;
    animation: pulse 1s infinite;
}

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

.latency {
    color: #64748b;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: right;
}

/* Config Section */
.config-section {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #334155;
}

.config-section summary {
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.875rem;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.config-grid label {
    color: #94a3b8;
    font-size: 0.875rem;
}

.config-grid input {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Buttons */
.refresh-btn {
    background: #334155;
    color: #e2e8f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.refresh-btn:hover { background: #475569; }
.refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.save-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.save-btn:hover { background: #2563eb; }

/* Footer */
.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.75rem;
    text-align: center;
}
