/* ═══════════════════════════════════════════════
   GOAUTOCALL — style.css v4 SaaS Pro
═══════════════════════════════════════════════ */

* { font-family: 'Inter', sans-serif; box-sizing: border-box; }
body { -webkit-tap-highlight-color: transparent; }

/* SCROLLBAR */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ───────────────────────────────────────────
   TOPBAR
─────────────────────────────────────────── */
#topbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ───────────────────────────────────────────
   SIDEBAR NAV
─────────────────────────────────────────── */
.nav-item {
  color: #64748b;
  transition: background 0.13s, color 0.13s;
}
.dark .nav-item { color: #94a3b8; }
.nav-item:hover {
  background: rgba(59,130,246,0.09);
  color: #3b82f6;
}
.nav-item.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(37,99,235,0.5);
}

/* ───────────────────────────────────────────
   MOBILE TAB BAR
─────────────────────────────────────────── */
.tab-btn {
  color: #94a3b8;
  border-top: 2px solid transparent;
  transition: color 0.13s, border-color 0.13s;
}
.tab-btn.active {
  color: #3b82f6;
  border-top-color: #3b82f6;
}

/* ───────────────────────────────────────────
   FILTER BAR
─────────────────────────────────────────── */
.filter-input {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  outline: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.dark .filter-input { background: #1e293b; border-color: #334155; }
.filter-input:focus { box-shadow: 0 0 0 2px #3b82f6; }
select.filter-input { cursor: pointer; }

/* ───────────────────────────────────────────
   FORM INPUTS (Modal)
─────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.form-input {
  display: block;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.dark .form-input { background: #0f172a; border-color: #334155; }
.form-input:focus { box-shadow: 0 0 0 2px #3b82f6; }

/* ───────────────────────────────────────────
   BADGES / SELECT STATUTS (compact px-2)
─────────────────────────────────────────── */
.badge-sel {
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-block;
}
/* Élément actif/sélectionné : surbrillance */
.badge-sel:focus { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 1px; }
select option { background: #1e293b; color: #f1f5f9; font-weight: 700; }

/* ───────────────────────────────────────────
   TABLE
─────────────────────────────────────────── */
.table-container { max-height: calc(100vh - 230px); overflow-y: auto; }

.sticky-thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8fafc;
}
.dark .sticky-thead th { background: #0f172a; }

tbody tr { transition: background 0.1s; }

/* Date/time inputs inline */
input[type="date"], input[type="time"] {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  color: inherit;
}
.dark input[type="date"],
.dark input[type="time"] { color-scheme: dark; }
.dark input[type="date"]::-webkit-calendar-picker-indicator,
.dark input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); }

/* Inline edit contenteditable */
[contenteditable]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(59,130,246,0.07);
}

/* ───────────────────────────────────────────
   MOBILE CARDS
─────────────────────────────────────────── */
.rdv-card { transition: box-shadow 0.15s; }
.rdv-card:hover { box-shadow: 0 4px 20px -4px rgba(0,0,0,0.13); }
.card-status-bar { height: 4px; width: 100%; }
.card-details { display: none; }
.card-details.open { display: block; }
.card-arrow { transition: transform 0.2s; display: inline-block; }
.card-arrow.open { transform: rotate(180deg); }

/* ───────────────────────────────────────────
   KPI CARDS
─────────────────────────────────────────── */
.kpi-card { transition: transform 0.15s, box-shadow 0.15s; }
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.13);
}

/* ───────────────────────────────────────────
   VIEW TRANSITIONS
─────────────────────────────────────────── */
.view { animation: fadeUp 0.18s ease-out; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FLASH save animation */
@keyframes flashGreen {
  0%, 100% { background: transparent; }
  50%       { background: rgba(34, 197, 94, 0.12); }
}
.flash { animation: flashGreen 0.65s ease; }

/* ───────────────────────────────────────────
   PODIUM (Performance)
─────────────────────────────────────────── */
.podium-bar { border-radius: 8px 8px 0 0; transition: height 0.3s ease; }

/* ───────────────────────────────────────────
   MISC
─────────────────────────────────────────── */
.top-performer-badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 9999px;
}
