/* assets/css/style.css (Versión 2.0 - Adaptado para Tailwind) */

/* --- 1. Variables de Color (para consistencia con Tailwind) --- */
:root {
    --primary-color: hsl(359 85% 51%); /* #ee1617 */
    --primary-hover: hsl(359, 85%, 45%);
    --danger-color: #dc3545;
    --success-color: #28a745;
    --border-color: hsl(0 0% 89.8%);
    --light-bg: hsl(0 0% 96.1%);
}

/* --- 2. Adaptación de clases PHP a Tailwind --- */

/* La clase .container ahora la maneja Tailwind en el HTML, pero la dejamos por si acaso */
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Adaptación de la clase .card para que se parezca al estilo de la app */
.card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius, 0.5rem);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Adaptación de la clase .btn */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius, 0.5rem);
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.2s;
}
.btn:hover { background-color: var(--primary-hover); }
.btn-large { padding: 0.75rem 1.5rem; font-size: 1.125rem; }
.btn-danger { background-color: var(--danger-color); }
.btn-danger:hover { background-color: #c82333; }
.btn.secondary { background-color: #334155; }
.btn.secondary:hover { background-color: #1e293b; }

/* Formularios */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius, 0.5rem);
    box-sizing: border-box;
}

/* Alertas */
.alert { padding: 1rem; margin-bottom: 1rem; border-left-width: 4px; border-radius: 0.25rem; }
.alert-danger { border-color: #f56565; background-color: #fff5f5; color: #c53030; }
.alert-success { border-color: #48bb78; background-color: #f0fff4; color: #2f855a; }

/* Tablas (para el panel de admin) */
table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background-color: var(--light-bg); font-weight: 600; }

/* Clases específicas de la app que no están en Tailwind */
.details-list { list-style: none; padding: 0; }
.details-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.details-list li strong { display: inline-block; width: 150px; }


/* Clases específicas de drive reporte de pasajeros */
.pax-entry.confirmed .blur-content {
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.3s ease;
}
.pax-entry.confirmed input[type="checkbox"] {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.pax-entry.confirmed .save-status-icon {
    filter: none !important;
    opacity: 1 !important;
}
.pax-entry.confirmed {
    background-color: #f0fdf4;
}