/* BalancedHeart custom styles (on top of Pico CSS) */

:root {
    --severity-low: #6c757d;
    --severity-medium: #ffc107;
    --severity-high: #fd7e14;
    --severity-critical: #dc3545;
    --bh-primary: #3b82f6;
    --bh-success: #22c55e;
}

nav { margin-bottom: 1rem; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}
.badge-low { background: var(--severity-low); }
.badge-medium { background: var(--severity-medium); color: #333; }
.badge-high { background: var(--severity-high); }
.badge-critical { background: var(--severity-critical); }

/* Stat cards */
.stat-card {
    text-align: center;
    padding: 1rem;
}
.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
}
.stat-card .label {
    font-size: 0.9rem;
    color: var(--pico-muted-color);
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Wizard steps indicator */
.wizard-steps {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0;
}
.wizard-steps .step {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 3px solid var(--pico-muted-color);
    color: var(--pico-muted-color);
    font-weight: 500;
    font-size: 0.9rem;
}
.wizard-steps .step.active {
    border-bottom-color: var(--bh-primary);
    color: var(--pico-color);
}

/* BLE status log */
.status-log {
    background: var(--pico-card-background-color, #f8f9fa);
    border: 1px solid var(--pico-muted-border-color, #dee2e6);
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.85rem;
}
.status-line {
    padding: 0.15rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color, #eee);
}
.status-line:last-child {
    border-bottom: none;
    font-weight: bold;
}

/* Primary large button (for measurement trigger etc.) */
.btn-primary-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* Small button variant */
.small {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* Confirmation details */
.confirmation-details {
    background: var(--pico-card-background-color, #f8f9fa);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* ---- Mobile / responsive ---- */

/* Horizontally scrollable tables on small screens */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Smaller stat cards */
    .stat-card .value { font-size: 1.4rem; }
    .stat-card .label { font-size: 0.8rem; }
    .stat-card { padding: 0.6rem; }

    /* Chart height */
    .chart-container { height: 200px; }

    /* Wizard steps: smaller text */
    .wizard-steps .step { font-size: 0.75rem; padding: 0.5rem 0.25rem; }

    /* Primary large button: full width */
    .btn-primary-large { width: 100%; font-size: 1rem; padding: 0.8rem; }
}
