/* Paleta Institucional Tlaquepaque (Ajustada a la solicitud)
    - Tinto/Magenta (Principal): #9B002E (Un tinto profundo, basado en la identidad)
    - Azul Marino (Secundario/Fuerte): #0047AB (Mantenido para contraste fuerte)
    - Dorado/Amarillo: #FFC300 (Acento/Pendiente)
    - Verde (Éxito): #00A36C 
*/

/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; 
}

/* --- Header y Navegación --- */
header {
    background: #9B002E; /* Tinto Principal */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFC300; /* Dorado para el hover */
}

/* --- Contenedor Principal --- */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); 
}

/* Títulos */
h2 {
    color: #0047AB; /* Títulos en Azul Oscuro */
    border-bottom: 3px solid #9B002E; /* Línea de acento Tinto */
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* --- Formulario y Elementos de Entrada --- */
form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="tel"],
form input[type="file"],
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #9B002E; /* Borde Tinto al enfocar */
    box-shadow: 0 0 0 3px rgba(155, 0, 46, 0.2); 
    outline: none;
}

.btn-submit {
    background: #9B002E; /* Botón Principal Tinto */
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
}

.btn-submit:hover:not(:disabled) {
    background: #7A0024; /* Tinto más oscuro al pasar el ratón */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
    background-color: #c0909e; /* Tono más claro de tinto para deshabilitado */
    cursor: not-allowed;
}

/* --- Mensajes de Feedback --- */
#message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
}
.hidden { display: none; }
.success { 
    background-color: #e6ffed; 
    color: #0d6d2e; 
    border: 1px solid #b3ffc8; 
}
.error { 
    background-color: #ffe6e6; 
    color: #8c0000; 
    border: 1px solid #ffb3b3; 
}

/* --- Tabla de Administrador --- */
#reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

#reports-table th, #reports-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

#reports-table th {
    background-color: #f7f7f7;
    color: #333;
    font-weight: bold;
}

/* Estilos para el estado del reporte (CLASES CORREGIDAS) */
.status {
    padding: 4px 10px;
    border-radius: 15px; 
    font-size: 13px;
    font-weight: bold;
    color: white;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

/* Pendiente (Amarillo Institucional) */
.status-pendiente { 
    background-color: #FFC300; 
    color: #333; /* Cambiado a texto oscuro para mejor contraste */
} 
/* En Proceso (Azul Oscuro Secundario) */
.status-en_proceso { 
    background-color: #0047AB; 
} 
/* Resuelto/Completado (Verde, para éxito) */
.status-resuelto { 
    background-color: #00A36C; 
} 

.btn-ver,
.btn-action {
    background: #FFC300; /* Botón de acción Dorado/Amarillo */
    color: #0047AB; /* Texto azul */
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: opacity 0.3s, background-color 0.3s;
}

.btn-ver:hover,
.btn-action:hover {
    background: #FFD24C;
    opacity: 0.9;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 15px;
    background: #9B002E; /* Footer Tinto Principal */
    color: white;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos del grupo de selección de horario */
.horario-select-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
}
.horario-select-group label {
    font-weight: normal;
    margin: 0;
}
.horario-select-group select {
    margin-bottom: 0; /* Ajuste para el layout de grid */
}
@media (max-width: 600px) {
    .horario-select-group {
        grid-template-columns: 1fr;
    }
}