:root {
    --gp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gp-primary: #2f5fdd;
    --gp-primary-dark: #1e3fa8;
    --gp-radius: 0.75rem;
    --gp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --gp-shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body {
    font-family: var(--gp-font);
    letter-spacing: -0.01em;
}

/* --- Navbar --- */
.gp-navbar {
    background: linear-gradient(135deg, #131c31 0%, #1c2a4a 100%);
}
.gp-brand {
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gp-brand .gp-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gp-primary), #6ea8fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* --- Cards --- */
.card {
    border-radius: var(--gp-radius) !important;
    box-shadow: var(--gp-shadow);
    transition: box-shadow 0.15s ease;
}
.card.gp-hover:hover {
    box-shadow: var(--gp-shadow-hover);
}

/* --- Boutons --- */
.btn {
    border-radius: 0.55rem;
    font-weight: 600;
}
.btn-primary {
    background-color: var(--gp-primary);
    border-color: var(--gp-primary);
}
.btn-primary:hover {
    background-color: var(--gp-primary-dark);
    border-color: var(--gp-primary-dark);
}

/* --- KPI cards --- */
.gp-kpi {
    border-radius: var(--gp-radius);
    border: 0;
    box-shadow: var(--gp-shadow);
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gp-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.gp-kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}
.gp-kpi-label {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Alertes / cloche --- */
.gp-bell-btn {
    position: relative;
}
.gp-bell-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}
.gp-alert-dropdown {
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
}
.gp-alert-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    text-decoration: none;
    color: inherit;
}
.gp-alert-item:hover {
    background: var(--bs-tertiary-bg);
}
.gp-alert-item:last-child {
    border-bottom: 0;
}

/* --- Login --- */
.gp-login-wrap {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(47, 95, 221, 0.10), transparent 60%),
                radial-gradient(circle at bottom right, rgba(47, 95, 221, 0.08), transparent 55%);
}

/* --- Dark mode adjustments --- */
[data-bs-theme="dark"] .gp-navbar {
    background: linear-gradient(135deg, #05070d 0%, #0d1526 100%);
}
[data-bs-theme="dark"] body {
    background-color: #0f1420;
}
