/* Estilos para Gestión de Horarios */

.calendar-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.calendar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.view-buttons {
  display: flex;
  gap: 5px;
}

.view-btn {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  background: white;
  color: #6c757d;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.view-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.view-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.config-panel {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.config-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
}

.config-row {
  display: flex;
  gap: 20px;
  align-items: end;
}

.config-item {
  flex: 1;
}

.config-item label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 5px;
}

.event-modal .modal-content {
  border-radius: 12px;
}

.event-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.event-modal .btn-close {
  filter: invert(1);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.time-slot {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.time-slot:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.time-slot.selected {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

.fc-event {
  border-radius: 6px !important;
  border: none !important;
  padding: 2px 4px !important;
  font-size: 0.8rem !important;
}

.fc-event.class-45 {
  background: #28a745 !important;
}

.fc-event.class-90 {
  background: #ffc107 !important;
  color: #212529 !important;
}

.fc-event.break {
  background: #6c757d !important;
}

.legend {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-color.class-45 {
  background: #28a745;
}

.legend-color.class-90 {
  background: #ffc107;
}

.legend-color.break {
  background: #6c757d;
}

/* Estilos para notificaciones toast */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification.success {
  background: #28a745;
}

.toast-notification.error {
  background: #dc3545;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-content i {
  font-size: 1.2em;
}

/* Estilos para Reportes Avanzados */
.report-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.filter-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.export-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

/* Estilos adicionales para gráficos avanzados */
.chart-container canvas {
  max-height: 300px;
}

.report-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px 15px 0 0;
}

.report-card .card-header h5 {
  margin: 0;
  font-weight: 600;
}

.report-card .card-header i {
  opacity: 0.9;
}

/* Animaciones para las tarjetas de estadísticas */
.stat-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos hover mejorados para botones de exportación */
.export-section .btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.export-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive para gráficos */
@media (max-width: 768px) {
  .chart-container {
    height: 250px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .report-card {
    margin-bottom: 15px;
  }
}

/* Estilos específicos para gestión de solicitudes */
.admin-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-admin {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-pendiente {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-aprobada {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-rechazada {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
