/* ==========================================================================
   MOUAHHMANE ADMIN — CALQUE PREMIUM (finitions Noir & Or)
   ========================================================================== */

/* Titre de page signature : dégradé crème -> or */
.page-title {
    font-family: 'Cinzel', 'Cairo', serif;
    background: linear-gradient(100deg, #f5efe0 20%, #e2c044 55%, #c9a227 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Liseré doré qui s'allume au survol des cartes */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.stat-card:hover::before { opacity: 1; }

/* Logo premium (sidebar) */
.logo-text span {
    font-family: 'Cinzel', 'Cairo', serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: linear-gradient(100deg, #212121, #1c1c1c 60%, #2b2b2b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ligne d'accent or à gauche de chaque ligne de tableau survolée */
.table-row { position: relative; }
.table-row td:first-child { position: relative; }
.table-row td:first-child::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 20%; bottom: 20%;
    width: 2px;
    background: var(--gold, #c9a227);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.table-row:hover td:first-child::before { opacity: 1; }

/* Scrollbars fines dans les zones internes */
#notificationList, #sidebar nav, .modal-content {
    scrollbar-width: thin;
    scrollbar-color: #4a463a transparent;
}

/* Modal : entrée élégante */
.modal-overlay { animation: modalFade 0.25s ease; }
.modal-content { animation: modalRise 0.3s cubic-bezier(0.34, 1.3, 0.64, 1); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Chiffres de stats : tabular, alignés */
.stat-card .text-2xl, .stat-card .text-3xl {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Lien de pagination actif */
.pagination-active {
    background: linear-gradient(135deg, #e2c044, #a3821b);
    color: #141414 !important;
    border-color: transparent;
}

/* ==========================================================================
   AM MOTO RIDE — ULTRA PREMIUM VIP LAYER (v2.4)
   Noir profond · Or 24k · Glass · Micro-interactions
   ========================================================================== */

:root {
    --gold: #c9a227;
    --gold-light: #e2c044;
    --gold-dark: #a3821b;
    --noir: #0d0d0d;
    --noir-soft: #141414;
    --cream: #f5efe0;
    --cream-dim: #b0a78e;
}

/* Fond global subtil */
body {
    background-color: #f8f7f4;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 39, 0.03), transparent);
}

/* Cartes stats ultra premium */
.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf9f6 100%);
    border: 1px solid rgba(201, 162, 39, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(201, 162, 39, 0.28);
}

/* Sidebar premium refinements */
#sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
    border-right: 1px solid rgba(201, 162, 39, 0.1);
}
#sidebar .sidenav-item.active {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
    color: #a3821b;
    border-right: 3px solid var(--gold);
    font-weight: 600;
}
#sidebar .sidenav-item:hover:not(.active) {
    background: rgba(201, 162, 39, 0.06);
}

/* Header glass effect */
header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12) !important;
}

/* Boutons premium */
.btn-gold, .login-btn, button[type="submit"].bg-gold {
    background: linear-gradient(135deg, #e2c044 0%, #c9a227 45%, #a3821b 100%) !important;
    color: #141414 !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25), inset 0 1px 0 rgba(255, 250, 230, 0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.btn-gold:hover, .login-btn:hover {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(1.05);
    box-shadow: 0 14px 36px rgba(201, 162, 39, 0.35);
}

/* Tables premium */
table thead {
    background: linear-gradient(180deg, #faf9f6, #f5f3ee);
}
table thead th {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #857d68;
    font-weight: 600;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.table-row:hover {
    background: rgba(201, 162, 39, 0.04) !important;
}

/* Badges statut premium */
.badge-en_cours, .status-en_cours {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}
.badge-termine, .status-termine {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.badge-annule, .status-annule {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Inputs focus gold */
input:focus, select:focus, textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15) !important;
    outline: none;
}

/* Cards & modals glass */
.card-premium, .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 162, 39, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 40px rgba(201, 162, 39, 0.04);
}

/* Logo image polish */
.logo-img, img[alt="AM MOTO RIDE"] {
    filter: drop-shadow(0 2px 6px rgba(201, 162, 39, 0.2));
    transition: filter 0.3s ease;
}
.logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(201, 162, 39, 0.35));
}

/* Micro animation for numbers */
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.stat-card .text-2xl, .stat-card .text-3xl {
    animation: countUp 0.5s ease-out;
}

/* Scrollbar premium */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9a227, #a3821b);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #e2c044; }

/* Mobile header polish */
.fixed.top-0.lg\:hidden {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

/* VIP badge (si besoin) */
.vip-badge {
    background: linear-gradient(135deg, #e2c044, #a3821b);
    color: #141414;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
