/* Vehicle Service Tracker - Apple-Inspired Black & White Theme */

:root {
    /* Apple-Inspired Monochrome Palette */
    --black: #000000;
    --gray-950: #0a0a0a;
    --gray-900: #1d1d1f;
    --gray-850: #252528;
    --gray-800: #333336;
    --gray-700: #48484a;
    --gray-600: #636366;
    --gray-500: #86868b;
    --gray-400: #aeaeb2;
    --gray-300: #c7c7cc;
    --gray-200: #d1d1d6;
    --gray-100: #e5e5ea;
    --gray-50: #f2f2f7;
    --white: #ffffff;
    
    /* Accent Colors */
    --accent-blue: #0071e3;
    --accent-green: #34c759;
    --accent-red: #ff3b30;
    --accent-orange: #ff9500;
    
    /* Gradients - BLACK & WHITE */
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1d1d1f 50%, #0a0a0a 100%);
    --gradient-card: linear-gradient(145deg, rgba(45, 45, 48, 0.9) 0%, rgba(28, 28, 30, 0.95) 100%);
    --gradient-sidebar: linear-gradient(180deg, #000000 0%, #1d1d1f 100%);
    
    /* Status Colors */
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --info: #0071e3;
    
    /* Typography - Apple System Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.1);
    --shadow-glow-strong: 0 0 40px rgba(255, 255, 255, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Sidebar */
    --sidebar-width: 260px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background: #000000;
    background: var(--gradient-dark);
    color: var(--gray-100);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Subtle Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==================== */
/* MOBILE MENU TOGGLE   */
/* ==================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.mobile-menu-toggle:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

/* ==================== */
/* SIDEBAR              */
/* ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: #0d0d0d;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 999;
}

.sidebar-header {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sidebar-logo i {
    font-size: 1.75rem;
    color: #ffffff;
}

.sidebar-logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
    overflow-y: auto;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.nav-section {
    margin-bottom: var(--spacing-md);
}

.nav-section-title {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888888;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px var(--spacing-lg);
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-left-color: #ffffff;
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #aaaaaa;
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ==================== */
/* MAIN CONTENT         */
/* ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--spacing-xl) var(--spacing-2xl);
    min-height: 100vh;
    transition: var(--transition-normal);
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-top: var(--spacing-xs);
}

/* ==================== */
/* CARDS                */
/* ==================== */
.card {
    background: #1c1c1e;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-lg);
    position: relative;
    transition: var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.stat-icon i {
    font-size: 1.25rem;
    color: var(--white);
    opacity: 0.9;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

.stat-change.positive {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.stat-change.negative {
    background: rgba(255, 59, 48, 0.15);
    color: var(--danger);
}

/* ==================== */
/* FORMS                */
/* ==================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-200);
    font-size: 0.875rem;
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: var(--gray-600);
}

.form-control:disabled {
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    opacity: 0.5;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: var(--spacing-md);
}

.option-card {
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.option-card label:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.option-card input:checked + label {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

.option-card .option-value {
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--white);
}

.option-card .option-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

/* ==================== */
/* BUTTONS              */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-100);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #ff5147;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #40d466;
}

.btn-warning {
    background: var(--warning);
    color: var(--black);
}

.btn-warning:hover {
    background: #ffaa1a;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-300);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-group {
    display: flex;
    gap: var(--spacing-sm);
}

/* ==================== */
/* TABLES               */
/* ==================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table td {
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.file-upload.dragover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.file-upload input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-md);
}

.file-upload-text {
    color: var(--gray-300);
    margin-bottom: var(--spacing-sm);
}

.file-upload-hint {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.file-preview {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.file-preview img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    color: var(--white);
}

.file-preview-size {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ==================== */
/* ALERTS               */
/* ==================== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.25);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.25);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 149, 0, 0.12);
    border: 1px solid rgba(255, 149, 0, 0.25);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 113, 227, 0.12);
    border: 1px solid rgba(0, 113, 227, 0.25);
    color: var(--info);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ==================== */
/* BADGES               */
/* ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 59, 48, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(0, 113, 227, 0.15);
    color: var(--info);
}

.badge-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* ==================== */
/* MODAL                */
/* ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
}

/* ==================== */
/* VEHICLE CARDS        */
/* ==================== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.vehicle-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.15);
}

.vehicle-card.selected {
    border-color: var(--white);
    box-shadow: var(--shadow-glow-strong);
}

.vehicle-image {
    height: 140px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-image i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.15);
}

.vehicle-info {
    padding: var(--spacing-lg);
}

.vehicle-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.vehicle-details {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.vehicle-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-stat {
    text-align: center;
    flex: 1;
}

.vehicle-stat-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.vehicle-stat-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* Progress Bar */
.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-bar-success {
    background: var(--success);
}

.progress-bar-warning {
    background: var(--warning);
}

.progress-bar-danger {
    background: var(--danger);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--spacing-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--spacing-2xl) + 2px);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xs);
}

.timeline-title {
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.timeline-text {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-state-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: var(--spacing-lg);
}

.empty-state-title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

/* Loading Spinner */
.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--white);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--spacing-lg);
}

.tab {
    padding: var(--spacing-md) var(--spacing-xl);
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.tab:hover {
    color: var(--gray-300);
}

.tab.active {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Checkbox Custom */
.checkbox-custom {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.checkbox-custom input {
    display: none;
}

.checkbox-custom .checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-custom input:checked + .checkmark {
    background: var(--white);
    border-color: var(--white);
}

.checkbox-custom input:checked + .checkmark i {
    color: var(--black);
}

.checkbox-custom .checkmark i {
    color: transparent;
    font-size: 0.7rem;
}

/* Code */
code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--gray-200);
}

/* ============================================ */
/* RESPONSIVE - TABLET & MOBILE                 */
/* ============================================ */

@media screen and (max-width: 1024px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Hide sidebar by default */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Adjust main content */
    .main-content {
        margin-left: 0;
        padding: var(--spacing-lg);
        padding-top: 75px;
    }
    
    /* Show overlay when sidebar is open */
    body.sidebar-open .sidebar-overlay {
        display: block;
    }
    
    /* Prevent body scroll when sidebar open */
    body.sidebar-open {
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: var(--spacing-md);
        padding-top: 70px;
    }
    
    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        width: 42px;
        height: 42px;
    }
}

/* ==================== */
/* UTILITY CLASSES      */
/* ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.fw-bold { font-weight: 600; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing-md) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing-md) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.w-100 { width: 100%; }
