/* Only what Tailwind can't handle: dynamic calendar states + animations */

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .15s;
  border: 2px solid transparent;
  min-height: 38px;
  user-select: none;
}
.cal-day.empty { pointer-events: none; }
.cal-day.past { opacity: 0.28; pointer-events: none; }
.cal-day.today { border-color: #2563eb !important; font-weight: 700; }
.cal-day.selected { background: #2563eb !important; color: white !important; border-color: #2563eb !important; }
.cal-day.thursday { background: #f5f3ff; color: #7c3aed; cursor: not-allowed; }
.cal-day.available { background: white; }
.cal-day.available:not(.past):hover { background: #f8fafc; border-color: #cbd5e1; }
.cal-day.partial { background: #fffbeb; }
.cal-day.partial:not(.past):hover { border-color: #fcd34d; }
.cal-day.full { background: #fef2f2; color: #dc2626; cursor: default; }
.cal-day.pending-only { background: #fefce8; border: 2px dashed #fbbf24 !important; }
.cal-day.pending-only:not(.past):hover { background: #fef9c3; }

.day-dot { width: 4px; height: 4px; border-radius: 50%; margin-top: 2px; flex-shrink: 0; }
.dot-full { background: #dc2626; }
.dot-partial { background: #d97706; }
.dot-thursday { background: #7c3aed; }
.dot-pending { background: transparent; border: 1.5px dashed #d97706; }

/* Modal bottom-sheet animation */
@keyframes slideUp { from { transform: translateY(48px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop { animation: fadeIn .2s ease; }
.modal-sheet    { animation: slideUp .22s cubic-bezier(.32,.72,0,1); }

/* Time bar */
.time-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; border: 1px solid #e2e8f0; }
.time-slot { flex: 1; border-right: 1px solid rgba(0,0,0,.06); }
.time-slot:last-child { border-right: none; }
.time-slot.booked   { background: #fca5a5; }
.time-slot.pending  { background: #fde68a; }
.time-slot.free     { background: #bbf7d0; }
.time-bar-ticks { display: flex; font-size: 0.6rem; color: #94a3b8; margin-top: 3px; }
.time-bar-ticks span { flex: 1; }
.time-bar-ticks span:last-child { flex: 0; text-align: right; }
