@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f1419;
    color: #e6edf3;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
}

.dashboard {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 24px 32px;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

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

.dashboard-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #e6edf3;
    font-family: 'IBM Plex Mono', monospace;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
}

.timestamp {
    color: #8b949e;
}

.uptime {
    color: #10b981;
    font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 32px;
    border-bottom: 1px solid #30363d;
}

.metric-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: #8b949e;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'IBM Plex Mono', monospace;
}

.metric-value {
    font-size: 32px;
    font-weight: 600;
    color: #e6edf3;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 8px;
}

.status-operational {
    color: #10b981;
}

.status-good {
    color: #10b981;
}

.metric-subtext {
    font-size: 12px;
    color: #6e7681;
    font-family: 'IBM Plex Mono', monospace;
}

/* Sparkline */
.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    margin-top: 12px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, #58a6ff 0%, #1f6feb 100%);
    border-radius: 2px;
    min-width: 4px;
    transition: all 0.3s ease;
}

.metric-card:hover .bar {
    background: linear-gradient(180deg, #79c0ff 0%, #58a6ff 100%);
}

/* Services Section */
.services-section {
    padding: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 20px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    color: #58a6ff;
}

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

.service-item {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #58a6ff;
    background: #161b22;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.15);
    transform: translateX(4px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-status {
    font-size: 20px;
    line-height: 1;
}

.status-ok {
    color: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    color: #e6edf3;
    font-family: 'IBM Plex Mono', monospace;
    flex: 1;
}

.service-tag {
    font-size: 10px;
    font-weight: 600;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: 'IBM Plex Mono', monospace;
}

.service-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.metric-badge {
    font-size: 11px;
    color: #8b949e;
    background: #161b22;
    border: 1px solid #30363d;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s ease;
}

.service-item:hover .metric-badge {
    border-color: #58a6ff;
    color: #58a6ff;
}

/* Footer */
.footer {
    padding: 20px 32px;
    border-top: 1px solid #30363d;
    background: #0d1117;
}

.footer-text {
    font-size: 12px;
    color: #6e7681;
    font-family: 'IBM Plex Mono', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 11px;
    }
    
    .metrics-grid {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .metric-value {
        font-size: 24px;
    }
    
    .services-section {
        padding: 20px;
    }
    
    .footer {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .service-header {
        flex-wrap: wrap;
    }
    
    .service-name {
        font-size: 16px;
    }
    
    .metric-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}
