/* =====================================================
   HUB ACEF ACA — app.css
   Bootstrap 5 + personnalisations hub
   ===================================================== */

/* ── Variables ────────────────────────────────────── */
:root {
    --hub-primary:    #1a56db;
    --hub-success:    #057a55;
    --hub-warning:    #c27803;
    --hub-danger:     #c81e1e;
    --hub-bg:         #f3f4f6;
    --hub-sidebar-bg: #111827;
}

/* ── Base ─────────────────────────────────────────── */
body {
    padding-top: 56px;   /* Compenser navbar fixed-top */
    background-color: var(--hub-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Navbar ───────────────────────────────────────── */
#hubNavbar {
    background: linear-gradient(135deg, #111827 0%, #1e3a5f 100%) !important;
    border-bottom: 2px solid #1a56db;
}

.hub-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────── */
.card {
    border-radius: .75rem;
}

.card-header {
    border-radius: .75rem .75rem 0 0 !important;
    font-size: .875rem;
}

/* ── KPI Cards ────────────────────────────────────── */
.kpi-card {
    border-radius: .875rem !important;
    background: #fff;
    transition: transform .15s, box-shadow .15s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,.1) !important;
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.kpi-label {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .2rem;
}

/* ── Admin avatar (initiales) ─────────────────────── */
.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a56db, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.admin-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
}

/* ── Agenda date badge ────────────────────────────── */
.agenda-date-badge {
    width: 40px;
    flex-shrink: 0;
}

.agenda-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.agenda-month {
    font-size: .6rem;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: .05em;
}

/* ── Tables ───────────────────────────────────────── */
.table > :not(caption) > * > * {
    padding: .5rem .75rem;
}

.table a {
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

/* ── Formulaires ──────────────────────────────────── */
.form-label {
    font-size: .875rem;
    margin-bottom: .3rem;
}

.input-group-text {
    background-color: #f9fafb;
    color: #6b7280;
    font-size: .875rem;
}

/* ── Page login ───────────────────────────────────── */
.login-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
}

.login-page .card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ── Badges statut actions ────────────────────────── */
.badge {
    font-weight: 500;
    letter-spacing: .02em;
}

/* ── Progress bar reporting ───────────────────────── */
.progress {
    border-radius: 99px;
    overflow: hidden;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 576px) {
    main.container-fluid {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .kpi-value {
        font-size: 1.4rem;
    }
}

/* ── Footer ───────────────────────────────────────── */
footer {
    font-size: .75rem;
    opacity: .85;
    border-top: 1px solid #333;
}

/* ── Utilitaires ──────────────────────────────────── */
.min-w-0 { min-width: 0; }
