/* ============================================
   HUB.CSS — coquille commune du VTC DriversHUB
   Tokens de design, base, mise en page, sidebar, en-tête de
   page et notifications, extraits des règles présentes à
   l'identique dans au moins 80 % des pages du hub.
   Ce fichier est chargé AVANT le <style> de chaque page :
   les règles propres à une page conservent donc la priorité.
   ============================================ */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #1f2937;
    --bg-card-hover: #2d3748;
    --bg-sidebar: #0f172a;
    --bg-input: #2d3748;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: #374151;
    --accent-blue: #60a5fa;
    --accent-green: #34d399;
    --accent-yellow: #fbbf24;
    --accent-red: #f87171;
    --accent-orange: #fb923c;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;
    --accent-teal: #2dd4bf;
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(96, 165, 250, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 25px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 25px;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: rgba(248, 113, 113, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.logout-btn:hover {
    background: rgba(248, 113, 113, 0.15);
}

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.notification.error {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.2);
    color: var(--accent-red);
}

.notification.info {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.2);
    color: var(--accent-blue);
}

.notification.success {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.2);
    color: var(--accent-green);
}

.section-title {
    padding: 10px 20px 5px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 18px;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.sidebar-nav .icon {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-nav li {
    margin: 2px 0;
}

.sidebar-nav li.active a {
    background: rgba(96, 165, 250, 0.08);
    color: var(--accent-blue);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0f1a;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.user-rank {
    font-size: 11px;
    color: var(--accent-blue);
}

.vtc-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #0f0f1a;
}

.vtc-tagline {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   Coquille responsive (repliée sur mobile)
   Les pages peuvent surcharger ces règles dans leur propre <style>.
   ============================================ */
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-header h2,
    .vtc-tagline,
    .sidebar-nav a span:not(.icon),
    .user-details,
    .logout-btn span:not(.icon),
    .admin-badge { display: none; }
    .sidebar-nav a { justify-content: center; padding: 12px; border-radius: 0; }
    .sidebar-nav .icon { margin: 0; font-size: 20px; }
    .main-content { margin-left: 60px; padding: 15px; }
}