/* ==========================================
   GertheFlotte Design System - Pure CSS
   Compatible avec Tailwind CDN (pas de @apply)
   ========================================== */

:root {
    /* Core Palette */
    --primary: #FBBF24;
    --primary-hover: #F59E0B;
    --primary-glow: rgba(251, 191, 36, 0.4);
    
    --charcoal: #050505;
    --background-dark: #000000;
    --card-dark: #050505;
    
    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --accent-red: #DC2626;
    --accent-red-hover: #B91C1C;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Font Family */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Interactive Elements */
button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
.cursor-pointer {
    cursor: pointer;
}

/* Utility Classes for Variables */
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.border-primary { border-color: var(--primary); }

/* Material Icons */
.material-symbols-outlined { 
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* --- GERTHE CUSTOM ICONS SYSTEM --- */
.rf-icon-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rf-icon-custom img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
}

/* In-line / Table variants */
.rf-icon-custom-inline img {
    width: 14px;
    height: 14px;
}

/* Multi-App Icon Support */
.static-icon {
    filter: brightness(0); /* Force black by default */
}

/* Dark Mode Auto-Inversion */
.dark .static-icon {
    filter: brightness(0) invert(1);
}

/* Status Color Filters (for black SVGs) */
.icon-status-amber { filter: invert(66%) sepia(85%) saturate(1217%) hue-rotate(3deg) brightness(101%) contrast(97%); }
.icon-status-emerald { filter: invert(56%) sepia(61%) saturate(2335%) hue-rotate(125deg) brightness(98%) contrast(91%); }
.icon-status-blue { filter: invert(51%) sepia(87%) saturate(2132%) hue-rotate(195deg) brightness(101%) contrast(103%); }
.icon-status-red { filter: invert(34%) sepia(91%) saturate(3015%) hue-rotate(341deg) brightness(101%) contrast(101%); }
.icon-status-slate { filter: invert(47%) sepia(16%) saturate(601%) hue-rotate(181deg) brightness(94%) contrast(90%); }
/* ---------------------------------- */

/* Theme Transition Lock */
html.theme-transition * {
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease !important;
}

/* Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Glow Border */
.glow-border {
    box-shadow: 0 0 0 1px var(--primary-glow);
}

/* Gradients System */
.primary-gradient-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 8px 30px -10px var(--primary-glow);
    transition: var(--transition-base);
}

.primary-gradient-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #D97706 100%);
    box-shadow: 0 10px 40px -10px rgba(251, 191, 36, 0.6);
}

.cinematic-gradient {
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
}

/* Auth Pages Adjustments */
.form-shadow {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

.dark .form-shadow {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
}
/* --- PREMIUM GLASSMORPHISM & LEGAL UI --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-panel {
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section-title {
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

.dark .legal-section-title { color: #f8fafc; }

/* Transitions & Animations */
.modal-fade-enter { transition: opacity 0.3s ease-out; }
.modal-fade-leave { transition: opacity 0.2s ease-in; }

.modal-scale-enter { transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-scale-leave { transition: all 0.2s ease-in; }

/* Scrollbar refinement */
.legal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.legal-scroll::-webkit-scrollbar { width: 4px; }
.legal-scroll::-webkit-scrollbar-thumb { background-color: var(--primary); border-radius: 20px; }

/* -------------------------------------- */
/* --- PREMIUM BACKGROUND SYSTEM --- */
@keyframes abstractBreathe {
    0% { transform: scale(1.0) translateZ(0); }
    50% { transform: scale(1.05) translateZ(0); }
    100% { transform: scale(1.0) translateZ(0); }
}

.dashboard-premium-bg, .dashboard-driver-bg {
    position: relative;
    z-index: 0;
    /* On ne met pas overflow: hidden ici car cela peut bloquer le scroll de la page entière */
}

.dashboard-premium-bg::before, .dashboard-driver-bg::before {
    content: "";
    position: fixed;
    top: -5%; left: -5%; right: -5%; bottom: -5%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: abstractBreathe 45s ease-in-out infinite;
    image-rendering: -webkit-optimize-contrast;
    pointer-events: none;
}

/* Demandeur Backgrounds (Default Whisk) */
.dashboard-premium-bg::before {
    background-image: url("../../img/account/Whisk_450689d26d6816a9e9d4921bcee4fbc6dr.93578b4980a5.jpeg");
}
.dark .dashboard-premium-bg::before {
    background-image: url("../../img/account/Whisk_ee8961f088b04bc96cc4c0ba4ae07b8edr.df3ae83bd014.jpeg");
}

/* Driver Backgrounds (New Premium Industrial) */
.dashboard-driver-bg::before {
    background-image: url("../../img/account/A_premium,_ultra-modern_abstract_background_202605061408(1).de33aa572910.jpeg");
}
.dark .dashboard-driver-bg::before {
    background-image: url("../../img/account/Professional_abstract_background_for_a_202605060916(1).936e19ce0fa8.jpeg");
}
