/* ===========================================
   PARETOIA - Global Chatwoot Style Overrides
   Inspiración: Dark Mode con acentos verde neón
   =========================================== */

/* === COLORES DE MARCA === */
:root {
  /* Colores primarios - Verde neón como en la referencia */
  --color-woot: #10b981;              /* Verde neón primario */
  --color-woot-dark: #059669;         /* Verde neón oscuro */
  --color-woot-light: #34d399;        /* Verde neón claro */

  /* Backgrounds - Dark mode */
  --bg-primary: #0a0a0a;              /* Negro principal */
  --bg-secondary: #1a1a1a;            /* Gris muy oscuro */
  --bg-card: #1f2937;                 /* Cards y elementos */

  /* Sidebar - Muy oscuro */
  --sidebar-color: #0a0a0a;           /* Negro sidebar */
  --sidebar-active: #10b981;          /* Verde neón activo */
  --sidebar-hover: #1a1a1a;           /* Hover en sidebar */

  /* Botones - Verde neón */
  --button-primary: #10b981;
  --button-primary-hover: #059669;

  /* Texto */
  --text-primary: #ffffff;            /* Blanco */
  --text-secondary: #9ca3af;          /* Gris claro */
  --text-muted: #6b7280;              /* Gris medio */

  /* Tipografía */
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* === FONDO PRINCIPAL - DARK MODE === */
body,
.app-wrapper,
.main-content {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* === SIDEBAR - NEGRO OSCURO === */
.sidebar {
  background-color: var(--sidebar-color) !important;
  border-right: 1px solid #1a1a1a !important;
}

.sidebar-item {
  color: var(--text-secondary) !important;
}

.sidebar-item:hover {
  background-color: var(--sidebar-hover) !important;
}

.sidebar-item--active {
  background-color: var(--bg-secondary) !important;
  color: var(--color-woot) !important;
  border-left: 3px solid var(--color-woot) !important;
}

/* === BARRA DE NAVEGACIÓN SUPERIOR - DARK === */
.header {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid #2d2d2d !important;
}

/* === LISTA DE CONVERSACIONES - DARK CARDS === */
.conversation-item {
  background-color: var(--bg-card) !important;
  border-radius: 8px !important;
  margin-bottom: 4px !important;
  border: 1px solid #2d2d2d !important;
}

.conversation-item:hover {
  background-color: #374151 !important;
}

.conversation-item--active {
  background-color: var(--bg-card) !important;
  border-left: 3px solid var(--color-woot) !important;
}

/* === BURBUJAS DE CHAT - VERDE NEÓN === */
.message--user {
  background-color: var(--color-woot) !important;
  color: #000000 !important;
  font-weight: 500 !important;
}

.message--agent {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid #2d2d2d !important;
}

/* === BOTONES - VERDE NEÓN === */
.button--primary {
  background-color: var(--button-primary) !important;
  color: #000000 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

.button--primary:hover {
  background-color: var(--button-primary-hover) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

/* === COMPONENTES ESPECÍFICOS === */
.inbox-name {
  color: var(--color-woot) !important;
  font-weight: 600 !important;
}

.label {
  border-radius: 4px !important;
  background-color: var(--bg-card) !important;
  border: 1px solid #2d2d2d !important;
}

/* === INPUT FIELDS - DARK === */
.input-field,
input,
textarea {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid #2d2d2d !important;
}

.input-field:focus,
input:focus,
textarea:focus {
  border-color: var(--color-woot) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* === CARDS Y PANELES - DARK === */
.card,
.panel {
  background-color: var(--bg-card) !important;
  border: 1px solid #2d2d2d !important;
  border-radius: 8px !important;
}

/* === SCROLLBARS - DARK CUSTOM === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-woot);
}

/* === BADGES Y CONTADORES - VERDE NEÓN === */
.badge,
.counter {
  background-color: var(--color-woot) !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

/* === LINKS Y ACENTOS === */
a {
  color: var(--color-woot) !important;
}

a:hover {
  color: var(--color-woot-light) !important;
}

/* === LOGO (OPCIONAL) === */
/* Descomentar y actualizar URL si quieres cambiar el logo */
/*
.sidebar-header__logo img {
  content: url('https://tu-cdn.com/logo.png') !important;
  max-height: 40px;
  filter: brightness(1.2);
}
*/

/* === REMOVER BRANDING DE CHATWOOT === */
.branding--link,
.powered-by {
  display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar {
    width: 100% !important;
  }
}

/* === LOGO PARETOIA === */
.login-page .login-page__hero img,
.auth-page .auth-page__hero img,
img[alt="Chatwoot"],
img[src*="logo.svg"],
img[src*="logo_dark.svg"],
.brand-logo img {
  content: url('/brand-assets/paretoia-logo.png') !important;
  max-height: 45px !important;
  object-fit: contain !important;
}

/* Hide the text "chatwoot" next to logo if it appears separately */
.brand-name {
  display: none !important;
}

/* Sidebar logo */
.sidebar .logo-wrapper img,
.sidebar-header img {
  content: url('/brand-assets/paretoia-logo.png') !important;
  max-height: 32px !important;
  object-fit: contain !important;
}
