/* Local Tailwind fallback used by OZIRIS.
   This keeps the UI styled even when the Tailwind CDN/config fails or the app is opened offline.
   It intentionally implements only the utility classes used by this project. */

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, textarea, input { font: inherit; }
button { cursor: pointer; background: transparent; border: 0; }
button:disabled { cursor: not-allowed; }

.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.min-h-0 { min-height: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.w-72 { width: 18rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-2 { width: .5rem; }
.h-2 { height: .5rem; }
.h-16 { height: 4rem; }
.h-4 { height: 1rem; }
.min-h-\[56px\] { min-height: 56px; }
.max-h-48 { max-height: 12rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-sm { max-width: 24rem; }
.max-w-\[85\%\] { max-width: 85%; }
.max-w-\[220px\] { max-width: 220px; }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.inset-4 { inset: 1rem; }
.-inset-1 { inset: -.25rem; }
.right-4 { right: 1rem; }
.top-4 { top: 1rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

.m-1 { margin: .25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: .25rem; padding-right: .25rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.resize-none { resize: none; }
.scroll-smooth { scroll-behavior: smooth; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.selection\:bg-oziris-500::selection { background: #06B6D4; }
.selection\:text-white::selection { color: #fff; }

.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-br-sm { border-bottom-right-radius: .125rem; }
.rounded-bl-sm { border-bottom-left-radius: .125rem; }
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-dashed { border-style: dashed; }
.border-transparent { border-color: transparent; }
.border-gray-800 { border-color: #1F2937; }
.border-gray-700 { border-color: #374151; }
.border-oziris-500 { border-color: #06B6D4; }
.border-oziris-500\/30 { border-color: rgba(6,182,212,.3); }
.border-blue-400\/30 { border-color: rgba(96,165,250,.3); }
.border-red-500\/40 { border-color: rgba(239,68,68,.4); }

.bg-oziris-900 { background-color: #0B0F19; }
.bg-oziris-900\/80 { background-color: rgba(11,15,25,.8); }
.bg-oziris-800 { background-color: #111827; }
.bg-oziris-500 { background-color: #06B6D4; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-900\/70 { background-color: rgba(17,24,39,.7); }
.bg-gray-800 { background-color: #1F2937; }
.bg-gray-800\/50 { background-color: rgba(31,41,55,.5); }
.bg-gray-800\/60 { background-color: rgba(31,41,55,.6); }
.bg-gray-800\/80 { background-color: rgba(31,41,55,.8); }
.bg-gray-800\/90 { background-color: rgba(31,41,55,.9); }
.bg-blue-600 { background-color: #2563EB; }
.bg-red-950\/90 { background-color: rgba(69,10,10,.9); }
.bg-cyan-700\/40 { background-color: rgba(14,116,144,.4); }
.bg-black\/50 { background-color: rgba(0,0,0,.5); }
.bg-black\/80 { background-color: rgba(0,0,0,.8); }
.bg-gray-500 { background-color: #6B7280; }
.bg-red-500 { background-color: #EF4444; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-oziris-400 { --tw-gradient-from: #22D3EE; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34,211,238,0)); }
.from-oziris-500\/20 { --tw-gradient-from: rgba(6,182,212,.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6,182,212,0)); }
.to-blue-500 { --tw-gradient-to: #3B82F6; }
.to-blue-500\/20 { --tw-gradient-to: rgba(59,130,246,.2); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

.text-transparent { color: transparent; }
.text-white { color: #fff; }
.text-gray-100 { color: #F3F4F6; }
.text-gray-200 { color: #E5E7EB; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-oziris-500 { color: #06B6D4; }
.text-oziris-400 { color: #22D3EE; }
.text-red-100 { color: #FEE2E2; }
.text-red-300 { color: #FCA5A5; }
.text-red-400 { color: #F87171; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-\[10px\] { font-size: 10px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: .05em; }
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: .25; }
.opacity-50 { opacity: .5; }
.opacity-70 { opacity: .7; }
.opacity-100 { opacity: 1; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-\[0_0_15px_rgba\(6\,182\,212\,0\.3\)\] { box-shadow: 0 0 15px rgba(6,182,212,.3); }
.shadow-\[0_0_30px_rgba\(6\,182\,212\,0\.15\)\] { box-shadow: 0 0 30px rgba(6,182,212,.15); }
.shadow-\[0_4px_15px_rgba\(6\,182\,212\,0\.2\)\] { box-shadow: 0 4px 15px rgba(6,182,212,.2); }
.shadow-cyan-500\/20 { box-shadow: 0 10px 15px -3px rgba(6,182,212,.2), 0 4px 6px -4px rgba(6,182,212,.2); }
.blur { filter: blur(8px); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-opacity { transition-property: opacity; }
.transition-all { transition-property: all; }
.transition-transform { transition-property: transform; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.-translate-x-full { transform: translateX(-100%); }
.translate-y-\[-12px\] { transform: translateY(-12px); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-oziris-500:focus { border-color: #06B6D4; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px #06B6D4; }
.focus\:ring-oziris-500:focus { --tw-ring-color: #06B6D4; }
.focus\:ring-0:focus { box-shadow: none; }
.group:focus-within .group-focus-within\:opacity-75 { opacity: .75; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-gray-200 { color: #E5E7EB; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-red-400:hover { color: #F87171; }
.hover\:text-oziris-400:hover { color: #22D3EE; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1F2937; }
.hover\:bg-gray-800\/60:hover { background-color: rgba(31,41,55,.6); }
.hover\:bg-oziris-500:hover { background-color: #06B6D4; }
.hover\:bg-cyan-600:hover { background-color: #0891B2; }
.hover\:border-oziris-500:hover { border-color: #06B6D4; }
.disabled\:opacity-50:disabled { opacity: .5; }
.disabled\:hover\:bg-transparent:disabled:hover { background-color: transparent; }
.disabled\:hover\:text-oziris-500:disabled:hover { color: #06B6D4; }

.border-none { border-style: none; }
.bg-transparent { background-color: transparent; }
textarea:focus, input:focus { outline: none; }

.animate-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

@media (min-width: 640px) {
  .sm\:max-w-3xl { max-width: 48rem; }
}

@media (min-width: 768px) {
  .md\:relative { position: relative; }
  .md\:hidden { display: none !important; }
  .md\:translate-x-0 { transform: translateX(0); }
  .md\:p-8 { padding: 2rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
