.btn-send {
    transition: background-color 0.2s, transform 0.1s;
}
.btn-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}
.file-list {
    max-height: 150px;
    overflow-y: auto;
}
#map, #home-map {
    height: 57vh;       /* Ocupa el 70% de la altura de la pantalla */
    min-height: 500px;  /* Como mínimo 500px (para que no se achique demasiado) */
    width: 100%;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #ddd;
}
#home-map {
    height: 100%;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    border: none;
}
/* Estilos para las pestañas */
.tab-button {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom-width: 3px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.tab-button.active {
    border-color: #f97316; /* secondary color */
    color: #f97316;
}
.tab-button:not(.active) {
    border-color: transparent;
    color: #6b7280; /* gray-500 */
}
.tab-button:not(.active):hover {
    border-color: #d1d5db; /* gray-300 */
}
.admin-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Estilo para la tabla de choferes */
.driver-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
}
.driver-table th, .driver-table td {
    padding: 0.75rem 1rem;
}
.driver-table th {
    background-color: #f3f4f6;
    color: #1f2937;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* Estilo para el contenedor de la respuesta cruda */
#response-detail {
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}
/* Estilos para la nueva consola */
#admin-console::-webkit-scrollbar { width: 4px; }
#admin-console::-webkit-scrollbar-track { background: #4a5568; }
#admin-console::-webkit-scrollbar-thumb { background: #a0aec0; }

/* Estilos para la guía visual ESPECÍFICA para tu boleta - VERSIÓN GRANDE */
    .scanner-overlay-guide {
        position: absolute;
        /* Mantenemos el centrado */
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);

        /* --- CAMBIOS CLAVE AQUÍ --- */
        width: 96%;  /* Ocupa prácticamente todo el ancho de la pantalla */
        height: 90%; /* Ocupa el 90% de la altura, reduciendo drásticamente el espacio superior vacío */
        
        border: 2px solid rgba(255, 255, 255, 0.5); /* Borde un poco más claro */
        border-radius: 12px;
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7); /* Oscurece el resto */
        z-index: 20;
    }

    /* ZONA DEL QR (A LA IZQUIERDA) - REAJUSTADA */
    .qr-target-zone {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        
        /* --- CAMBIOS DE POSICIÓN Y TAMAÑO --- */
        left: 15%;    /* Más pegado al borde izquierdo del marco grande */
        width: 38%;  /* Un poco más ancho para que sea fácil meter el QR */
        height: 28%; /* Altura proporcional dentro del nuevo marco gigante */

        border: 3px solid #4ade80; /* Borde verde más notorio */
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.4) inset; /* Brillo interno más fuerte */
        background-color: rgba(74, 222, 128, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Texto de ayuda flotante (Lo subimos un poco más para que no estorbe) */
    .guide-text {
        position: absolute;
        top: -50px; /* Un poco más arriba */
        left: 0;
        width: 100%;
        text-align: center;
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
        text-shadow: 1px 1px 3px black;
    }

    /* Animación del láser (sin cambios) */
    .scanner-laser {
        position: absolute; width: 100%; height: 2px; background: #ef4444;
        box-shadow: 0 0 10px #ef4444; animation: scan 2s infinite linear;
    }
    @keyframes scan { 0% {top: 0;} 50% {top: 100%;} 100% {top: 0;} }