/* ==========================================================================
   UKALI SPACE FULL STATIC TAILWIND REPLACEMENT CSS (NO CDN REQUIRED)
   100% Standalone CSS with Fixed Responsive Rules for Sidebar & Layouts
   ========================================================================== */

/* 1. RESET & BASICS */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #1e293b;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #020617 !important;
  color: #f8fafc !important;
  min-height: 100vh;
}

/* 2. LAYOUT & FLEXBOX UTILITIES */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* 3. TRANSFORMS & TRANSLATIONS (WITHOUT DESTRUCTIVE !IMPORTANT) */
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }
.transition-transform { transition: transform 200ms cubic-bezier(0, 0, 0.2, 1); }

/* 4. RESPONSIVE MEDIA QUERIES (DESKTOP OVERRIDES) */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:text-left { text-align: left !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:w-auto { width: auto !important; }
  .sm\:p-6 { padding: 1.5rem !important; }
  .sm\:text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
  .sm\:text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
}

@media (min-width: 768px) {
  /* Desktop Navigation Sidebar Rules */
  .md\:translate-x-0 { transform: translateX(0) !important; }
  .md\:static { position: static !important; }
  .md\:z-auto { z-index: auto !important; }
  .md\:w-56 { width: 14rem !important; }
  .md\:max-w-none { max-width: none !important; }
  .md\:flex-shrink-0 { flex-shrink: 0 !important; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row !important; }

  /* Desktop Grid & Typography */
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:p-8 { padding: 2rem !important; }
  .md\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
}

/* 5. DASHBOARD SIDEBAR & NAVIGATION SPECS */
.w-72 { width: 18rem; }
.w-56 { width: 14rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.max-w-\[85vw\] { max-width: 85vw; }

/* 6. GRID COLUMNS & SPACING */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Vertical Spacing */
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-5 > * + * { margin-top: 1.25rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }

.divide-y > * + * { border-top-width: 1px !important; }
.divide-slate-800\/80 > * + * { border-color: rgba(30, 41, 59, 0.8) !important; }

/* 7. POSITIONING & Z-INDEX */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-4 { top: 1rem; }
.left-0 { left: 0; }
.left-2 { left: 0.5rem; }
.right-4 { right: 1rem; }

.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-\[70\] { z-index: 70; }

/* 8. DIMENSIONS & ASPECT RATIOS */
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.aspect-\[3\/4\] { aspect-ratio: 3 / 4 !important; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9 !important; }

/* 9. PADDING & MARGINS */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.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-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* 10. COLORS & BACKGROUNDS */
.bg-slate-950 { background-color: #020617; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-850 { background-color: #172033; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-700 { background-color: #334155; }

.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-slate-950\/70 { background-color: rgba(2, 6, 23, 0.7); }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-slate-950\/40 { background-color: rgba(2, 6, 23, 0.4); }
.bg-slate-900\/95 { background-color: rgba(15, 23, 42, 0.95); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-800\/70 { background-color: rgba(30, 41, 59, 0.7); }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }

/* Accent Backgrounds */
.bg-violet-600 { background-color: #7c3aed; }
.hover\:bg-violet-500:hover { background-color: #8b5cf6; }
.bg-rose-600 { background-color: #e11d48; }
.hover\:bg-rose-500:hover { background-color: #f43f5e; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-600\/20 { background-color: rgba(5, 150, 105, 0.2); }
.bg-amber-600 { background-color: #d97706; }
.bg-amber-950\/40 { background-color: rgba(69, 26, 3, 0.4); }
.bg-sky-600 { background-color: #0284c7; }

/* Hover States */
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-slate-700:hover { background-color: #334155; }

/* 11. TYPOGRAPHY & TEXT COLORS */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #ffffff; }
.text-slate-100 { color: #f8fafc; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }

.text-rose-400 { color: #fb7185; }
.text-amber-200 { color: #fde68a; }
.text-amber-300 { color: #fcd34d; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-violet-300 { color: #c4b5fd; }
.text-violet-400 { color: #a78bfa; }
.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }

/* 12. BORDERS & SHADOWS */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-r { border-right-width: 1px; }

.border-slate-800 { border-color: #1e293b; }
.border-slate-700 { border-color: #334155; }
.border-slate-600 { border-color: #475569; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-slate-700\/80 { border-color: rgba(51, 65, 85, 0.8); }
.border-emerald-500\/50 { border-color: rgba(16, 185, 129, 0.5); }
.border-amber-800 { border-color: #92400e; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.shadow-violet-900\/40 { box-shadow: 0 10px 20px -5px rgba(109, 40, 217, 0.4); }
.backdrop-blur { backdrop-filter: blur(8px); }
.cursor-not-allowed { cursor: not-allowed; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
