/* Dashboard Styles - Modern Design with Animations */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #6366f1;
    --secondary-color: #6b7280;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    color: var(--gray-900);
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.brand-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    min-width: 1.25rem;
    text-align: center;
    animation: bounce 2s infinite;
}

.nav-badge.warning {
    background: var(--warning-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success-color);
}

.status-dot.offline {
    background: var(--danger-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--danger-color);
    transform: scale(1.05);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card.primary {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left: 4px solid var(--success-color);
}

.stat-card.warning {
    border-left: 4px solid var(--warning-color);
}

.stat-card.danger {
    border-left: 4px solid var(--danger-color);
}

.stat-card.info {
    border-left: 4px solid var(--info-color);
}

.stat-card.secondary {
    border-left: 4px solid var(--secondary-color);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 0.75rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    animation: countUp 1s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* Vehicle Controls */
.vehicle-controls {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.vehicle-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.vehicle-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.view-btn.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Vehicles Container */
.vehicles-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

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

.vehicles-header h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.vehicle-count {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Grid View */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.vehicle-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.5s ease;
}

.vehicle-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.vehicle-card.online {
    border-left: 3px solid var(--success-color);
}

.vehicle-card.offline {
    border-left: 3px solid var(--danger-color);
    opacity: 0.7;
}

.vehicle-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--success-color);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vehicle-status.offline {
    background: var(--danger-color);
}

.vehicle-status.traveling {
    background: var(--warning-color);
}

.vehicle-info {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.vehicle-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

/* List View */
.vehicles-list {
    max-height: 600px;
    overflow-y: auto;
}

.vehicle-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vehicle-list-item:hover {
    background: var(--gray-50);
}

/* Activity Section */
.activity-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

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

.activity-timeline {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.activity-message {
    color: var(--gray-700);
    margin-top: 0.25rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--gray-600);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
}

.detail-section h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child {
    border-bottom: none;
}

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

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-clear {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Mobile FAB and Sidebar - Hidden on desktop */
.mobile-fab-container,
.mobile-fab,
.mobile-nav-overlay,
.mobile-vehicle-overlay,
.mobile-nav-sidebar,
.mobile-vehicle-sidebar {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ==========================================
   MOBILE-FIRST DASHBOARD EXPERIENCE
   ========================================== */
@media (max-width: 768px) {
    /* Hide desktop nav */
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none !important; /* Hide old mobile button */
    }
    
    /* Show mobile FAB container */
    .mobile-fab-container {
        display: block;
    }
    
    /* Hide activity section on mobile */
    .activity-section {
        display: none;
    }
    
    /* Hide vehicle controls and vehicles container (moved to sidebar) */
    .vehicle-controls,
    .vehicles-container {
        display: none;
    }
    
    /* Adjust dashboard container */
    .dashboard-container {
        padding: 1rem;
        padding-bottom: 100px; /* Space for FABs */
    }
    
    /* Stats grid - 2 columns on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Mobile FABs */
    .mobile-fab {
        display: flex;
        position: fixed;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .mobile-fab:active {
        transform: scale(0.95);
    }
    
    /* Menu FAB - bottom left */
    .mobile-fab-menu {
        bottom: 24px;
        left: 16px;
        width: 52px;
        height: 52px;
        background: white;
        color: var(--gray-700);
        font-size: 1.4rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Vehicles FAB - above menu FAB */
    .mobile-fab-vehicles {
        bottom: 90px;
        left: 16px;
        width: 56px;
        height: 56px;
        background: var(--primary-color);
        color: white;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    
    .mobile-fab-vehicles .fab-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--success-color);
        color: white;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 20px;
        text-align: center;
    }
    
    /* Mobile Overlays */
    .mobile-nav-overlay,
    .mobile-vehicle-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-nav-overlay.show,
    .mobile-vehicle-overlay.show {
        display: block;
        opacity: 1;
    }
    
    /* Mobile Navigation Sidebar */
    .mobile-nav-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
    }
    
    .mobile-nav-sidebar.open {
        right: 0;
    }
    
    .mobile-nav-header {
        padding: 20px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: white;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-nav-header .brand-icon {
        font-size: 1.8rem;
    }
    
    .mobile-nav-header .brand-text {
        font-size: 1.2rem;
        font-weight: 600;
        flex: 1;
    }
    
    .mobile-nav-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-menu {
        flex: 1;
        padding: 16px 0;
        overflow-y: auto;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 24px;
        color: var(--gray-700);
        text-decoration: none;
        font-size: 1rem;
        transition: all 0.2s ease;
        border-left: 4px solid transparent;
    }
    
    .mobile-nav-link:hover {
        background: var(--gray-50);
        color: var(--primary-color);
    }
    
    .mobile-nav-link.active {
        background: #eff6ff;
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600;
    }
    
    .mobile-nav-link .nav-icon {
        font-size: 1.3rem;
        width: 28px;
        text-align: center;
    }
    
    .mobile-nav-badge {
        margin-left: auto;
        background: var(--danger-color);
        color: white;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .mobile-nav-badge.warning {
        background: var(--warning-color);
    }
    
    .mobile-nav-footer {
        padding: 20px;
        border-top: 1px solid var(--gray-200);
    }
    
    .mobile-user-info {
        text-align: center;
        margin-bottom: 12px;
        color: var(--gray-600);
        font-size: 0.9rem;
    }
    
    .btn-logout-mobile {
        width: 100%;
        padding: 14px 20px;
        background: var(--danger-color);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    /* Mobile Vehicle Sidebar */
    .mobile-vehicle-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 2000;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
    }
    
    .mobile-vehicle-sidebar.open {
        left: 0;
    }
    
    .mobile-vehicle-header {
        padding: 20px;
        background: var(--gray-50);
        border-bottom: 1px solid var(--gray-200);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-vehicle-header h3 {
        font-size: 1.1rem;
        color: var(--gray-800);
        margin: 0;
    }
    
    .mobile-vehicle-close {
        background: var(--gray-200);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-vehicle-stats {
        padding: 12px 16px;
        display: flex;
        gap: 12px;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .mobile-vehicle-stats .stat {
        font-size: 0.8rem;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 20px;
    }
    
    .mobile-vehicle-stats .stat.online {
        background: #dcfce7;
        color: #166534;
    }
    
    .mobile-vehicle-stats .stat.offline {
        background: #fee2e2;
        color: #991b1b;
    }
    
    .mobile-vehicle-search {
        padding: 12px 16px;
        position: relative;
    }
    
    .mobile-vehicle-search input {
        width: 100%;
        padding: 10px 12px 10px 40px;
        border: 1px solid var(--gray-300);
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    .mobile-vehicle-search input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .mobile-vehicle-search .search-icon {
        position: absolute;
        left: 28px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-vehicle-filters {
        padding: 0 16px 12px;
        display: flex;
        gap: 8px;
    }
    
    .mobile-vehicle-filters .filter-btn {
        padding: 6px 12px;
        border: 1px solid var(--gray-300);
        background: white;
        border-radius: 20px;
        font-size: 0.8rem;
        cursor: pointer;
    }
    
    .mobile-vehicle-filters .filter-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .mobile-vehicle-list {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
    }
    
    .mobile-vehicle-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 10px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-vehicle-item:hover,
    .mobile-vehicle-item:active {
        border-color: var(--primary-color);
        background: #f8faff;
    }
    
    .mobile-vehicle-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .mobile-vehicle-icon.online {
        background: #dcfce7;
    }
    
    .mobile-vehicle-icon.offline {
        background: #fee2e2;
    }
    
    .mobile-vehicle-icon.traveling {
        background: #fef3c7;
    }
    
    .mobile-vehicle-info {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-vehicle-name {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--gray-800);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-vehicle-details {
        font-size: 0.75rem;
        color: var(--gray-500);
        display: flex;
        gap: 8px;
        margin-top: 2px;
    }
    
    .mobile-vehicle-status {
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
    }
    
    .mobile-vehicle-status.online {
        background: #dcfce7;
        color: #166534;
    }
    
    .mobile-vehicle-status.offline {
        background: #fee2e2;
        color: #991b1b;
    }
    
    .mobile-vehicle-status.traveling {
        background: #fef3c7;
        color: #92400e;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        padding: 16px;
    }
    
    .stat-content {
        text-align: left;
    }
    
    .mobile-fab-vehicles {
        bottom: 85px;
        left: 12px;
        width: 50px;
        height: 50px;
    }
    
    .mobile-fab-menu {
        bottom: 20px;
        left: 12px;
        width: 48px;
        height: 48px;
    }
    
    .mobile-vehicle-sidebar {
        width: 100%;
        max-width: none;
    }
}