/* Clean Enterprise Clinical Ops - Custom Scrollbars, Animations & Micro-Interactions */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom subtle scrollbars for Kanban board and panels */
.kanban-scroll::-webkit-scrollbar {
  height: 8px;
  width: 6px;
}

.kanban-scroll::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 9999px;
}

.kanban-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

.kanban-scroll::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Drag-and-Drop visual states */
.dragging-card {
  opacity: 0.45;
  transform: rotate(1.5deg) scale(0.98);
}

.dropzone-active {
  background-color: rgba(238, 242, 255, 0.85) !important;
  box-shadow: inset 0 0 0 2px #4F46E5;
}

/* Slide-over drawer animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast pop animation */
@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-toast {
  animation: toastPop 0.2s ease-out forwards;
}

/* Modal pop animation */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-pop {
  animation: modalPop 0.18s ease-out forwards;
}

/* Highlight pulse when Go-Live Crosscheck gate blocks Done move */
@keyframes goLiveGatePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.15);
  }
}

.golive-highlight-pulse {
  animation: goLiveGatePulse 1.1s ease-in-out 2;
}

/* Bounded queue scroll panels */
.queue-panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.queue-panel-scroll::-webkit-scrollbar-track {
  background: #F8FAFC;
  border-radius: 9999px;
}

.queue-panel-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

.queue-panel-scroll::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
