/* styles.css — Styles complémentaires à Tailwind */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar discrète */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* Transition globale sur les liens */
a { transition: color .15s, background-color .15s; }

/* Badge statut */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* Calendrier planning */
.cal-cell {
  min-height: 56px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 4px;
  position: relative;
  transition: background .1s;
}
.cal-cell:hover { background: #f8fafc; }

/* Appointment card dans le calendrier */
.appt-card {
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
.appt-card:hover { filter: brightness(.97); transform: translateY(-1px); }

/* Chat WhatsApp */
.chat-bubble-in  { background: #fff; border-radius: 0 12px 12px 12px; }
.chat-bubble-out { background: #d9fdd3; border-radius: 12px 0 12px 12px; }

/* Mobile phone frame */
.phone-frame {
  width: 320px;
  min-height: 600px;
  border-radius: 40px;
  border: 8px solid #1e293b;
  background: #f0f0f0;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.35), inset 0 2px 4px rgba(255,255,255,.1);
  overflow: hidden;
  position: relative;
}

/* Tabs */
.tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  color: #64748b;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-btn.active {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
}
.tab-btn:hover:not(.active) { color: #334155; }

/* Animate tab panels */
.tab-panel { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Modal backdrop */
.modal-backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
}

/* Stat card hover */
.stat-card { transition: box-shadow .15s, transform .15s; }
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }

/* Focus ring */
input:focus, select:focus, textarea:focus {
  outline: none;
  ring: 2px solid #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
  border-color: #0ea5e9;
}
