body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.hidden-view { display: none !important; }
.spinner { border: 3px solid rgba(0,0,0,.1); width: 24px; height: 24px; border-radius: 50%; border-left-color: #3b82f6; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#loader-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
#loader-bar.error {
  background: #ef4444;
  animation: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.animate-slide-up { animation: slideUp 0.3s ease-out forwards; }

/* Custom Rolodex Wheel CSS */
.wheel-container {
scrollbar-width: none;
-ms-overflow-style: none;
scroll-snap-type: y mandatory;
overscroll-behavior-y: contain;
scroll-behavior: smooth;
}
.wheel-container::-webkit-scrollbar { display: none; }
.wheel-item {
height: 40px;
line-height: 40px;
scroll-snap-align: center;
transition: opacity 0.2s;
opacity: 0.3;
}
.wheel-item.active { opacity: 1; font-weight: bold; color: #111827; }
.dark .wheel-item.active { color: #f9fafb; }
.wheel-highlight {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 40px;
left: 0;
right: 0;
border-top: 2px solid #3b82f6;
border-bottom: 2px solid #3b82f6;
background: rgba(59, 130, 246, 0.1);
pointer-events: none;
border-radius: 6px;
}

/* Hide scrollbars for continuous agenda and horizontal scrollbars */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Hide default marker for details/summary tag */
details > summary::-webkit-details-marker {
 display: none;
}

/* Skeleton Loading Animation */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse {
  animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card Hover Enhancement */
.agenda-card-body {
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
  transition-property: background-color, border-color, color, fill, stroke, box-shadow, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus ring enhancement */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Improved scrollbar for non-hidden scroll areas */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #374151;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Fade in animation for content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Staggered animation for list items */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.slide-in-left {
  animation: slideInLeft 0.25s ease-out forwards;
}

/* Quick stats card hover */
#dash-quick-stats > div {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#dash-quick-stats > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Filter chip active state pulse */
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0); }
}
.filter-chip-active {
  animation: chip-pulse 2s ease-in-out infinite;
}

/* Parade state member card hover */
.parade-member-card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.parade-member-card:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Calendar cell hover enhancement */
.cal-day-cell {
  position: relative;
}
.cal-day-cell::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.cal-day-cell:hover::after {
  border-color: rgba(59, 130, 246, 0.3);
}

/* Form validation states */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}
.input-success {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 4px 8px;
  background: #1f2937;
  color: white;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
[data-tooltip]:hover::after {
  opacity: 1;
}