/* Styles personnalisés pour TherapyPro - Design Suisse Minimaliste */

/* Variables CSS pour les couleurs */
:root {
  --therapy-blue: #2563EB;
  --therapy-green: #059669;
  --therapy-cream: #FEF7ED;
  --swiss-red: #FF0000;
  --swiss-gray: #F5F5F5;
}

/* Police et base */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Boutons avec animations douces */
.btn-primary {
  @apply bg-therapy-blue text-white px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:bg-blue-700 hover:shadow-md;
}

.btn-secondary {
  @apply border-2 border-therapy-blue text-therapy-blue px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:bg-therapy-blue hover:text-white;
}

.btn-success {
  @apply bg-therapy-green text-white px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:bg-green-700 hover:shadow-md;
}

/* Cards avec élévation douce */
.card {
  @apply bg-white rounded-lg shadow-sm border border-gray-100 transition-shadow duration-200 hover:shadow-md;
}

.card-elevated {
  @apply bg-white rounded-lg shadow-lg border border-gray-100;
}

/* Navigation fixe avec flou */
.nav-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Animations pour les modals */
.modal-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

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

/* Formulaires avec style suisse */
.form-input {
  @apply w-full border-2 border-gray-200 rounded-lg px-4 py-2 focus:border-therapy-blue focus:ring-0 transition-colors duration-200;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Status badges */
.status-badge {
  @apply px-3 py-1 rounded-full text-xs font-medium;
}

.status-scheduled {
  @apply bg-yellow-100 text-yellow-800;
}

.status-confirmed {
  @apply bg-blue-100 text-blue-800;
}

.status-completed {
  @apply bg-green-100 text-green-800;
}

.status-cancelled {
  @apply bg-red-100 text-red-800;
}

.status-paid {
  @apply bg-green-100 text-green-800;
}

.status-pending {
  @apply bg-orange-100 text-orange-800;
}

/* Calendrier et planning */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day {
  @apply bg-white p-2 min-h-[80px] text-sm relative;
}

.calendar-day:hover {
  @apply bg-gray-50;
}

.calendar-day.today {
  @apply bg-therapy-cream;
}

.calendar-day.has-appointments {
  @apply bg-blue-50;
}

/* Timeline pour les rendez-vous */
.appointment-timeline {
  position: relative;
}

.appointment-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--therapy-blue);
}

.appointment-item {
  @apply relative pl-12 pb-4;
}

.appointment-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--therapy-blue);
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--therapy-blue);
}

/* Responsive design mobile-first */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem;
  }
  
  /* Navigation mobile */
  .mobile-nav {
    @apply fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 px-4 py-2;
  }
  
  .mobile-nav-item {
    @apply flex flex-col items-center text-xs text-gray-600 hover:text-therapy-blue;
  }
}

/* Animations de chargement */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Notifications toast */
.toast {
  @apply fixed top-4 right-4 z-50 bg-white border border-gray-200 rounded-lg shadow-lg p-4 max-w-sm;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  @apply border-green-200 bg-green-50;
}

.toast.error {
  @apply border-red-200 bg-red-50;
}

.toast.warning {
  @apply border-yellow-200 bg-yellow-50;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Styles pour l'impression */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-full-width {
    width: 100% !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible pour la navigation au clavier */
.focus-visible:focus {
  outline: 2px solid var(--therapy-blue);
  outline-offset: 2px;
}

/* Transitions douces pour tous les éléments interactifs */
button, a, input, select, textarea {
  transition: all 0.2s ease-in-out;
}

/* Curseur pointer pour les éléments cliquables */
.clickable {
  cursor: pointer;
}

/* Styles pour les états désactivés */
.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Gradient subtil pour les headers */
.gradient-header {
  background: linear-gradient(135deg, var(--therapy-cream) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Ombres personnalisées */
.shadow-soft {
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-strong {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Bordures arrondies cohérentes */
.rounded-therapy {
  border-radius: 12px;
}

/* Espacements harmonieux */
.spacing-therapy {
  margin: 1.5rem 0;
}

.spacing-therapy-sm {
  margin: 0.75rem 0;
}

.spacing-therapy-lg {
  margin: 3rem 0;
}