/* ================================================================
   RENTRA - CSS Design System
   Sistem Manajemen Sewa Kendaraan
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    /* Primary Colors - Premium Indigo/Violet Gradient */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;

    /* Accent - Vibrant Amber */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;

    /* Neutrals - Sophisticated Slate */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #0ea5e9;
    --info-light: #f0f9ff;

    /* Shadows - Soft & Layered */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-premium: 0 20px 40px rgba(79, 70, 229, 0.15);

    /* Radius - Extra Rounded for Premium Feel */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-full: 9999px;

    /* Transition */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ----------------------------------------------------------------
   Buttons - Modern & Tactile
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 0.625rem;
    aspect-ratio: 1/1;
}

/* ----------------------------------------------------------------
   Cards - Glassmorphism & Depth
   ---------------------------------------------------------------- */
.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.1);
}

.card-premium {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ----------------------------------------------------------------
   Badges
   ---------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-primary { background: var(--primary-100); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-info { background: var(--info-light); color: #1e40af; }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-accent { background: #fef3c7; color: #92400e; }

/* ----------------------------------------------------------------
   Forms
   ---------------------------------------------------------------- */
.form-group {
    margin-bottom: 1rem;
}

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

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

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

/* ----------------------------------------------------------------
   Tables
   ---------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ----------------------------------------------------------------
   Alerts
   ---------------------------------------------------------------- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------
   Modal
   ---------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

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

.modal-overlay .modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition-slow);
}

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

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.pagination li a:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ----------------------------------------------------------------
   Auth Layout
   ---------------------------------------------------------------- */
/* ----------------------------------------------------------------
   Auth Layout Premium
   ---------------------------------------------------------------- */
.auth-wrapper.premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.auth-visual-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: grayscale(100%) brightness(0.3);
}

.auth-wrapper.premium::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.auth-card.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.auth-logo .logo-img {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.auth-logo:hover .logo-img {
    transform: scale(1.05);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-card .form-label {
    font-weight: 700;
    color: var(--gray-700);
}

.auth-card .form-control {
    padding: 0.875rem 1.25rem;
    background: var(--gray-50);
    border-color: var(--gray-200);
    font-weight: 500;
}

.auth-card .form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.auth-footer {
    border-top: 1px solid var(--gray-100);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   Premium Navbar Universal
   ---------------------------------------------------------------- */
.premium-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links { display: flex; gap: 2rem; }

.nav-link {
    font-weight: 700;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* User Dropdown */
.user-dropdown { position: relative; }
.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.user-trigger:hover {
    background: white;
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-name { font-size: 0.875rem; font-weight: 800; color: var(--gray-900); }
.user-role { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; color: var(--gray-500); }

.user-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 260px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header { padding: 1rem; border-bottom: 1px solid var(--gray-50); margin-bottom: 0.5rem; }
.header-name { font-weight: 800; color: var(--gray-900); margin: 0; font-size: 1rem; }
.header-email { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.dropdown-link i { width: 18px; height: 18px; color: var(--gray-400); }
.dropdown-link:hover { background: var(--primary-50); color: var(--primary); }
.dropdown-link:hover i { color: var(--primary); }

.dropdown-divider { height: 1px; background: var(--gray-100); margin: 0.5rem 0; }

.logout-link:hover { background: var(--danger-light); color: var(--danger); }
.logout-link:hover i { color: var(--danger); }

@media (max-width: 992px) {
    .nav-links { display: none; }
    .nav-menu { gap: 1rem; }
}

/* ----------------------------------------------------------------
   Admin Layout System
   ---------------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--gray-50);
}

/* Sidebar Styling */
.admin-sidebar {
    width: 280px;
    background: #0f172a;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}

.brand-full { display: block; }
.brand-collapsed { display: none; }

/* Collapsed State */
.sidebar-collapsed .admin-sidebar {
    width: 80px;
}

.sidebar-collapsed .admin-main {
    margin-left: 80px;
}

.sidebar-collapsed .brand-full,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .sidebar-nav-label {
    display: none;
}

.sidebar-collapsed .brand-collapsed {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 72px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.sidebar-collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 0.75rem 0;
    gap: 0;
}

.sidebar-collapsed .sidebar-nav-item .nav-icon {
    margin: 0;
}

/* Sidebar Components */
.admin-sidebar .sidebar-brand {
    padding: 1rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.admin-logo-img:hover {
    transform: scale(1.05);
}

.admin-logo-img {
    max-height: 100px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-label {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.sidebar-nav-item.active {
    color: white;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 100%);
    border-left-color: var(--primary);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 280px; /* PENTING: Harus sama dengan lebar sidebar */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0; /* Mencegah overflow grid */
}

/* Topbar Styling */
.admin-topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-color: var(--primary-light);
}

.admin-content {
    padding: 1.5rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.topbar-user:hover {
    background: var(--gray-100);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    overflow: hidden;
}

.topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Mobile toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius);
}

.sidebar-toggle:hover {
    background: var(--gray-100);
}

/* ----------------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------------- */
.d-flex { display: flex; }
.d-none { display: none; }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-05 { gap: 0.5rem; }
.gap-1 { gap: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.p-0 { padding: 0; }
.p-1 { padding: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 600; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-responsive {
        margin: 0 -1rem;
    }

    .auth-card {
        padding: 1.75rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.25rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ----------------------------------------------------------------
   Premium Components System
   ---------------------------------------------------------------- */

/* Card Premium */
.card-premium {
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.card-premium-header {
    padding: 1.5rem 2.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

/* Status Pill Premium */
.status-pill-premium {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-pill-premium.pending { background: #fffbeb; color: #d97706; }
.status-pill-premium.active { background: #ecfdf5; color: #059669; }
.status-pill-premium.inactive { background: #fef2f2; color: #dc2626; }
.status-pill-premium.info { background: #f0f9ff; color: #0284c7; }
.status-pill-premium.primary { background: #eef2ff; color: #4f46e5; }
.status-pill-premium.warning { background: #fff7ed; color: #ea580c; }

/* Buttons Premium */
.btn-premium-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-900);
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.875rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.btn-premium-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
    color: #fff;
}

.btn-premium-light {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    color: var(--gray-900);
    padding: 0.875rem 1.75rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.btn-premium-light:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--primary);
}

/* Workflow Buttons */
.btn-workflow-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #0f172a;
    color: #fff;
    padding: 1.5rem;
    border-radius: 24px;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.btn-workflow-primary:hover {
    background: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.25);
    color: #fff;
}

.btn-workflow-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: none !important;
    border: 2px dashed var(--gray-200);
    transition: all 0.3s;
}

.btn-workflow-outline:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Avatar & Icons */
.vehicle-premium-avatar {
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid #f1f5f9;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

/* Shadows */
.shadow-premium { box-shadow: 0 25px 80px -15px rgba(0,0,0,0.08) !important; }
.shadow-premium-sm { box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important; }

/* Pulse Indicator */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 2px solid #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ----------------------------------------------------------------
   Dropdown & Avatar (Customer Navbar)
   ---------------------------------------------------------------- */
.nav-profile-dropdown {
    position: relative;
    display: inline-block;
}

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem;
    padding-right: 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.nav-avatar-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-light);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-info {
    text-align: left;
    line-height: 1.2;
}

.nav-user-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.nav-dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-profile-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

.dropdown-item.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ----------------------------------------------------------------
   Premium Auth Design
   ---------------------------------------------------------------- */
.auth-wrapper.premium {
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.auth-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.auth-card.glass {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------
   Logo Sharpening
   ---------------------------------------------------------------- */
.logo-img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}
