/* EasyDriver Redesign Styles */
/* This file will contain all the new styles for the driver panel redesign. */

/* --- Fase 2: Rediseño de la Página de Inicio de Sesión (`/panel/`) --- */

/* Fondo y Tipografía General */
body.login {
    background-color: #f1f1f1; /* Un fondo gris claro y neutro */
    font-family: 'Montserrat', sans-serif;
}

/* Contenedor principal del formulario (La "Tarjeta") */
#login {
    width: 420px; /* Ancho incrementado para un look más moderno */
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -100px; /* Ajuste para centrar verticalmente */
}

/* Logo de EasyDriver */
.login h1 {
    margin-bottom: 30px;
}

.login h1 a {
    background-image: url('https://easydriver.com.pe/wp-content/uploads/2023/12/logo-easydriver-yango-partner.svg');
    width: 100%;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Estilo de los campos del formulario */
.login form {
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

.login label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.login input[type="text"],
.login input[type="password"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 12px 15px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    margin-bottom: 20px;
    box-shadow: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #FC0D1B;
    box-shadow: 0 0 0 2px rgba(252, 13, 27, 0.2);
    outline: none;
}

/* Estilo del botón de "Acceder" */
.login .submit .button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    background-color: #FC0D1B;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 0; /* Padding vertical para más altura */
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 15px rgba(252, 13, 27, 0.2);
}

.login .submit .button:hover,
.login .submit .button:focus {
    background-color: #d90b17; /* Un rojo un poco más oscuro al pasar el mouse */
    box-shadow: 0 6px 20px rgba(252, 13, 27, 0.3);
}

/* Ocultar enlaces de "Olvidaste tu contraseña" y "Volver a" */
.login #nav,
.login #backtoblog {
    display: none;
}

/* --- Fase 3: Rediseño de la Página del Portal del Conductor (`/panel/portal/`) --- */

/* Estilo general del cuerpo para el portal */
body:not(.login) {
    background-color: #f7f7f7;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Contenedor principal para centrar el contenido */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* Cabecera del Portal */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portal-header .logo img {
    height: 45px;
    width: auto;
}

.portal-header .logout-link a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
    background-color: #FC0D1B;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.portal-header .logout-link a:hover {
    background-color: #d90b17;
    box-shadow: 0 4px 15px rgba(252, 13, 27, 0.2);
}

/* Estilo base para las tarjetas */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

/* --- Estilos específicos para los componentes del Portal --- */

/* Saludo y descripción */
.portal-container h1 {
    font-size: 2rem; /* 32px */
    font-weight: 700;
    color: #1f2937;
}
.portal-container p {
    color: #6b7280;
}

/* Tarjeta de Saldo de Puntos */
.card .text-6xl {
    font-size: 4rem; /* 64px */
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #FC0D1B;
}

/* Listas de Actividad e Historial */
.card .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card .space-y-3 > * + * {
    margin-top: 0.75rem; /* 12px */
}
.card hr {
    margin: 1.5rem 0;
    border-color: #e5e7eb;
}

/* Filtros del Catálogo */
.portal-container input[type="search"],
.portal-container select {
    font-family: 'Montserrat', sans-serif;
    padding: 0.75rem 1rem; /* 12px 16px */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.portal-container input[type="search"]:focus,
.portal-container select:focus {
    outline: none;
    border-color: #FC0D1B;
    box-shadow: 0 0 0 2px rgba(252, 13, 27, 0.2);
}

/* Cuadrícula de Premios */
#rewardsGrid {
    display: grid;
    gap: 1.5rem; /* 24px */
}

/* Tarjeta de Premio Individual */
.reward-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.reward-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.reward-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.reward-item h3 {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: #1f2937;
}
.reward-item .text-sm {
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
    flex-grow: 1;
}
.reward-item .bg-red-100 {
    background-color: #fee2e2;
    color: #991b1b;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.reward-item button {
    width: 100%;
    padding: 0.625rem; /* 10px */
    border-radius: 8px;
    font-weight: 700;
    color: white !important;
    background-color: #FC0D1B;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.reward-item button:hover {
    background-color: #d90b17;
    transform: scale(1.02);
}

/* Estilo específico para el botón "Agotado" (deshabilitado) */
.reward-item button:disabled {
    background-color: #5c5c5d !important; /* Gris oscuro (bg-gray-900) */
    cursor: not-allowed;
    transform: none; /* Anula el efecto de escala */
}

/* Efecto hover para el botón "Agotado" */
.reward-item button:disabled:hover {
    background-color: #000000 !important; /* Negro (bg-black) */
    transform: none; /* Asegura que no haya transformación en hover */
}

/* Modal */
#confirmationModal {
    transition: opacity 0.3s ease-in-out;
}
#modalContent {
    transition: transform 0.3s ease-in-out;
}
