/* ========================
   Dashboard José PEREZ — Styles globaux
   ======================== */

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background-color: #f5f6fa;
}

/* Navbar */
.navbar-brand {
    letter-spacing: 0.5px;
}

/* Dropdown au survol */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar .nav-item.dropdown > .dropdown-menu {
        margin-top: 0;
    }
}

/* KPI icon */
.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Cards */
.card {
    border-radius: 12px;
}

.card-header {
    font-size: 0.875rem;
}

/* Tables */
.table > thead th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6c757d;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: .2px;
}

/* Truncate links */
a.text-truncate {
    max-width: 200px;
}

/* Auth pages */
body.bg-light .card {
    border-radius: 16px;
}

/* Pagination */
.pagination .page-link {
    font-size: 0.8rem;
}

/* Charts canvas */
canvas {
    max-width: 100%;
}

/* Status indicators */
.site-status-ok    { color: #198754; }
.site-status-down  { color: #dc3545; }
.site-status-warn  { color: #ffc107; }

/* Scrollable table on small screens */
.table-responsive {
    border-radius: 0 0 12px 12px;
}

/* Form labels */
.form-label.fw-semibold {
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .kpi-icon { width: 42px; height: 42px; }
    h4 { font-size: 1.1rem; }
}
