/* ============================================
   ESTILOS PARA MODAL DE PROGRAMACIÓN DE TOMA DE MUESTRAS
   ============================================ */

/* Gradientes para headers */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Estilos para el calendario */
.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendario-header {
  text-align: center;
  font-weight: 600;
  padding: 10px 4px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #495057;
}

.calendario-dia {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  background: white;
}

.calendario-dia:hover:not(.disabled):not(.otro-mes) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  border-color: #667eea;
}

.calendario-dia.disabled {
  color: #ced4da;
  cursor: not-allowed;
  background-color: #f8f9fa;
  border-color: #f1f3f5;
}

.calendario-dia.otro-mes {
  color: #dee2e6;
  background-color: #fafbfc;
}

.calendario-dia.hoy {
  border: 2px solid #ffc107;
  font-weight: 700;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.calendario-dia.seleccionado {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  font-weight: 700;
  border-color: #11998e;
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.calendario-dia.con-citas::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(245, 87, 108, 0.4);
}

/* Estilos para slots de horarios */
.horario-slot {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.horario-slot.disponible {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  color: #155724;
}

.horario-slot.disponible:hover {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.horario-slot.ocupado {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
  color: #721c24;
  cursor: not-allowed;
  opacity: 0.7;
}

.horario-slot.seleccionado {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid #667eea;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transform: scale(1.05);
}

.horario-slot i {
  font-size: 18px;
}

/* Animación para el formulario */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#formulario-programacion {
  animation: slideDown 0.4s ease-out;
}

/* Estilos para estado minimizado */
.seccion-minimizada {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.seccion-minimizada .card {
  height: auto !important;
}

.seccion-minimizada .card-body {
  display: none;
}

.seccion-minimizada .card-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  cursor: pointer;
}

.seccion-minimizada .card-header:hover {
  opacity: 0.9;
}

.check-completado {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-left: 8px;
  animation: checkBounce 0.5s ease-out;
}

@keyframes checkBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.check-completado i {
  color: #28a745;
  font-size: 14px;
}

/* Estilos para tabla de exámenes */
#tabla-examenes-programacion {
  font-size: 13px;
}

#tabla-examenes-programacion thead th {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border: none;
}

#tabla-examenes-programacion tbody tr {
  transition: all 0.2s ease;
}

#tabla-examenes-programacion tbody tr:hover {
  background-color: #f8f9fa;
  transform: scale(1.01);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#tabla-examenes-programacion tbody td {
  vertical-align: middle;
  border-color: #e9ecef;
}

#body-examenes-solicitados {
  transition: all 0.3s ease;
}

/* Estilos para badges en headers minimizados */
.seccion-minimizada .card-header .badge {
  font-size: 12px;
  padding: 4px 8px;
  font-weight: 600;
  animation: fadeIn 0.4s ease-out;
}

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