:root {
    --primary: #3b82f6;
    --dark-panel: #1e293b;
    --dark-deep: #0f172a;
    --accent: #22c55e;
    --sidebar-width: 320px;
}

body, html {
    margin: 0; padding: 0; height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background: #e2e8f0;
}

/* Botón Hamburguesa Flotante */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 15px;
    z-index: 99999;
    background: var(--dark-panel);
    color: white;
    border: none;
    width: 45px; height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:hover { background: var(--primary); transform: scale(1.05); }

/* Sidebar con Efecto 3D */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark-panel);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0;
    z-index: 99998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 25px rgba(0,0,0,0.3);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 25px 20px;
    background: var(--dark-deep);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Menú */
.menu-options { padding: 15px 0; }
.menu-item {
    padding: 12px 25px;
    display: flex; align-items: center; gap: 15px;
    color: #94a3b8; cursor: pointer;
    border-left: 4px solid transparent;
    transition: 0.2s;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: var(--primary);
}

/* Lista de Camiones (Tarjetas 3D) */
.unit-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0,0,0,0.15);
}

.unit-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 6px 6px 12px rgba(0,0,0,0.2), -2px -2px 8px rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.unit-card:hover {
    transform: translateY(-3px) scale(1.02);
    background: #334155;
    border-color: var(--primary);
}

.unit-card h3 { margin: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.unit-card h3 span { color: var(--accent); font-size: 0.7rem; }
.unit-card p { margin: 5px 0 0 0; font-size: 0.8rem; color: #94a3b8; }

#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* Ocupa todo el espacio de fondo */
    height: 100vh !important;
    width: 100% !important;
    background-color: #e5e7eb; /* Color de carga */
    z-index: 1; /* El nivel más bajo */
}

.dashboard {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}