/* ============================================================
   FIXEO V11 — SLOT LOCK CSS
   Styles visuels pour les créneaux bloqués / réservés
   ============================================================ */

/* ── Créneau réservé / bloqué ─────────────────────────────── */
.fixeo-res-slot.slot-booked {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 80, 80, 0.25) !important;
  color: rgba(255, 255, 255, 0.32) !important;
  position: relative;
  pointer-events: auto !important; /* garder actif pour afficher l'erreur */
  text-decoration: line-through;
  user-select: none;
  transition: opacity .2s, border-color .2s;
}

/* Hachure diagonal overlay */
.fixeo-res-slot.slot-booked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 70, 70, 0.06) 0px,
    rgba(255, 70, 70, 0.06) 4px,
    transparent 4px,
    transparent 12px
  );
  border-radius: inherit;
  pointer-events: none;
}

/* Badge "Réservé" en bas à droite */
.fixeo-res-slot.slot-booked::after {
  content: '⛔ Réservé';
  position: absolute;
  bottom: 4px;
  right: 7px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 90, 90, 0.85);
  pointer-events: none;
  line-height: 1;
}

/* Hover sur créneau bloqué → curseur explicatif */
.fixeo-res-slot.slot-booked:hover {
  border-color: rgba(255, 80, 80, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.18) !important;
}

/* ── Créneau libre (pour contraste visuel clair) ──────────── */
.fixeo-res-slot:not(.slot-booked) {
  cursor: pointer;
}

/* ── Animation shake sur slot bloqué cliqué ──────────────── */
@keyframes fixeoSlotShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-7px); }
  30%       { transform: translateX(7px); }
  45%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}
.slot-shake {
  animation: fixeoSlotShake 0.48s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── Animation shake sur la grille (soumission invalide) ──── */
@keyframes fixeoSlotGridShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.slot-grid-shake {
  animation: fixeoSlotGridShake 0.55s ease both;
}

/* ── Badge "Occupé" dans l'admin dashboard ────────────────── */
.slot-admin-badge-booked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 70, 70, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(255, 70, 70, 0.3);
  white-space: nowrap;
}

.slot-admin-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(32, 201, 151, 0.18);
  color: #20C997;
  border: 1px solid rgba(32, 201, 151, 0.3);
  white-space: nowrap;
}

/* ── Tooltip natif amélioration ───────────────────────────── */
.fixeo-res-slot.slot-booked[title] {
  position: relative;
}

/* ── Indicateur de disponibilité sous le datepicker ─────────
   Affiché dynamiquement par slot-lock.js                      */
.fixeo-res-slot-availability-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fixeo-res-slot-avail-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.fixeo-res-slot-avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fixeo-res-slot-avail-dot.free   { background: #20C997; }
.fixeo-res-slot-avail-dot.booked { background: #ff6b6b; }
