/* ==============================================================================
   TENETO DESK — Chatwoot CE custom skin
   Palette: Charcoal (#0F172A), Electric Blue (#2563EB), Cyan (#06B6D4), Mint (#10B981)
   Tuned for current CE dashboard (aside.bg-n-background / woot / n-* tokens)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-primary: #2563EB;
  --brand-primary-hover: #1D4ED8;
  --brand-primary-light: #EFF6FF;
  --teneto-cyan: #06B6D4;
  --teneto-green: #10B981;
  --teneto-sidebar-bg: #0F172A;
  --teneto-sidebar-header: #0B1120;
  --teneto-sidebar-active: #1E293B;
  --teneto-sidebar-border: #1E293B;
  --teneto-sidebar-text: #F8FAFC;
  --teneto-sidebar-muted: #94A3B8;

  /* Map Chatwoot woot / blue scale toward Teneto primary */
  --b-50: #EFF6FF;
  --b-100: #DBEAFE;
  --b-200: #BFDBFE;
  --b-300: #93C5FD;
  --b-400: #60A5FA;
  --b-500: #2563EB;
  --b-600: #1D4ED8;
  --b-700: #1E40AF;
  --b-800: #1E3A8A;
  --b-900: #172554;

  --font-family-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, button, input, textarea, select {
  font-family: var(--font-family-body) !important;
}

h1, h2, h3, .brand-text, .logo-text {
  font-family: var(--font-family-display) !important;
}

/* ---- Dark left sidebar (Chatwoot CE) ---- */
aside.bg-n-background.fixed,
aside.bg-n-background.flex.flex-col {
  background-color: var(--teneto-sidebar-bg) !important;
  border-color: var(--teneto-sidebar-border) !important;
  color: var(--teneto-sidebar-text) !important;
}

aside.bg-n-background a,
aside.bg-n-background button,
aside.bg-n-background span,
aside.bg-n-background .text-n-slate-11,
aside.bg-n-background .text-n-slate-12,
aside.bg-n-background .text-slate-11,
aside.bg-n-background .text-slate-12 {
  color: var(--teneto-sidebar-muted) !important;
}

aside.bg-n-background a:hover,
aside.bg-n-background button:hover {
  color: #FFFFFF !important;
}

aside.bg-n-background a[aria-current="page"],
aside.bg-n-background a.router-link-active,
aside.bg-n-background a.router-link-exact-active {
  background-color: var(--teneto-sidebar-active) !important;
  color: #FFFFFF !important;
  border-left: 3px solid var(--brand-primary) !important;
}

aside.bg-n-background .border-n-weak,
aside.bg-n-background [class*="border-n-"] {
  border-color: var(--teneto-sidebar-border) !important;
}

aside.bg-n-background nav {
  color: var(--teneto-sidebar-muted);
}

/* Sidebar search / account header strip */
aside.bg-n-background > div:first-child,
aside.bg-n-background .bg-n-solid-1,
aside.bg-n-background .bg-n-alpha-1 {
  background-color: var(--teneto-sidebar-header) !important;
}

/* Profile / availability submenu (bottom-left popover) */
aside .n-dropdown-body,
.absolute.bottom-12 .n-dropdown-body {
  background-color: var(--teneto-sidebar-bg) !important;
  border-color: var(--teneto-sidebar-border) !important;
  color: var(--teneto-sidebar-text) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.55) !important;
}

aside .n-dropdown-body .n-dropdown-item,
.absolute.bottom-12 .n-dropdown-body .n-dropdown-item {
  color: var(--teneto-sidebar-muted) !important;
}

aside .n-dropdown-body .n-dropdown-item:hover,
.absolute.bottom-12 .n-dropdown-body .n-dropdown-item:hover {
  background-color: var(--teneto-sidebar-active) !important;
  color: #FFFFFF !important;
}

aside .n-dropdown-body button,
aside .n-dropdown-body a,
aside .n-dropdown-body span,
aside .n-dropdown-body label,
.absolute.bottom-12 .n-dropdown-body button,
.absolute.bottom-12 .n-dropdown-body a,
.absolute.bottom-12 .n-dropdown-body span,
.absolute.bottom-12 .n-dropdown-body label {
  color: inherit;
}

/* Nested cards inside profile menu (availability / toggles) */
aside .n-dropdown-body .bg-n-background,
aside .n-dropdown-body .bg-n-solid-1,
aside .n-dropdown-body .bg-n-alpha-3,
aside .n-dropdown-body .bg-white,
.absolute.bottom-12 .n-dropdown-body .bg-n-background,
.absolute.bottom-12 .n-dropdown-body .bg-n-solid-1,
.absolute.bottom-12 .n-dropdown-body .bg-n-alpha-3,
.absolute.bottom-12 .n-dropdown-body .bg-white {
  background-color: var(--teneto-sidebar-active) !important;
  border-color: var(--teneto-sidebar-border) !important;
  color: var(--teneto-sidebar-text) !important;
}

aside .n-dropdown-body .border-n-weak,
.absolute.bottom-12 .n-dropdown-body .border-n-weak {
  border-color: var(--teneto-sidebar-border) !important;
}

/* Conversation nested submenu (channels / labels under Conversations) */
aside.bg-n-background .text-n-slate-11,
aside.bg-n-background .text-n-slate-12 {
  color: var(--teneto-sidebar-muted) !important;
}

/* ---- Primary actions ---- */
button.bg-woot-500,
button.bg-n-brand,
a.bg-woot-500,
.bg-woot-500 {
  background-color: var(--brand-primary) !important;
}

button.bg-woot-500:hover,
button.bg-n-brand:hover,
.bg-woot-500:hover {
  background-color: var(--brand-primary-hover) !important;
}

.text-woot-500,
.text-n-brand {
  color: var(--brand-primary) !important;
}

.border-woot-500,
.border-n-brand {
  border-color: var(--brand-primary) !important;
}

/* Conversation list selection */
.bg-woot-25,
.bg-n-brand\/10,
[class*="bg-woot-25"] {
  background-color: var(--brand-primary-light) !important;
}

/* Tabs / active underline */
.border-b-woot-500,
.border-b-n-brand {
  border-bottom-color: var(--brand-primary) !important;
}

/* Status pills */
.badge--bot,
[data-badge="bot"] {
  background-color: #ECFEFF !important;
  color: var(--teneto-cyan) !important;
}

.badge--resolved,
[data-badge="resolved"] {
  background-color: #ECFDF5 !important;
  color: var(--teneto-green) !important;
}
