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

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #F8FAFC;
  color: #1E293B;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* FullCalendar Customization */
.fc {
  --fc-border-color: #E2E8F0;
  --fc-today-bg-color: #F0FDF4;
  --fc-event-resizer-thickness: 8px;
}

.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fc .fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 600;
  color: #0E5C63;
}

.fc .fc-button {
  background-color: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.fc .fc-button:hover {
  background-color: #F8FAFC !important;
  border-color: #94A3B8 !important;
}

.fc .fc-button-active {
  background-color: #0E5C63 !important;
  color: #FFFFFF !important;
  border-color: #0E5C63 !important;
}

.fc-event {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.75rem;
  border: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

.fc-event:hover {
  transform: translateY(-1px);
}

/* Pending Event Striped Pattern */
.event-pending {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.85;
  border: 1px dashed rgba(255, 255, 255, 0.8) !important;
}

/* Gate 19: Custom Selection Highlight */
::selection {
  background-color: #0E5C63;
  color: #FFFFFF;
}
::-moz-selection {
  background-color: #0E5C63;
  color: #FFFFFF;
}

/* Pulse animation for live indicators */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gate 52: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toast-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-success {
  background-color: #064E3B;
  color: #ECFDF5;
  border: 1px solid #059669;
}

.toast-error {
  background-color: #881337;
  color: #FFE4E6;
  border: 1px solid #E11D48;
}

.toast-warning {
  background-color: #78350F;
  color: #FEF3C7;
  border: 1px solid #D97706;
}
