/* ==========================================================================
   VEXARO AI AUTONOMOUS WORKSPACE THEME (OFFLINE & CSP FAILSAFE)
   High-Contrast Obsidian Glassmorphism Design System v12.0.0
   ========================================================================== */

:root {
  --vx-obsidian-bg: #040509;
  --vx-surface-0: #060810;
  --vx-surface-1: #0A0D18;
  --vx-surface-2: #0F1322;
  --vx-surface-border: rgba(255, 255, 255, 0.08);
  --vx-surface-border-bright: rgba(255, 255, 255, 0.16);
  --vx-orange: #FF6A00;
  --vx-orange-bright: #FF8A3D;
  --vx-orange-glow: rgba(255, 106, 0, 0.35);
  --vx-emerald: #10B981;
  --vx-amber: #F59E0B;
  --vx-rose: #EF4444;
  --vx-cyan: #06B6D4;
  --vx-purple: #A855F7;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  background-color: var(--vx-obsidian-bg) !important;
  color: #F8FAFC !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ── Typography & Selection ── */
::selection {
  background: var(--vx-orange) !important;
  color: #000000 !important;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* ── SVG Sizing & Strict Containment ── */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}

svg.w-3, .w-3 svg, svg[width="12"] { width: 12px !important; height: 12px !important; max-width: 12px !important; max-height: 12px !important; }
svg.w-3\.5, .w-3\.5 svg, svg[width="14"] { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
svg.w-4, .w-4 svg, svg[width="16"] { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
svg.w-5, .w-5 svg, svg[width="20"] { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
svg.w-6, .w-6 svg, svg[width="24"] { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; }
svg.w-8, .w-8 svg, svg[width="32"] { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; }
svg.w-9, .w-9 svg, svg[width="36"] { width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important; }
svg.w-24, .w-24 svg { width: 96px !important; height: 96px !important; max-width: 96px !important; max-height: 96px !important; }

/* ── Form Controls (No More Plain White HTML Boxes) ── */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  background: var(--vx-surface-0) !important;
  border: 1px solid var(--vx-surface-border-bright) !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--vx-orange) !important;
  box-shadow: 0 0 0 2px var(--vx-orange-glow) !important;
}

/* ── Buttons (No More 1995 Gray HTML Rectangles) ── */
button, .btn {
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

button.bg-\[\#FF6A00\],
.btn-brand,
#btnGenerate,
#cBtnTailorConfirm,
#cBtnLaunchApply {
  background: var(--vx-orange) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 0 16px var(--vx-orange-glow) !important;
}

button.bg-\[\#FF6A00\]:hover,
.btn-brand:hover,
#btnGenerate:hover {
  background: var(--vx-orange-bright) !important;
  transform: translateY(-1px) !important;
}

/* ── Glass Cards & Surfaces ── */
.glass-card,
.bg-black\/60,
.bg-white\/\[0\.03\] {
  background: rgba(10, 13, 24, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid var(--vx-surface-border) !important;
  border-radius: 16px !important;
}

/* ── Core Layout System ── */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.flex-col { flex-direction: column !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }

/* ── Widths & Sizing ── */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.w-8 { width: 32px !important; }
.h-8 { height: 32px !important; }
.w-9 { width: 36px !important; }
.h-9 { height: 36px !important; }
.w-64 { width: 256px !important; }
.h-64 { height: 256px !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.min-h-screen { min-height: 100vh !important; }

/* ── Spacing (Padding, Margin, Gap) ── */
.p-1 { padding: 0.25rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.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-6 > * + * { margin-top: 1.5rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }

/* ── Grid Columns ── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

/* ── Borders & Radii ── */
.border { border: 1px solid var(--vx-surface-border) !important; }
.border-b { border-bottom: 1px solid var(--vx-surface-border) !important; }
.border-t { border-top: 1px solid var(--vx-surface-border) !important; }
.rounded-md { border-radius: 6px !important; }
.rounded-lg { border-radius: 8px !important; }
.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.rounded-full { border-radius: 9999px !important; }

/* ── Colors ── */
.text-white { color: #FFFFFF !important; }
.text-zinc-200 { color: #E2E8F0 !important; }
.text-zinc-300 { color: #CBD5E1 !important; }
.text-zinc-400 { color: #94A3B8 !important; }
.text-zinc-500 { color: #64748B !important; }
.text-emerald-400 { color: #34D399 !important; }
.text-amber-400 { color: #FBBF24 !important; }
.text-rose-400 { color: #F87171 !important; }
.text-\[\#FF6A00\] { color: var(--vx-orange) !important; }
.text-\[\#FF8A3D\] { color: var(--vx-orange-bright) !important; }
.text-\[\#FF9500\] { color: var(--vx-amber) !important; }

/* ── Badges ── */
.bg-emerald-950\/30 { background-color: rgba(6, 78, 59, 0.3) !important; }
.border-emerald-800\/40 { border-color: rgba(6, 95, 70, 0.4) !important; }
.bg-amber-950\/40 { background-color: rgba(120, 53, 15, 0.4) !important; }
.border-amber-800\/40 { border-color: rgba(146, 64, 14, 0.4) !important; }
.bg-rose-950\/20 { background-color: rgba(136, 19, 55, 0.2) !important; }
.border-rose-600\/70 { border-color: rgba(225, 29, 72, 0.7) !important; }

/* ── Sticky Navbars ── */
.sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.z-50 { z-index: 50 !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; }
.backdrop-blur-xl { backdrop-filter: blur(24px) !important; }

/* ── Responsive Rules ── */
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:inline-block { display: inline-block !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:p-6 { padding: 1.5rem !important; }
  .sm\:gap-4 { gap: 1rem !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:p-8 { padding: 2rem !important; }
  .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
}

/* ── Custom Scrollbars ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--vx-surface-0);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vx-orange);
}
