/* ============================= */
/* RESET BÁSICO Y FUENTE GLOBAL */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
  background: linear-gradient(135deg, #FFFAE5, #D7F0FF);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.5s;
  color: #333;
}

/* ============================= */
/* ENCABEZADO */
/* ============================= */
header {
  text-align: center;
  padding: 25px 10px;
  color: #FF6B6B;
  text-shadow: 1px 1px #fff;
  animation: bounce 2s infinite alternate;
}

header h1 {
  font-size: 2rem;
}

header p {
  font-size: 1rem;
  margin-top: 5px;
}

/* ============================= */
/* BOTONES */
/* ============================= */
.buttons-container {
  margin: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.magic-btn,
.cancel-btn {
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s all;
  position: relative;
  font-weight: bold;
}

.magic-btn {
  background: linear-gradient(135deg, #FFB347, #FFCC33);
  box-shadow: 0 5px #FF7F50;
}
.magic-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px #FF7F50;
}
.magic-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 3px #FF7F50;
}

.cancel-btn {
  background: linear-gradient(135deg, #ff4747, #ff3333);
  box-shadow: 0 5px #710000;
}
.cancel-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px #710000;
}
.cancel-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 3px #710000;
}

/* ============================= */
/* SLIDER */
/* ============================= */
.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; 
  background: #f9fff9; 
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); 
  max-width: 350px;
}

input[type="range"] {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #FFCC33 40%, #ddd 50%);
  outline: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFB347;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#valor {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* ============================= */
/* FORMULARIOS Y CHECKBOXES MODERNOS */
/* ============================= */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #f0fff0, #e0f7ff);
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-width: 500px;
  margin: 20px auto;
  transition: all 0.3s ease;
}

form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

form input[type="text"],
form select {
  padding: 12px 15px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s;
}

form input[type="text"]:focus,
form select:focus {
  border-color: #FFB347;
  box-shadow: 0 0 8px rgba(255,179,71,0.4);
  outline: none;
}

/* Fieldset moderno */
form fieldset {
  border: 1px solid #aaa;
  border-radius: 15px;
  padding: 15px;
  background: #fefefe;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

form legend {
  font-weight: 700;
  padding: 0 5px;
  color: #FF6B6B;
}

/* Checkboxes y radios */
#editCapacitaciones,
#editOperadores,
#editVacaciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

#editCapacitaciones label,
#editOperadores label,
#editVacaciones label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

#editCapacitaciones label:hover,
#editOperadores label:hover,
#editVacaciones label:hover {
  background: #FFFAE5;
  transform: translateY(-2px) scale(1.02);
}

#editCapacitaciones input,
#editOperadores input,
#editVacaciones input {
  accent-color: #FFB347; /* Color moderno para checkboxes */
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#editCapacitaciones input:checked,
#editOperadores input:checked,
#editVacaciones input:checked {
  transform: scale(1.2);
}

/* Botones dentro del form */
.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Checkboxes dinámicos */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: #FFFAE5;
  transform: translateY(-2px) scale(1.02);
}

.checkbox-input {
  accent-color: #FFB347;
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.checkbox-input:checked {
  transform: scale(1.2);
}


/* ============================= */
/* TABLAS */
/* ============================= */
table {
  width: 90%;
  border-collapse: collapse;
  margin: 15px auto;
  border-radius: 15px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  border: 1px solid #FFB347;
  text-align: center;
  font-weight: bold;
  color: #FF6B6B;
  background: #fff;
}

tr:nth-child(even) {
  background: #FFF8DC;
}

tr:hover {
  background: #FFDAB9;
  transform: scale(1.01);
  transition: all 0.2s;
}

/* ============================= */
/* SECCIONES DE PÁGINA */
/* ============================= */
.output {
  width: 95%;
  max-width: 750px;
  min-height: 150px;
  background: #FFF8DC;
  border-radius: 25px;
  padding: 25px;
  margin: 20px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-size: 18px;
  color: #FF6B6B;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.adminPage {
  background: #E0FFE0;
  width: 90%;
  max-width: 800px;
  border-radius: 25px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s;
}

/* ============================= */
/* PIE DE PÁGINA */
/* ============================= */
footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  font-size: 14px;
  color: #555;
}

/* ============================= */
/* ANIMACIONES */
/* ============================= */
@keyframes bounce {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0px); }
}

/* ============================= */
/* RESPONSIVIDAD */
/* ============================= */
@media (max-width: 768px) {
  .buttons-container {
    flex-direction: column;
    gap: 12px;
  }
  .magic-btn, .cancel-btn {
    width: 100%;
    text-align: center;
  }
  table, th, td {
    font-size: 14px;
  }
  form {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
  header p {
    font-size: 14px;
  }
  .magic-btn, .cancel-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
  table, th, td {
    font-size: 12px;
    padding: 6px;
  }
}

.hidden { display: none; }
