/* ============================================================
   Zeus Sales IA — Design System
   ============================================================ */

:root {
  --zeus-ink: #010310;
  --zeus-bg: #010310;
  --zeus-bg-soft: #070b18;
  --zeus-surface: #0c1224;
  --zeus-surface-2: #121a30;
  --zeus-surface-elevated: #182038;
  --zeus-border: rgba(255, 255, 255, 0.08);
  --zeus-border-strong: rgba(255, 255, 255, 0.14);
  --zeus-text: #f8fafc;
  --zeus-text-soft: #cbd5e1;
  --zeus-muted: #94a3b8;
  --zeus-primary: #498cfd;
  --zeus-primary-hover: #3a7ae8;
  --zeus-purple: #5c4dfd;
  --zeus-cyan: #2fbcf6;
  --zeus-success: #10b981;
  --zeus-danger: #ef4444;
  --zeus-gradient: linear-gradient(90deg, #5c4dfd 0%, #498cfd 50%, #2fbcf6 100%);
  --zeus-gradient-vertical: linear-gradient(135deg, #5c4dfd 0%, #498cfd 45%, #2fbcf6 100%);
  --zeus-gradient-soft: linear-gradient(135deg, rgba(92, 77, 253, 0.18) 0%, rgba(73, 140, 253, 0.12) 50%, rgba(47, 188, 246, 0.1) 100%);
  --zeus-shadow-sm: 0 4px 24px rgba(1, 3, 16, 0.35);
  --zeus-shadow-md: 0 16px 48px rgba(1, 3, 16, 0.4);
  --zeus-shadow-glow: 0 0 0 1px rgba(73, 140, 253, 0.3), 0 8px 32px rgba(92, 77, 253, 0.2);
  --zeus-radius: 14px;
  --zeus-radius-sm: 10px;
  --zeus-sidebar: 268px;
  --zeus-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --zeus-font-display: "Outfit", var(--zeus-font);
  --zeus-page-bg: #f4f6fb;
  --zeus-page-bg-gradient: radial-gradient(ellipse 70% 50% at 0% 0%, rgba(92, 77, 253, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(47, 188, 246, 0.07), transparent 50%),
    linear-gradient(180deg, #f8f9fd 0%, #eef1f8 100%);
}

/* ---- Base ---- */
body.zeus-brand {
  font-family: var(--zeus-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.zeus-brand h1,
body.zeus-brand h2,
body.zeus-brand h3,
body.zeus-brand h4,
body.zeus-brand .zeus-display {
  font-family: var(--zeus-font-display);
  letter-spacing: -0.02em;
}

body.zeus-brand .backDashboard {
  background: var(--zeus-page-bg-gradient) !important;
  min-height: 100vh;
}

body.zeus-brand .borderDashboard {
  border-color: rgba(15, 20, 32, 0.08) !important;
}

/* ---- Buttons & accents (override dynamic color) ---- */
body.zeus-brand .backColor,
body.zeus-brand .btn-default.backColor {
  background: var(--zeus-gradient) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(73, 140, 253, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.zeus-brand .backColor:hover,
body.zeus-brand .btn-default.backColor:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(92, 77, 253, 0.35);
}

body.zeus-brand .textColor {
  color: var(--zeus-primary) !important;
}

body.zeus-brand .form-check-input:checked {
  background-color: var(--zeus-primary) !important;
  border-color: var(--zeus-primary) !important;
}

body.zeus-brand .page-item.active .page-link {
  background: var(--zeus-gradient) !important;
  border-color: transparent !important;
}

body.zeus-brand .page-link {
  color: var(--zeus-primary) !important;
}

/* ---- Sidebar ---- */
body.zeus-brand #sidebar-wrapper {
  width: var(--zeus-sidebar);
  background: var(--zeus-bg) !important;
  border-right: 1px solid var(--zeus-border);
  box-shadow: var(--zeus-shadow-sm);
  overflow-x: hidden;
  overflow-y: auto;
}

body.zeus-brand #sidebar-wrapper.collapsed {
  width: 88px;
}

body.zeus-brand #sidebar-wrapper .sidebar-heading {
  background: transparent !important;
  color: var(--zeus-text) !important;
  padding: 1.35rem 1rem 1rem;
  font-size: 0;
  min-width: auto;
}

body.zeus-brand .zeus-brand-link {
  display: block;
  text-decoration: none !important;
}

body.zeus-brand .zeus-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.25rem;
}

body.zeus-brand .zeus-brand-lockup .zeus-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

body.zeus-brand .zeus-brand-lockup .zeus-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

body.zeus-brand .zeus-brand-lockup .zeus-brand-name {
  font-family: var(--zeus-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

body.zeus-brand .zeus-brand-lockup .zeus-brand-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--zeus-cyan);
  margin-top: 3px;
}

body.zeus-brand .zeus-sidebar-logo {
  display: none;
}

body.zeus-brand .zeus-sidebar-icon {
  width: 40px;
  height: auto;
  display: none;
  margin: 0 auto;
}

body.zeus-brand #sidebar-wrapper.collapsed .zeus-brand-lockup {
  display: none;
}

body.zeus-brand #sidebar-wrapper.collapsed .zeus-sidebar-icon {
  display: block;
}

body.zeus-brand #sidebar-wrapper hr {
  border-color: var(--zeus-border) !important;
  opacity: 1;
  margin: 0 1rem;
}

