/* Tailwind CSS - Local Version */
/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Dark mode support */
.dark {
  color-scheme: dark;
}

/* Utility classes */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.inline-grid { display: inline-grid !important; }

/* Dark mode visibility classes */
.dark\:hidden { display: none !important; }
.dark\:inline { display: inline !important; }

/* Flexbox */
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }

/* Spacing */
.p-2 { padding: 0.5rem !important; }
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Sizing */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.max-w-6xl { max-width: 72rem !important; }

/* Colors */
.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-gray-200 { background-color: #e5e7eb !important; }
.bg-gray-300 { background-color: #d1d5db !important; }
.bg-gray-400 { background-color: #9ca3af !important; }
.bg-gray-500 { background-color: #6b7280 !important; }
.bg-gray-600 { background-color: #4b5563 !important; }
.bg-gray-700 { background-color: #374151 !important; }
.bg-gray-800 { background-color: #1f2937 !important; }
.bg-gray-900 { background-color: #111827 !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-700 { background-color: #1d4ed8 !important; }
.bg-green-500 { background-color: #10b981 !important; }
.bg-green-400 { background-color: #34d399 !important; }
.bg-red-500 { background-color: #ef4444 !important; }
.bg-black { background-color: #000000 !important; }

/* Dark mode background colors */
.dark .bg-white { background-color: #1f2937 !important; }
.dark .bg-gray-50 { background-color: #111827 !important; }
.dark .bg-gray-100 { background-color: #1f2937 !important; }
.dark .bg-gray-200 { background-color: #374151 !important; }
.dark .bg-gray-300 { background-color: #4b5563 !important; }
.dark .bg-gray-400 { background-color: #6b7280 !important; }
.dark .bg-gray-500 { background-color: #9ca3af !important; }
.dark .bg-gray-600 { background-color: #d1d5db !important; }
.dark .bg-gray-700 { background-color: #e5e7eb !important; }
.dark .bg-gray-800 { background-color: #f3f4f6 !important; }
.dark .bg-gray-900 { background-color: #ffffff !important; }
.dark .bg-slate-700 { background-color: #475569 !important; }
.dark .bg-slate-800 { background-color: #334155 !important; }
.dark .bg-slate-900 { background-color: #1e293b !important; }

.text-white { color: #ffffff !important; }
.text-gray-300 { color: #d1d5db !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-900 { color: #111827 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-700 { color: #334155 !important; }
.text-blue-400 { color: #60a5fa !important; }
.text-blue-600 { color: #2563eb !important; }
.text-green-300 { color: #86efac !important; }
.text-green-400 { color: #4ade80 !important; }

/* Dark mode text colors */
.dark .text-white { color: #ffffff !important; }
.dark .text-gray-300 { color: #d1d5db !important; }
.dark .text-gray-400 { color: #9ca3af !important; }
.dark .text-gray-500 { color: #6b7280 !important; }
.dark .text-gray-600 { color: #4b5563 !important; }
.dark .text-gray-700 { color: #e5e7eb !important; }
.dark .text-gray-900 { color: #f9fafb !important; }
.dark .text-slate-300 { color: #cbd5e1 !important; }
.dark .text-slate-700 { color: #e2e8f0 !important; }

/* Typography */
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }

/* Border colors */
.border-gray-200 { border-color: #e5e7eb !important; }
.border-gray-700 { border-color: #374151 !important; }

/* Dark mode border colors */
.dark .border-gray-200 { border-color: #374151 !important; }
.dark .border-gray-700 { border-color: #e5e7eb !important; }

/* Hover states */
.hover\:bg-gray-300:hover { background-color: #d1d5db !important; }
.hover\:bg-slate-600:hover { background-color: #475569 !important; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8 !important; }
.hover\:bg-opacity-70:hover { background-color: rgba(0, 0, 0, 0.7) !important; }
.hover\:text-gray-300:hover { color: #d1d5db !important; }

/* Dark mode hover states */
.dark .hover\:bg-gray-300:hover { background-color: #4b5563 !important; }
.dark .hover\:bg-slate-600:hover { background-color: #475569 !important; }

/* Transitions */
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !important; }
.transition-all { transition: all 0.15s ease-in-out !important; }
.transition-opacity { transition: opacity 0.15s ease-in-out !important; }

/* Rounded corners */
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-sm { border-radius: 0.125rem !important; }

/* Border */
.border { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }

/* Shadow */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }

/* Z-index */
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }

/* Transform */
.transform { transform: translateZ(0) !important; }
.-translate-x-1\/2 { transform: translateX(-50%) !important; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-20 { opacity: 0.2 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-90 { opacity: 0.9 !important; }

/* Pointer events */
.pointer-events-none { pointer-events: none !important; }

/* Font weight */
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace !important; }

/* Text alignment */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

/* Drop shadow */
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)) !important; }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.1)) !important; }

/* Backdrop blur */
.backdrop-blur-sm { backdrop-filter: blur(4px) !important; }

/* Background opacity */
.bg-opacity-20 { background-color: rgba(16, 185, 129, 0.2) !important; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5) !important; }
.bg-opacity-70 { background-color: rgba(0, 0, 0, 0.7) !important; }

/* Background cover/center */
.bg-cover { background-size: cover !important; }
.bg-center { background-position: center !important; }
.bg-no-repeat { background-repeat: no-repeat !important; }

/* Top/Right/Bottom/Left positioning */
.top-8 { top: 2rem !important; }
.right-8 { right: 2rem !important; }
.bottom-8 { bottom: 2rem !important; }
.left-8 { left: 2rem !important; }
.top-0 { top: 0 !important; }
.left-0 { left: 0 !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }

/* Width/Height specific */
.w-0\.5 { width: 0.125rem !important; }
.w-3 { width: 0.75rem !important; }
.w-4 { width: 1rem !important; }
.h-3 { height: 0.75rem !important; }
.h-8 { height: 2rem !important; }
.h-full { height: 100% !important; }

/* Gap */
.gap-2 { gap: 0.5rem !important; }
.gap-4 { gap: 1rem !important; }

/* Flex wrap */
.flex-wrap { flex-wrap: wrap !important; }

/* Table styles */
.border-collapse { border-collapse: collapse !important; }
.border-b { border-bottom-width: 1px !important; }

/* Animation */
.animate-fade-in { animation: fadeIn 0.5s ease-in-out !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Leading (line height) */
.leading-none { line-height: 1 !important; }

/* Font size utilities for responsive design */
@media (min-width: 768px) {
  .md\:text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
  .md\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
  .md\:text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
  .md\:text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }
  .md\:text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
}

/* Fullscreen class */
.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
}

/* Timer warning animation */
.timer-warning {
  animation: blink 0.5s infinite !important;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.8) !important;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Flash animation for event start */
@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.flash {
  animation: flash 0.3s ease-in-out !important;
}
