@import url("responsive.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@300;400&display=swap');

:root {
  --primary-color: #e91e63;
  --secondary-color: #9c27b0;
  --background-white: #fff;
  --text-dark: #333;
  --text-medium: #666;
  --shadow-light: rgba(0,0,0,0.1);
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f8bbd9, #ce93d8);
  margin: 0;
  padding: 0;
}

/* === CONTENEDORES === */
.main-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px;
}

.card {
  background: var(--background-white);
  border-radius: 15px;
  box-shadow: 0 4px 10px var(--shadow-light);
  padding: 20px;
  width: 100%;
  max-width: 500px;
}

.card h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 15px;
}




/* === FORMULARIO === */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 90%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
}

/* === TOTAL A PAGAR === */
.total-pagar {
  background: #fce4ec;
  border-radius: 10px;
  padding: 10px;
  margin: 15px 0;
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
}

/* === BOTÓN === */
.btn {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233,30,99,0.3);
}

/* === LISTAS DE TURNOS === */
.turnos-lista {
  background: var(--background-white);
  border-radius: 15px;
  box-shadow: 0 4px 10px var(--shadow-light);
  margin: 30px auto;
  padding: 20px;
  max-width: 900px;
}

.turnos-lista h2 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  text-align: center;
}

.turno-item {
  background: #fafafa;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px var(--shadow-light);
}

.turno-item p {
  margin: 0;
  color: var(--text-medium);
}

.turno-item button {
  border: none;
  border-radius: 15px;
  padding: 8px 16px;
  cursor: pointer;
  color: white;
  font-weight: 600; 
    font-size: 1rem;
}

.btn-completar {
  background: #66bb6a;
}
.btn-eliminar {
  background: #da0e0a;
}
.btn-editar{
  background:#216424;
}

/* === MENSAJE VACÍO === */
.no-turnos {
  color: var(--text-medium);
  font-style: italic;
  text-align: center;
  margin: 10px 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
  }
}



.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: white;
    padding: 20px;
    width: 350px;
    border-radius: 8px;
}

.modal-box h2 {
    margin-top: 0;
}

.modal-box input,
.modal-box select {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-buttons button {
    padding: 6px 12px;
    cursor: pointer;
}


/* -------------------------------------------------------------------------- */
/* Estilos Base de Variables (Si no las tienes definidas globalmente) */
/* -------------------------------------------------------------------------- */
:root {
    --primary-color: #e91e63; /* Fucsia */
    --secondary-color: #9c27b0; /* Morado */
    --background-white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.15);
    --text-dark: #333;
}

/* -------------------------------------------------------------------------- */
/* 1. Estilos de la CAJA Principal (Simulando .modal-content) */
/* -------------------------------------------------------------------------- */

/* Estilo para la caja que contiene el formulario */
.modal-box {
    /* Eliminamos las propiedades de fixed y overlay */
    background: var(--background-white);
    margin: 20px auto; /* Centra horizontalmente, margen superior/inferior para el flujo normal */
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px; /* Ancho máximo de tu ejemplo original */
    box-shadow: 0 4px 15px var(--shadow-light); /* Sombra de tu ejemplo original */
    /* Si quieres la animación, podrías aplicarla aquí, aunque no es un modal pop-up */
    /* animation: fadeIn 0.3s ease; */ 
}

/* -------------------------------------------------------------------------- */
/* 2. Encabezado y Título (Simulando .modal-header) */
/* -------------------------------------------------------------------------- */

/* Usaremos el H2 del HTML como el encabezado */
.modal-box h2 {
    color: var(--secondary-color); /* Color Morado */
    display: flex; /* Para simular el justify-content */
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Nota: El botón de cerrar (X) no está en tu HTML, pero si lo agregas, usa:
.close { ... } */


/* -------------------------------------------------------------------------- */
/* 3. Estilos del Formulario y Scroll (Simulando .modal-content form) */
/* -------------------------------------------------------------------------- */

#formEditarTurno {
    overflow-y: auto; 
    max-height: 60vh; 
    padding-right: 10px; 
    /* El resto de estilos del formulario se aplican a los grupos de campos */
}

/* Scroll estético - requerido para Chrome, Safari */
#formEditarTurno::-webkit-scrollbar {
    width: 6px;
}

#formEditarTurno::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* Fucsia */
    border-radius: 10px;
}

#formEditarTurno::-webkit-scrollbar-thumb:hover {
    background-color: #c2185b;
}

/* -------------------------------------------------------------------------- */
/* 4. Grupos de Campos (Simulando .form-group) */
/* -------------------------------------------------------------------------- */

/* Adaptación de los grupos de campos */
#formEditarTurno > label, 
#formEditarTurno > input:not([type="hidden"]):not([type="checkbox"]),
#formEditarTurno > select {
    display: block; /* Para que cada elemento ocupe su propia línea */
    margin-bottom: 15px; /* Espacio entre grupos de campos */
}

/* Etiquetas */
#formEditarTurno > label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark); 
    padding-top: 5px; /* Espaciado extra */
}

/* Inputs y Selects (General) */
#formEditarTurno input:not([type="checkbox"]):not([type="hidden"]),
#formEditarTurno select {
    width: 98%; /* 90% para dejar espacio para la barra de scroll, pero ajustado a la caja */
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

/* Foco */
#formEditarTurno input:focus,
#formEditarTurno select:focus {
    border-color: var(--primary-color); /* Fucsia */
}


/* -------------------------------------------------------------------------- */
/* 5. Estilos Específicos (Asistencia y Checkboxes) */
/* -------------------------------------------------------------------------- */

.asistencia-box {
    /* Simula un .form-group, pero con un borde distintivo */
    border: 1px solid #f3c8e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.asistencia-box strong {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Contenedor de checkboxes dentro de asistencia-box */
.asistencia-box label {
    display: inline-flex; /* Asegura que el input y el texto estén alineados */
    align-items: center;
    font-weight: 400 !important;
    color: var(--text-dark);
    margin-right: 20px;
    margin-bottom: 0;
    cursor: pointer;
}

/* Checkbox 'Realizado' */
#formEditarTurno > label:last-of-type { /* Último label (Realizado) */
    display: flex;
    align-items: center;
    font-weight: 400 !important;
    margin-top: 10px;
    margin-bottom: 20px;
}

#formEditarTurno input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* -------------------------------------------------------------------------- */
/* 6. Botones (Simulando .modal-buttons) */
/* -------------------------------------------------------------------------- */

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-buttons button {
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: transform 0.3s ease;
}

/* Botón Cancelar */
.modal-buttons button[type="button"] {
    background: #aaa; /* Gris, como tu .btn-cancelar */
}

/* Botón Guardar Cambios */
.modal-buttons button[type="submit"] {
    background: var(--primary-color); /* Fucsia, como tu .btn-listo */
}

.modal-buttons button:hover {
    transform: translateY(-2px);
}
