/* Xalorra Enterprise Design System - WhatsBot Studio */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #ea580c;
  --color-primary-hover: #c2410c;
  --color-bg-canvas: #fafafa;
  --color-surface-card: #ffffff;
  --color-border-neutral: #e5e5e5;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg-canvas);
  color: #0f172a;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Layout Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Dimensions */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-16 { height: 4rem; }
.w-64 { width: 16rem; }
.w-8 { width: 2rem; min-width: 2rem; }
.h-8 { height: 2rem; min-height: 2rem; }
.w-5 { width: 1.25rem; min-width: 1.25rem; max-width: 1.25rem; }
.h-5 { height: 1.25rem; min-height: 1.25rem; max-height: 1.25rem; }
.w-4 { width: 1rem; min-width: 1rem; max-width: 1rem; }
.h-4 { height: 1rem; min-height: 1rem; max-height: 1rem; }
.w-2 { width: 0.5rem; min-width: 0.5rem; }
.h-2 { height: 0.5rem; min-height: 0.5rem; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }

/* SVG Protection */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Positioning & Display */
.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-3 { left: 0.75rem; }
.top-2\.5 { top: 0.625rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Typography */
.font-sans { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.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; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; whitespace: nowrap; }
.whitespace-pre-wrap { whitespace: pre-wrap; }

/* Colors & Backgrounds */
.bg-neutral-50 { background-color: #fafafa; }
.bg-neutral-100 { background-color: #f5f5f5; }
.bg-neutral-200 { background-color: #e5e5e5; }
.bg-neutral-800 { background-color: #262626; }
.bg-neutral-900 { background-color: #171717; }
.bg-neutral-950 { background-color: #0a0a0a; }
.bg-white { background-color: #ffffff; }

.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-50\/40 { background-color: rgba(255, 237, 213, 0.4); }
.bg-orange-600 { background-color: #ea580c; }
.hover\:bg-orange-700:hover { background-color: #c2410c; }
.hover\:bg-orange-100:hover { background-color: #ffedd5; }
.text-orange-700 { color: #c2410c; }

.bg-emerald-950 { background-color: #022c22; }
.text-emerald-300 { color: #6ee7b7; }
.border-emerald-800 { border-color: #065f46; }
.bg-emerald-400 { background-color: #34d399; }
.text-emerald-600 { color: #059669; }

.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-950 { background-color: #4c0519; }
.text-rose-300 { color: #fca5a5; }
.text-rose-400 { color: #f87171; }
.text-rose-700 { color: #be123c; }
.border-rose-200 { border-color: #fecdd3; }
.border-rose-800 { border-color: #9f1239; }
.bg-rose-500 { background-color: #f43f5e; }
.hover\:bg-rose-100:hover { background-color: #ffe4e6; }

.text-white { color: #ffffff; }
.text-neutral-900 { color: #0f172a; }
.text-neutral-800 { color: #1e293b; }
.text-neutral-700 { color: #334155; }
.text-neutral-600 { color: #475569; }
.text-neutral-500 { color: #64748b; }
.text-neutral-400 { color: #94a3b8; }
.text-neutral-300 { color: #cbd5e1; }

/* Borders */
.border { border: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-r { border-right: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-l-2 { border-left: 2px solid; }

.border-neutral-100 { border-color: #f1f5f9; }
.border-neutral-200 { border-color: #e2e8f0; }
.border-neutral-200\/80 { border-color: rgba(226, 232, 240, 0.8); }
.border-neutral-300 { border-color: #cbd5e1; }
.border-neutral-700 { border-color: #334155; }
.border-neutral-800 { border-color: #1e293b; }
.border-orange-200 { border-color: #fed7aa; }
.border-orange-500 { border-color: #f97316; }
.border-orange-600 { border-color: #ea580c; }

.border-dashed { border-style: dashed; }
.border-2 { border-width: 2px; }

/* Rounding */
.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; }

/* Padding & Margin */
.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 { padding-left: 0.25rem; padding-right: 0.25rem; }
.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-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pl-9 { padding-left: 2.25rem; }
.pr-3 { padding-right: 0.75rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Interactive & Forms */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border-style: solid;
}

button {
  cursor: pointer;
  background: transparent;
}

.action-primary {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

.action-primary:hover {
  background-color: var(--color-primary-hover) !important;
}

.nav-tab.active {
  border-left-width: 3px;
  border-left-color: var(--color-primary);
  background-color: rgba(255, 237, 213, 0.4);
  color: #0f172a;
  font-weight: 800;
}

.outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5);
}

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.transition { transition: all 0.15s ease-in-out; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
