/* Main CSS - Complete Tailwind utilities with fallbacks */

/* Reset and base */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: Arial, sans-serif; background: #f9fafb; }

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

/* Flexbox utilities */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-\[1fr_auto_1fr\] { grid-template-columns: 1fr auto 1fr; }

/* Position utilities */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.right-0 { right: 0; }
.right-1 { right: 0.25rem; }
.right-3 { right: 0.75rem; }
.bottom-0 { bottom: 0; }
.bottom-1 { bottom: 0.25rem; }
.left-0 { left: 0; }

/* Z-index */
.z-\[9999\] { z-index: 9999; }
.z-\[10001\] { z-index: 10001; }
.z-\[10002\] { z-index: 10002; }
.z-50 { z-index: 50; }
.z-\[10000\] { z-index: 10000; }

/* Width utilities */
.w-full { width: 100%; }
.w-\[85\%\] { width: 85%; }
.w-\[90\%\] { width: 90%; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }

/* Height utilities */
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.h-8 { height: 2rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Max width utilities */
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-sm { max-width: 24rem; }
.max-h-\[80vh\] { max-height: 80vh; }

/* Margin utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-6 { margin-left: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.last\:mb-0:last-child { margin-bottom: 0; }

/* Padding utilities */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-24 { padding-right: 6rem; }
.pr-4 { padding-right: 1rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }

/* Background colors */
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-white { background-color: #ffffff; }
.bg-slate-600 { background-color: #475569; }
.bg-slate-500 { background-color: #64748b; }
.bg-red-500 { background-color: #ef4444; }
.bg-orange-500 { background-color: #f97316; }
.bg-orange-600 { background-color: #ea580c; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-500 { background-color: #6b7280; }
.bg-black { background-color: #000000; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-opacity-75 { background-color: rgba(255, 255, 255, 0.75); }
.bg-green-400 { background-color: #4ade80; }
.bg-green-600 { background-color: #16a34a; }
.bg-blue-600 { background-color: #2563eb; }
.bg-transparent { background-color: transparent; }

/* Text colors */
.text-white { color: #ffffff; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-400 { color: #9ca3af; }
.text-gray-900 { color: #111827; }
.text-slate-200 { color: #e2e8f0; }
.text-green-800 { color: #166534; }
.text-green-600 { color: #16a34a; }
.text-blue-600 { color: #2563eb; }
.text-orange-600 { color: #ea580c; }

/* Border utilities */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-0 { border-width: 0; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-orange-600 { border-color: #ea580c; }
.border-green-600 { border-color: #16a34a; }
.border-t-transparent { border-top-color: transparent; }

/* Border radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Font utilities */
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Text size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

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

/* Leading */
.leading-none { line-height: 1; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* Outline */
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* Focus utilities */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #f97316; }
.focus\:ring-orange-500:focus { box-shadow: 0 0 0 2px #f97316; }
.focus\:border-orange-500:focus { border-color: #f97316; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px #f97316; }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #f97316; }

/* Hover utilities */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:bg-orange-500:hover { background-color: #f97316; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-green-600:hover { background-color: #16a34a; }
.hover\:bg-slate-600:hover { background-color: #475569; }
.hover\:border-green-400:hover { border-color: #4ade80; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transitions */
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }
.transition-all { transition: all 150ms; }
.transition-shadow { transition: box-shadow 150ms; }
.transition-transform { transition: transform 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Object fit */
.object-contain { object-fit: contain; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Space utilities */
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }

/* Gap utilities */
.gap-3 { gap: 0.75rem; }

/* Container */
.container { width: 100%; margin-left: auto; margin-right: auto; }

/* Animation */
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Transform */
.scale-1\.02 { transform: scale(1.02); }
.scale-1\.05 { transform: scale(1.05); }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .sm\:mb-4 { margin-bottom: 1rem; }
  .sm\:h-24 { height: 6rem; }
  .sm\:h-48 { height: 12rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:rounded-xl { border-radius: 0.75rem; }
}

@media (min-width: 768px) {
  .md\:w-\[90\%\] { width: 90%; }
  .md\:max-w-2xl { max-width: 42rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:border-r { border-right-width: 1px; border-right-style: solid; }
  .lg\:border-t-0 { border-top-width: 0px; }
  .lg\:border-l { border-left-width: 1px; border-left-style: solid; }
}

/* Additional specific styles for buttons and forms */
button { border: none; cursor: pointer; }
input { border: 1px solid #d1d5db; }
input:focus { outline: none; }
hr { border: 0; border-top: 1px solid #e5e7eb; }

/* Fallback styles for critical elements */
.bg-orange-500, .bg-orange-600 { background-color: #f97316 !important; }
.text-orange-600, .border-orange-600 { color: #ea580c !important; border-color: #ea580c !important; }
.bg-green-600 { background-color: #16a34a !important; }
.border-green-600 { border-color: #16a34a !important; }