body.zeus-brand #sidebar-wrapper .list-group-item {
  background: transparent !important;
  border: 0 !important;
  padding: 0.35rem 0.5rem;
  margin: 0.12rem 0.45rem;
  border-radius: var(--zeus-radius-sm) !important;
  transition: background 0.15s ease;
  overflow: hidden;
}

body.zeus-brand #sidebar-wrapper .zeus-nav-item-inner {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

body.zeus-brand #sidebar-wrapper .list-group-item a.zeus-nav-item-link {
  color: var(--zeus-text-soft) !important;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.35rem;
  min-height: 2.1rem;
}

body.zeus-brand #sidebar-wrapper .list-group-item a.zeus-nav-item-link .menu-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.zeus-brand #sidebar-wrapper .list-group-item .zeus-sidebar-admin-tools {
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  background: rgba(18, 26, 48, 0.98) !important;
  border-color: var(--zeus-border) !important;
  padding: 0 1px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  max-width: 72px;
}

body.zeus-brand #sidebar-wrapper .list-group-item:hover .zeus-sidebar-admin-tools,
body.zeus-brand #sidebar-wrapper .list-group-item:focus-within .zeus-sidebar-admin-tools {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.zeus-brand #sidebar-wrapper .list-group-item .zeus-sidebar-admin-tools .btn,
body.zeus-brand #sidebar-wrapper .list-group-item .zeus-sidebar-admin-tools .handle {
  color: var(--zeus-muted) !important;
  font-size: 0.7rem;
}

body.zeus-brand #sidebar-wrapper .list-group-item .zeus-sidebar-admin-tools .btn:hover,
body.zeus-brand #sidebar-wrapper .list-group-item .zeus-sidebar-admin-tools .handle:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.zeus-brand #sidebar-wrapper .list-group-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.zeus-brand #sidebar-wrapper .list-group-item.active-route,
body.zeus-brand #sidebar-wrapper .list-group-item:has(a.active) {
  background: var(--zeus-gradient-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(73, 140, 253, 0.25);
}

body.zeus-brand #sidebar-wrapper .list-group-item i.textColor {
  color: var(--zeus-cyan) !important;
  width: 1.35rem;
  text-align: center;
}

body.zeus-brand #sidebar-wrapper .btnPages {
  background: var(--zeus-surface-2) !important;
  border-color: var(--zeus-border) !important;
}

