/* ============================================================
   ROMÂNIAELIT — EXECUTIVE CORPORATE LOGISTICS STYLESHEET
   Ultra-Clean Business Theme & High-Contrast Readability (WCAG AAA)
   Palette: Executive Slate (#0b0f19), Card Navy (#131c2e), Corporate Crimson (#dc2626)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131c2e;
    --bg-tertiary: #1a263d;
    --bg-card: #131c2e;
    --bg-card-hover: #172238;
    
    --border-color: #24324c;
    --border-subtle: #1e293b;
    --border-highlight: #3b82f6;
    
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-red-bg: rgba(220, 38, 38, 0.18);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-contrast: #f1f5f9;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.2s ease-in-out;
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

a {
    color: #38bdf8;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-top: 0;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.text-white {
    color: #ffffff !important;
}

.text-secondary {
    color: #cbd5e1 !important;
}

.text-muted {
    color: #94a3b8 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #24324c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

::selection {
    background-color: var(--accent-red);
    color: #ffffff;
}

/* -------------------------------------------------------------
   Navigation Bar (Executive Corporate Topbar)
   ------------------------------------------------------------- */
.navbar-custom {
    background: #0b0f19;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 13.5px;
    padding: 6px 8px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none !important;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff !important;
    background: #1a263d;
}

.nav-link.active {
    color: #ffffff !important;
    background: #1a263d;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* -------------------------------------------------------------
   Buttons (High-Contrast Corporate Buttons)
   ------------------------------------------------------------- */
.btn {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--accent-red);
    border: 1px solid #b91c1c;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-red-hover);
    border-color: #991b1b;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #1a263d;
    border: 1px solid #334766;
    color: #f1f5f9 !important;
}

.btn-secondary:hover {
    background-color: #223352;
    border-color: #47608a;
    color: #ffffff !important;
}

.btn-outline-primary {
    background-color: #131c2e;
    border: 1px solid var(--border-color);
    color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: #1a263d;
    border-color: #3b82f6;
    color: #ffffff !important;
}

.btn-cyber-cyan {
    background-color: #0c4a6e;
    border: 1px solid #0284c7;
    color: #ffffff !important;
}

.btn-cyber-cyan:hover {
    background-color: #0369a1;
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   Cards & Surfaces (High-Contrast Business Cards)
   ------------------------------------------------------------- */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    overflow: hidden;
}

.card-dark:hover {
    background: var(--bg-card-hover);
    border-color: #3b5078;
}

.card-corporate-accent {
    border-left: 4px solid var(--accent-red);
}

/* -------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------- */
.hero-section {
    position: relative;
    background-color: #0b0f19;
    border-bottom: 1px solid var(--border-color);
    padding: 70px 0 60px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--accent-red-bg);
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* -------------------------------------------------------------
   Pills & Badges (High-Contrast Business Tags)
   ------------------------------------------------------------- */
.badge-cyber {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}

.badge-cyber-red {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.badge-cyber-green {
    background: rgba(5, 150, 105, 0.25);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.badge-cyber-blue {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid #3b82f6;
    color: #93c5fd;
}

.badge-cyber-amber {
    background: rgba(217, 119, 6, 0.25);
    border: 1px solid #f59e0b;
    color: #fde68a;
}

.rank-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-somer { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.rank-rookie, .rank-sofer { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.rank-driver { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.rank-senior_driver, .rank-senior { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.rank-veteran { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.rank-elite { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); }
.rank-manager { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* -------------------------------------------------------------
   Driver User Sidebar
   ------------------------------------------------------------- */
.user-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.user-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none !important;
}

.user-nav-link:hover {
    color: #ffffff;
    background: #1a263d;
}

.user-nav-link.active {
    color: #ffffff;
    background: #1e2d47;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* -------------------------------------------------------------
   Form Inputs & Controls
   ------------------------------------------------------------- */
.form-control, .form-select {
    background-color: #0b0f19 !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.form-control::placeholder {
    color: #64748b !important;
}

/* -------------------------------------------------------------
   Tables & Data Views (Clean, High-Contrast Corporate Tables)
   ------------------------------------------------------------- */
.table-custom {
    color: #ffffff;
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    background: #1a263d;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #334766;
    padding: 12px 16px;
}

.table-custom td {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    color: #f8fafc;
}

.table-custom tbody tr:hover td {
    background: #172238;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.footer-custom {
    background: #080b12;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 25px;
    margin-top: auto;
    color: #cbd5e1;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

