/* Base Variables (Dark Mode Default) */
:root {
    --bg: #0f172a; --panel: #1e293b; --text: #f8fafc; --muted: #94a3b8;
    --online: #10b981; --offline: #ef4444; --border: #334155; --accent: #3b82f6;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg: #f8fafc; --panel: #ffffff; --text: #0f172a; --muted: #64748b;
    --border: #e2e8f0; --accent: #2563eb;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: var(--bg); color: var(--text);
    margin: 0; padding: 2rem; max-width: 1400px; margin: 0 auto;
    transition: background-color 0.3s, color 0.3s;
}

/* Header & Logo */
header { 
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; 
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.logo { width: 32px; height: 32px; color: var(--accent); }
h1 { margin: 0; font-size: 2rem; display: flex; align-items: center; gap: 0.5rem; }
h1 span { color: var(--accent); }
.subtitle { color: var(--muted); margin-top: 0.2rem; font-size: 0.9rem;}

/* Theme Button */
.theme-btn {
    background: var(--panel); border: 1px solid var(--border); color: var(--text);
    padding: 0.5rem 0.8rem; border-radius: 0.5rem; cursor: pointer;
    font-size: 1.2rem; transition: background 0.2s;
}
.theme-btn:hover { background: var(--border); }

/* Layout & Cards */
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem;
    margin-bottom: 3rem;
}
.section-title { font-size: 1.25rem; margin-bottom: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;}

.mfg-title {
    font-size: 1.1rem; color: var(--text); 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 0.5rem; margin-top: 2rem; margin-bottom: 1rem;
}

.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 0.5rem;
    padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem;
    transition: background-color 0.3s, border-color 0.3s;
}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.qpu-name { font-weight: 600; font-size: 1.1rem; margin: 0; }
.qpu-provider { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Badges */
.status-badge {
    font-size: 0.75rem; font-weight: bold; padding: 0.25rem 0.5rem; border-radius: 999px;
    text-transform: uppercase; display: flex; align-items: center; gap: 0.3rem;
}
.status-online { background: rgba(16, 185, 129, 0.1); color: var(--online); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-offline { background: rgba(239, 68, 68, 0.1); color: var(--offline); border: 1px solid rgba(239, 68, 68, 0.2); }
.dot { height: 6px; width: 6px; border-radius: 50%; }
.dot-online { background-color: var(--online); box-shadow: 0 0 5px var(--online); }
.dot-offline { background-color: var(--offline); }

.metrics { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border); }
.metric-label { font-size: 0.75rem; color: var(--muted); }
.metric-value { font-size: 1.25rem; font-weight: 700; font-family: monospace; }
.time-ago { font-size: 0.7rem; color: var(--muted); text-align: right; }

/* Footer */
.site-footer {
    margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border);
    text-align: center; color: var(--muted); font-size: 0.85rem;
}
.disclaimer { font-size: 0.75rem; max-width: 600px; margin: 0.5rem auto 0; opacity: 0.8; }
