/*
Proyecto: Encuesta Colegio - Reinicio de Centros
Archivo: css/style.css
Descripción: Hoja de estilos principal.
*/

/* Ajustes para la página de login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
  min-height: 50vh; 
  padding-top: 15px; 
}

.logo-img-principal {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 180px;
  height: auto;
}

.login-title {
  text-align: center;
  margin-bottom: 1.5rem; 
  font-size: 1.6em; 
  font-weight: bold; 
  color: #333; 
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 350px;
}

.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  font-size: 1.1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.toggle-password svg {
  pointer-events: none;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.logo-img-principal {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 20px auto 30px auto;
}

.container {
  background-color: #fff;
  padding: 25px 35px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 20px;
}

.container {
  background-color: #fff;
  padding: 25px 35px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  margin-top: 20px;
  margin-bottom: 20px;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 15px;
}

.descripcion-formulario {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #495057;
}

.descripcion-formulario ul {
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.descripcion-formulario strong {
  color: #343a40;
}

.descripcion-importante {
  font-weight: bold;
  color: #dc3545;
  margin-top: 10px;
  margin-bottom: 1px;
  font-size: 1.5rem;
}

.descripcion-importante-text {
  font-weight: bold;
  color: #dc3545;
  margin-bottom: 10px;
  text-align: center;
}

.pregunta {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.pregunta p {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 12px;
  color: #495057;
  font-size: 1.05em;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #333;
  cursor: pointer;
  font-weight: normal;
  padding-left: 5px;
}

input[type="checkbox"],
input[type="radio"] {
  margin: 0;
}

input[type="date"].input-fecha {
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1em;
  width: auto;
  min-width: 180px;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

button[type="submit"]:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.mensaje-error-pagina {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.mensaje-error-pagina h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #721c24;
}

/* --- ESTILOS PARA LA PREGUNTA DE COLEGIOS EN DOS COLUMNAS --- */
.checkbox-columns {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.checkbox-column {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.checkbox-column label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

/* --- ESTILOS PARA NOTIFICACIONES EMERGENTES (TOAST) --- */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-notification {
  min-width: 280px;
  padding: 15px 20px;
  border-radius: 6px;
  color: white;
  font-size: 0.95em;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(110%);
  animation: slideInToast 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-notification.success {
  background-color: #28a745;
  border-left: 6px solid #1e7e34;
}

.toast-notification.error {
  background-color: #dc3545;
  border-left: 6px solid #bd2130;
}

@keyframes slideInToast {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-notification.fade-out {
  opacity: 0;
  transform: translateX(110%);
}

/* Estilo minimalista para fieldset y legend */
fieldset {
  border: 1px solid #d0e6f7;
  border-radius: 8px;
  padding: 18px 20px 14px 20px;
  margin-bottom: 28px;
  background: #eaf4fb;
  box-shadow: 0 1px 2px rgba(60, 60, 60, 0.03);
  transition: box-shadow 0.2s;
}

fieldset:focus-within {
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.07);
  border-color: #8bbbe8;
}

legend {
  font-size: 1.08em;
  font-weight: 600;
  color: #3973a7;
  letter-spacing: 0.02em;
  padding: 0 10px;
  background: #fafdff;
  border-radius: 4px;
  margin-left: 8px;
  margin-bottom: 0;
}

textarea[name="observaciones"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  resize: none;
  border-radius: 5px;
  border: 1px solid #ced4da;
  padding: 10px;
  font-size: 1em;
  background: #fff;
  box-sizing: border-box;
  margin-top: 6px;
}

.logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

/* Reduce específicamente el margen inferior de los logos en la pantalla de login */
.login-container .logos-container {
    margin-bottom: 15px;
}

.logo-img-izquierda {
    max-height: 100px;
    max-width: 48%;
}

.logo-img-derecha {
    max-height: 80px;
    max-width: 45%;
}

/* Ajuste para la página de login */
.login-container .logos-container {
    margin-bottom: 30px;
}

@media (max-width: 600px) {
  fieldset {
    padding: 12px 6px 10px 6px;
  }

  legend {
    font-size: 1em;
    padding: 0 6px;
  }
}

/* Estilo para el select de opciones de alumnado y familiares */
select[name="accion_alumnado_familiares"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

select[name="accion_alumnado_familiares"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background-color: #f8f9fa;
}

select[name="accion_alumnado_familiares"]:hover {
  border-color: #ced4da;
  background-color: #f8f9fa;
}

select[name="accion_alumnado_familiares"]:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #dee2e6;
  opacity: 0.6;
}

/* Estilos para las opciones del select */
select[name="accion_alumnado_familiares"] option {
  padding: 10px;
  background-color: #fff;
  color: #495057;
  font-weight: normal;
}

select[name="accion_alumnado_familiares"] option:first-child {
  color: #6c757d;
  font-style: italic;
}