/* HealthApp - Styles */

:root {
    --ha-primary: #198754;
    --ha-secondary: #6c757d;
    --ha-accent: #0d6efd;
    --ha-danger: #dc3545;
    --ha-warning: #ffc107;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* --- Cartes score --- */
.score-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .2s;
}
.score-card:hover { transform: translateY(-2px); }

.score-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700;
    margin: 0 auto 8px;
}
.score-great  { background: #d1fae5; color: #065f46; }
.score-good   { background: #fef9c3; color: #854d0e; }
.score-medium { background: #fee2e2; color: #991b1b; }

/* --- Dashboard widgets --- */
.metric-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
}
.metric-value { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.metric-label { font-size: 0.78rem; color: #6c757d; text-transform: uppercase; letter-spacing: .05em; }
.metric-sub   { font-size: 0.85rem; color: #6c757d; }

/* --- Progress bars --- */
.progress { height: 8px; border-radius: 4px; }

/* --- Charts --- */
.chart-container { position: relative; height: 260px; }

/* --- Tables --- */
.table-hover tbody tr:hover { background-color: #f0fdf4; }

/* --- Séances musculation --- */
.serie-row { background: #f8f9fa; border-radius: 6px; padding: 8px; margin-bottom: 4px; }
.serie-row.completed { background: #d1fae5; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .metric-value { font-size: 1.4rem; }
    .chart-container { height: 200px; }
    .navbar-brand { font-size: 1rem; }
}

/* --- Scanner --- */
#scanner-container { border: 2px dashed #198754; border-radius: 8px; overflow: hidden; }
#scanner-container video { width: 100%; max-height: 250px; object-fit: cover; }

/* --- Badges Bristol --- */
.bristol-1, .bristol-2 { background: #fee2e2; color: #991b1b; }
.bristol-3, .bristol-4 { background: #d1fae5; color: #065f46; }
.bristol-5, .bristol-6 { background: #fef9c3; color: #854d0e; }
.bristol-7 { background: #fee2e2; color: #991b1b; }

/* --- Star score --- */
.score-stars { color: #fbbf24; font-size: 1.2rem; }

/* --- Alerts compactes --- */
.alert { border-radius: 8px; }

/* --- Formulaires --- */
.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
