body {
  font-family: "Nunito", sans-serif;
  background-color: #f7f9fc;
  overflow-x: hidden;
}

.auth-container {
  background: linear-gradient(135deg, #8bc6ec 0%, #9599e2 100%);
  min-height: 100vh;
}

.auth-card {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.btn-primary {
  background-color: #6366f1;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
}

.sidebar {
  background-color: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  width: 280px;
  transition: all 0.3s ease;
}

.sidebar-item {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  background-color: #f3f4f6;
}

.sidebar-item.active {
  background-color: #eef2ff;
  color: #4f46e5;
}

.card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modal {
  backdrop-filter: blur(5px);
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: #10b981;
  color: white;
}

.toast-error {
  background-color: #ef4444;
  color: white;
}

.menu-card {
  border-left: 4px solid #6366f1;
}

.calendar-day {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background-color: #eef2ff;
}

.calendar-day.selected {
  background-color: #6366f1;
  color: white;
}

.calendar-day.disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.form-input:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.loader {
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #6366f1;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Corregir problemas de layout */
.content {
  max-width: 100%;
  overflow-x: auto;
}

/* Asegurar que los gráficos no causen overflow */
canvas {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 640px) {
  .sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: auto;
    z-index: 50;
  }

  .mobile-menu {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
  }

  .content {
    margin-left: 0;
    margin-bottom: 70px;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background-color: #10b981;
}

.toast-error {
  background-color: #ef4444;
}

.toast-warning {
  background-color: #f59e0b;
}

.toast-info {
  background-color: #3b82f6;
}

/* Estilos adicionales para consistencia */
.form-input, .form-select {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Botones consistentes */
.btn-primary {
  background-color: #6366f1;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Alertas consistentes */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.alert-success {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error, .alert-danger {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-warning {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-info {
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Tablas responsivas */
.table-responsive {
  overflow-x: auto;
  border-radius: 0.5rem;
}

/* Mejoras para móvil */
@media (max-width: 768px) {
  .auth-card {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .card {
    margin: 0.5rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}