/* Health Dashboard — Custom styles on top of Pico CSS */

/* ── Navigation ────────────────────────────────────────────────────────────── */
nav ul li a.active-tab {
    font-weight: bold;
    border-bottom: 2px solid var(--pico-primary);
}

/* ── Status indicators ─────────────────────────────────────────────────────── */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.status-dot.connected    { background: #3cb44b; }
.status-dot.disconnected { background: #e6194b; }

/* ── Date controls ─────────────────────────────────────────────────────────── */
.date-controls {
    margin-bottom: 1.5rem;
    align-items: flex-end;
    gap: 0.75rem;
}
.date-controls label {
    margin-bottom: 0;
}

/* ── Overview grid ─────────────────────────────────────────────────────────── */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.overview-grid article {
    padding: 1rem;
}
.overview-grid article p {
    margin-bottom: 0.25rem;
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
}

/* ── Charts ────────────────────────────────────────────────────────────────── */
canvas {
    margin-bottom: 2rem;
}
.mt-1 { margin-top: 1rem; }

/* ── Loading / error ───────────────────────────────────────────────────────── */
.loading-bar {
    text-align: center;
    padding: 1rem;
    color: var(--pico-muted-color);
}
.error-msg {
    color: var(--pico-del-color);
    padding: 0.5rem 0;
}

/* ── Auth connect page ─────────────────────────────────────────────────────── */
.connect-card {
    max-width: 600px;
    margin: 2rem auto;
}
.connect-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
