:root {
    --purple: #2E005D;
    --gold: #FFC107;
    --dark: #0B0125;
    --dark-soft: #140437;
}

* {
    font-family: 'Poppins', sans-serif;
}

body.bg-app {
    background: radial-gradient(circle at top left, #3e0a7a 0%, #0b0125 55%, #050011 100%);
    min-height: 100vh;
}

/* Navbar */

.bg-navbar {
    background: rgba(11, 1, 37, 0.98);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    backdrop-filter: blur(10px);
}

.text-gold {
    color: var(--gold) !important;
}

/* Boutons */

.btn-gold {
    background: var(--gold);
    color: #000;
    font-weight: 600;
    border-radius: 999px;
    border: none;
}

.btn-gold:hover {
    background: #e0a800;
    color: #000;
}

.btn-outline-gold {
    border-radius: 999px;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 500;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

/* Form controls (login) */

.form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.7);
    color: #fff;
    border-radius: 999px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 0.15rem rgba(255, 193, 7, 0.3);
}

.input-group-text {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 999px 0 0 999px;
}

/* Login box */

.login-box {
    background: rgba(20, 4, 55, 0.96);
    border: 1px solid rgba(255, 193, 7, 0.45);
    border-radius: 1.8rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.25), transparent);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
}

/* Particles background (login) */

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: rise 12s linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Page titles */

.page-header {
    color: #fff;
}

.page-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

/* Dashboard cards */

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 193, 7, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: #fff; /* <-- TOUT le texte de la carte en blanc par défaut */
}

.dashboard-card h3 {
    color: #fff;          /* <-- les nombres (statistiques) en blanc bien visible */
    font-weight: 700;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* Tables */

.table-wrapper {
    background: rgba(11, 1, 37, 0.95);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 193, 7, 0.35);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.table thead th {
    border-bottom: 2px solid var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}

.table tbody tr:hover {
    background: rgba(255, 193, 7, 0.08);
    transition: background 0.2s ease;
}

/* Badges statuses */

.badge-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
}

.badge-status.active {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.7);
}

.badge-status.suspended,
.badge-status.blocked {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.7);
}

/* Flash container */

.flash-container .alert {
    border-radius: 0.75rem;
}

/* Small devices tweaks */

@media (max-width: 576px) {
    .login-box {
        border-radius: 1.2rem;
        padding: 2rem 1.4rem !important;
    }

    .table-wrapper {
        padding: 1rem;
    }

    .page-title {
        font-size: 1rem;
    }
}

/* Cartes d'indicateurs (transactions, dashboard, etc.) */
.summary-card {
    background: rgba(11, 1, 37, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(255, 193, 7, 0.6);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Rendre les textes bien visibles dans les cartes sombres */
.summary-card .text-muted {
    color: rgba(255, 255, 255, 0.80) !important;
}

.summary-card .h4,
.summary-card h4 {
    color: #fff;
    font-weight: 700;
}