body.zeus-brand #sidebar-wrapper .myPage.btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--zeus-text-soft) !important;
  border-color: var(--zeus-border) !important;
  font-weight: 600;
}

body.zeus-brand #sidebar-wrapper .myPage.btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* ---- Top nav ---- */
body.zeus-brand .navbar.border-bottom {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 20, 32, 0.06) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.zeus-brand #menu-toggle {
  background: #fff !important;
  border: 1px solid rgba(15, 20, 32, 0.08) !important;
  border-radius: var(--zeus-radius-sm) !important;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s ease;
}

body.zeus-brand #menu-toggle:hover {
  box-shadow: var(--zeus-shadow-glow);
}

body.zeus-brand .navbar a {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--zeus-surface) !important;
}

body.zeus-brand .zeus-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--zeus-gradient-soft);
  border: 1px solid rgba(73, 140, 253, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zeus-purple);
  text-transform: capitalize;
}

/* ---- Cards & panels ---- */
body.zeus-brand .card {
  border: 1px solid rgba(15, 20, 32, 0.06) !important;
  border-radius: var(--zeus-radius) !important;
  box-shadow: 0 2px 12px rgba(15, 20, 32, 0.04);
}

body.zeus-brand .card.shadow,
body.zeus-brand .shadow {
  box-shadow: var(--zeus-shadow-sm) !important;
}

body.zeus-brand .form-control,
body.zeus-brand .form-select {
  border: 1px solid rgba(15, 20, 32, 0.1);
  border-radius: var(--zeus-radius-sm) !important;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.zeus-brand .form-control:focus,
body.zeus-brand .form-select:focus {
  border-color: var(--zeus-primary);
  box-shadow: 0 0 0 3px rgba(73, 140, 253, 0.15);
}

body.zeus-brand .modal-content {
  border-radius: var(--zeus-radius) !important;
  border: 0;
  box-shadow: var(--zeus-shadow-md);
}

/* ---- Login ---- */
.zeus-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--zeus-ink);
}

@media (max-width: 991px) {
  .zeus-login-shell {
    grid-template-columns: 1fr;
  }

  .zeus-login-hero {
    min-height: 220px !important;
    padding: 2rem 1.5rem !important;
  }
}

.zeus-login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
  background: var(--zeus-bg);
}

.zeus-login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 15% 15%, rgba(92, 77, 253, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(47, 188, 246, 0.22), transparent 50%);
  pointer-events: none;
}

.zeus-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.zeus-login-hero-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.zeus-login-hero .zeus-hero-logo {
  width: min(100%, 300px);
  height: auto;
  margin-bottom: 2rem;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(92, 77, 253, 0.35));
}

