/* Pharma CRM - Styles Personnalisés */

/* Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
  transition: all 0.3s ease;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

/* Transitions améliorées */
.nav-item {
  transition: all 0.2s ease;
}

.card {
  transition: transform 0.2s ease, shadow 0.2s ease;
}

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

/* Loading spinner */
.spinner {
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top: 3px solid rgb(59, 130, 246);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Tables responsive */
@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }
  
  .hidden-mobile {
    display: none;
  }
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Badges et labels */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

/* Preview devices */
.preview-desktop {
  max-width: 900px;
  width: 100%;
}

.preview-tablet {
  max-width: 768px;
  width: 768px;
}

.preview-mobile {
  max-width: 375px;
  width: 375px;
}

/* Gradients */
.gradient-blue-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green-teal {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.gradient-red-pink {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* Chart containers */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Utility classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

/* Interactive elements */
.hover-lift {
  transition: transform 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Status indicators */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.status-dot.active {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.inactive {
  background-color: #6b7280;
}

.status-dot.error {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-full-width {
    width: 100% !important;
    max-width: none !important;
  }
}
