/* Estilos básicos para la app de chofer */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.screen {
    padding: 25px 30px;
    display: none; /* Ocultas por defecto */
}
.screen.active {
    display: block; /* Muestra la pantalla activa */
}

h2 {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Importante para el padding */
    font-size: 16px;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #007aff; /* Azul principal */
    color: white;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cdd3d8;
    cursor: not-allowed;
}

button.danger {
    background-color: #ff3b30; /* Rojo peligro */
}
button.danger:hover {
    background-color: #c30000;
}

/* (NUEVO) Estilo para botones secundarios */
button.secundario {
    background-color: #6c757d;
    margin-top: 20px;
}
button.secundario:hover {
    background-color: #5a6268;
}


.error-message {
    color: #ff3b30;
    text-align: center;
    font-size: 14px;
    display: none; /* Oculto por defecto */
}

#status-message {
    margin-top: 25px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
}
#status-message p {
    margin: 5px 0;
}
#status-text {
    font-weight: 700;
}

.password-warning {
    margin-top: 20px;
    padding: 10px;
    background-color: #fffbe6; /* Amarillo pálido */
    border: 1px solid #ffe58f;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    color: #5d5024;
}

.ruta-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #007aff; /* Azul */
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin: 0;
}

/* --- Estilos para Horario Dinámico (Chofer) --- */
.horario-panel {
    background-color: #f0f8ff;
    border: 1px solid #b0dfff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}
.horario-panel h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3;
}
.horario-panel p {
    margin: 5px 0;
    font-size: 1.1em;
}
.horario-panel p span {
    font-weight: bold;
    color: #333;
    float: right;
}

/* --- Estilos para Modal de Retraso (Chofer) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-contenido {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.modal-contenido h4 {
    margin-top: 0;
    text-align: center;
}
.btn-modal-opcion {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #ffc107; /* Amarillo */
    color: #333;
}
.btn-modal-opcion.secundario {
    background-color: #6c757d; /* Gris */
    color: white;
}

/* --- AÑADIR ESTO AL FINAL DE style.css --- */

/* Estilo para el nombre del checador */
.checador-display {
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    text-align: center;
    margin: 5px 0 0 0;
}