.zeus-login-hero h1 {
  font-family: var(--zeus-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--zeus-text-soft);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.zeus-login-hero h1 span {
  background: var(--zeus-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.zeus-login-hero p {
  color: var(--zeus-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.zeus-login-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.zeus-login-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.zeus-login-stat strong {
  font-family: var(--zeus-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--zeus-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zeus-login-stat span {
  font-size: 0.75rem;
  color: var(--zeus-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.zeus-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--zeus-page-bg-gradient);
}

.zeus-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: calc(var(--zeus-radius) + 4px);
  padding: 2.25rem 2rem;
  box-shadow: var(--zeus-shadow-md);
}

.zeus-login-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.zeus-login-card-header img {
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.zeus-login-card-header p {
  margin: 0;
  color: var(--zeus-muted);
  font-size: 0.875rem;
}

.zeus-login-card label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.zeus-login-card .input-group-text {
  background: #f8fafc;
  border-color: rgba(15, 20, 32, 0.1);
}

.zeus-login-card hr {
  display: none;
}

/* ---- Chat module ---- */
body.zeus-brand.zeus-chat-page {
  overflow: hidden;
  height: 100%;
}

body.zeus-brand.zeus-chat-page #wrapper {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body.zeus-brand.zeus-chat-page #page-content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 100vh;
  background: var(--zeus-bg);
}

body.zeus-brand.zeus-chat-page #page-content-wrapper > .navbar {
  display: none;
}

body.zeus-brand.zeus-chat-page #page-content-wrapper .container-fluid.p-0 {
  flex: 1;
  min-height: 0;
  height: auto !important;
  overflow: hidden;
}

body.zeus-brand.zeus-chat-page .backDashboard {
  min-height: 0 !important;
}

body.zeus-brand.zeus-chat-page .main-container {
  height: 100% !important;
}

body.zeus-brand.zeus-chat-page .chat-header {
  flex-shrink: 0;
}

body.zeus-brand .chat-header {
  background: linear-gradient(90deg, var(--zeus-bg) 0%, var(--zeus-surface-2) 100%) !important;
  border-bottom: 1px solid var(--zeus-border);
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 0.75rem;
}

body.zeus-brand .chat-header .chat-header-left {
  min-width: 0;
}

body.zeus-brand .chat-header .zeus-chat-menu-btn,
body.zeus-brand .chat-header #menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f8fafc !important;
  flex-shrink: 0;
  padding: 0;
  box-shadow: none !important;
}

body.zeus-brand .chat-header .zeus-chat-menu-btn i,
body.zeus-brand .chat-header #menu-toggle i {
  color: #f8fafc !important;
  font-size: 1.35rem;
  line-height: 1;
}

body.zeus-brand .chat-header .zeus-chat-menu-btn:hover,
body.zeus-brand .chat-header #menu-toggle:hover {
  background: rgba(73, 140, 253, 0.35) !important;
  border-color: rgba(73, 140, 253, 0.5) !important;
  box-shadow: 0 0 12px rgba(73, 140, 253, 0.25) !important;
}

body.zeus-brand .chat-header .bot-name {
  background: transparent !important;
  padding: 0 !important;
}

body.zeus-brand .chat-header .text-center {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.zeus-brand .chat-header .d-flex.justify-content-end {
  gap: 0.15rem;
  flex-shrink: 0;
}

body.zeus-brand .chat-header .d-flex.justify-content-end .btn {
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease;
}

body.zeus-brand .chat-header .d-flex.justify-content-end .btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.zeus-brand .chat-footer button.send,
body.zeus-brand .chat-recording-send {
  background: var(--zeus-primary) !important;
}

body.zeus-brand .chat-footer button.send:hover,
body.zeus-brand .chat-recording-send:hover {
  background: var(--zeus-primary-hover) !important;
}

body.zeus-brand .contact-list {
  background: #f7f8fc;
  border-left: 1px solid rgba(1, 3, 16, 0.08);
}

body.zeus-brand .contact-item:hover {
  background-color: rgba(73, 140, 253, 0.08) !important;
}

/* ---- Conversaciones module ---- */
body.zeus-brand .conv-page {
  --conv-accent: var(--zeus-primary);
  --conv-gold: var(--zeus-cyan);
}

body.zeus-brand .conv-page .btn-conv-primary {
  background: var(--zeus-gradient) !important;
  border: 0 !important;
  box-shadow: 0 4px 16px rgba(73, 140, 253, 0.25);
}

body.zeus-brand .conv-page .conv-hero {
  border: 1px solid rgba(15, 20, 32, 0.06);
  box-shadow: var(--zeus-shadow-sm);
}

body.zeus-brand .conv-page .conv-eyebrow {
  color: var(--zeus-primary);
}

/* ---- Scrollbar (webkit) ---- */
body.zeus-brand ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.zeus-brand ::-webkit-scrollbar-thumb {
  background: rgba(15, 20, 32, 0.2);
  border-radius: 999px;
}

body.zeus-brand ::-webkit-scrollbar-track {
  background: transparent;
}
