@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --logo-url: url('/logo_white.png');
  --bg-active-tab: #e6e6e6;
  --color-active-tab: #16151d;
  --font-sans: 'Open Sans', sans-serif;
  --font-title: 'Grandir', 'Outfit', sans-serif;
  
  /* Color Palette (Luxury PANTONE Earthy & Metallic Theme) */
  --bg-base: #16151d;               /* PANTONE 20-0195 TPM Midnight Sky */
  --bg-surface: rgba(45, 41, 38, 0.6); /* PANTONE Black C Translucent */
  --bg-surface-solid: #2d2926;      /* PANTONE Black C Solid */
  --border-color: rgba(136, 135, 137, 0.25); /* PANTONE Chrome Translucent */
  --border-color-focus: #a17652;    /* PANTONE 20-0029 TPM Bronze Medal */
  
  --text-primary: #f1f0ec;          /* PANTONE 11-4201 TPG Cloud Dancer */
  --text-secondary: #d0c5b1;        /* PANTONE 13-0607 TCX Fog */
  --text-muted: #888789;            /* PANTONE Chrome */
  
  --primary: #a17652;               /* PANTONE 20-0029 TPM Bronze Medal */
  --primary-hover: #b38763;
  --primary-glow: rgba(161, 118, 82, 0.15);
  
  --success: #5c8f61;               /* Muted Sage Green */
  --success-glow: rgba(92, 143, 97, 0.15);
  
  --warning: #d89f5a;               /* Muted Ochre */
  --warning-glow: rgba(216, 159, 90, 0.15);
  
  --danger: #b0574f;                /* Muted Terracotta */
  --danger-glow: rgba(176, 87, 79, 0.15);
  
  --info: #1f2c43;                  /* PANTONE 19-4111 TCX Pageant Blue */
  --info-glow: rgba(31, 44, 67, 0.2);
  
  /* Glassmorphism details */
  --backdrop-blur: 16px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Centralized component background variables */
  --bg-input: rgba(22, 21, 29, 0.5); /* Midnight Sky */
  --bg-navbar: rgba(22, 21, 29, 0.4);
  --bg-nav-tabs: rgba(22, 21, 29, 0.6);
  --bg-hover-subtle: rgba(59, 61, 63, 0.4); /* Caviar */
  --bg-panel-subtle: rgba(22, 21, 29, 0.3);
  --bg-card: rgba(45, 41, 38, 0.6); /* Black C */
  --gradient-color-1: rgba(31, 44, 67, 0.35); /* Pageant Blue */
  --gradient-color-2: rgba(75, 60, 51, 0.25);  /* Demitasse */
  --bg-chat-item-hover: rgba(59, 61, 63, 0.3); /* Caviar */
  --bg-chat-item-active: rgba(161, 118, 82, 0.15); /* Bronze Medal */
  --bg-chat-area: rgba(22, 21, 29, 0.2); /* Midnight Sky */

  /* Login Custom Colors (Pantone/High-Contrast Theme) */
  --bg-login-body: #171415;
  --bg-login-card: #0c0806;
  --color-login-text: #e6e6e6;
  --color-login-border: #e6e6e6;
  --bg-login-btn: #e6e6e6;
  --color-login-btn: #0c0806;

  /* Kanban Lead Card Custom styles */
  --bg-lead-card: #000000;
  --border-lead-card: none;
  --shadow-lead-card: 0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lead-card-hover: 0 20px 48px rgba(0, 0, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.45);
}

:root.light-theme {
  --logo-url: url('/logo_black.png');
  --bg-active-tab: #2d2926;
  --color-active-tab: #f1f0ec;
  --bg-base: #f1f0ec;               /* PANTONE 11-4201 TPG Cloud Dancer */
  --bg-surface: rgba(208, 197, 177, 0.65); /* PANTONE 13-0607 TCX Fog Translucent */
  --bg-surface-solid: #d0c5b1;      /* PANTONE 13-0607 TCX Fog Solid */
  --border-color: rgba(59, 61, 63, 0.25); /* PANTONE 19-4006 TPG Caviar Translucent */
  --border-color-focus: #a17652;    /* PANTONE 20-0029 TPM Bronze Medal */
  
  --text-primary: #2d2926;          /* PANTONE Black C */
  --text-secondary: #3b3d3f;        /* PANTONE 19-4006 TPG Caviar */
  --text-muted: #888789;            /* PANTONE Chrome */
  
  --primary: #a17652;               /* PANTONE 20-0029 TPM Bronze Medal */
  --primary-hover: #8d603d;
  --primary-glow: rgba(161, 118, 82, 0.12);
  
  --success: #5c8f61;               /* Muted Sage Green */
  --success-glow: rgba(92, 143, 97, 0.12);
  
  --warning: #c8863f;
  --warning-glow: rgba(200, 134, 63, 0.12);
  
  --danger: #b0574f;
  --danger-glow: rgba(176, 87, 79, 0.12);
  
  --bg-input: rgba(255, 255, 255, 0.85);
  --bg-navbar: rgba(241, 240, 236, 0.6); /* Cloud Dancer */
  --bg-nav-tabs: rgba(208, 197, 177, 0.7); /* Fog */
  --bg-hover-subtle: rgba(208, 197, 177, 0.5);
  --bg-panel-subtle: rgba(208, 197, 177, 0.5);
  --bg-card: rgba(255, 255, 255, 0.6);
  --gradient-color-1: rgba(208, 197, 177, 0.4); /* Fog */
  --gradient-color-2: rgba(241, 240, 236, 0.5); /* Cloud Dancer */
  --bg-chat-item-hover: rgba(208, 197, 177, 0.4); /* Fog */
  --bg-chat-item-active: rgba(161, 118, 82, 0.12); /* Bronze Medal */
  --bg-chat-area: rgba(241, 240, 236, 0.4); /* Cloud Dancer */
  
  --glass-shadow: 0 8px 32px 0 rgba(161, 118, 82, 0.06);

  /* Login Custom Colors (Pantone/High-Contrast Theme) */
  --bg-login-body: #cdccc7;
  --bg-login-card: #e6e6e6;
  --color-login-text: #0c0806;
  --color-login-border: #0c0806;
  --bg-login-btn: #0c0806;
  --color-login-btn: #ffffff;

  /* Kanban Lead Card Custom styles */
  --bg-lead-card: #e6e6e6;
  --border-lead-card: none;
  --shadow-lead-card: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 8px rgba(0, 0, 0, 0.06);
  --shadow-lead-card-hover: 0 16px 40px rgba(0, 0, 0, 0.18), 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, var(--gradient-color-1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--gradient-color-2) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsla(220, 20%, 30%, 0.5);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: hsla(220, 20%, 40%, 0.7);
}

/* ----------------------------------------------------
   TELA DE LOGIN
   ---------------------------------------------------- */
.login-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
  width: 100%;
  background: var(--bg-login-body);
  padding: 0;
}

@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
  }
  .login-left {
    display: none;
  }
}

.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 60px;
  background: var(--bg-login-body);
  position: relative;
}

.login-brand {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-login-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

.login-big-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-img {
  width: 280px;
  height: 280px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.25s ease;
  animation: slow-spin 20s linear infinite;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-login-body);
}

.login-card {
  position: relative;
  background: var(--bg-login-card);
  border: none;
  border-radius: 28px;
  padding: 55px 45px 120px 45px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--color-login-text);
  animation: fadeIn 0.6s var(--transition-normal);
}

.login-title {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--color-login-text);
  text-transform: uppercase;
}

.label-login {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-login-text);
  font-family: var(--font-sans);
}

.input-underline {
  width: 100%;
  padding: 10px 0;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--color-login-border) !important;
  border-radius: 0 !important;
  color: var(--color-login-text) !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-underline:focus {
  outline: none !important;
  border-bottom-color: var(--primary) !important;
  box-shadow: none !important;
}

.btn-login-circle {
  position: absolute;
  bottom: 40px;
  right: 45px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-login-btn);
  color: var(--color-login-btn);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-login-circle:hover {
  transform: scale(1.05);
}

.btn-login-circle:active {
  transform: scale(0.95);
}

.btn-login-circle:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.support-link {
  position: absolute;
  bottom: 58px;
  left: 45px;
  font-size: 0.85rem;
  color: var(--color-login-text);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: var(--font-sans);
  font-weight: 500;
}

.support-link:hover {
  opacity: 1;
}

.error-msg {
  background: var(--danger-glow);
  border: 1px solid var(--danger);
  color: #b0574f;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.85rem;
  text-align: left;
  display: none;
  animation: shake 0.3s ease;
  font-family: var(--font-sans);
}

/* ----------------------------------------------------
   LAYOUT DO PAINEL PRINCIPAL (DASHBOARD)
   ---------------------------------------------------- */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-navbar);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  position: relative;
}

.navbar-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}



.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 32px;
  width: 32px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.25s ease;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, hsl(250, 75%, 68%), hsl(196, 80%, 58%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-tabs {
  display: flex;
  background: var(--bg-nav-tabs);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 34px; /* Fully rounded capsule shape */
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .nav-tabs {
    position: static;
    transform: none;
    margin: 8px auto 0 auto;
  }
}

.nav-tab-btn {
  padding: 8px 24px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px; /* Fully rounded pill shape for active button */
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-tab-btn.active {
  background: var(--bg-active-tab);
  color: var(--color-active-tab);
}

.nav-tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-hover-subtle);
}

/* Container de perfil e dropdown */
.nav-profile-container {
  position: relative;
  display: inline-block;
  z-index: 200;
}

.nav-profile-trigger {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.nav-profile-trigger:hover {
  transform: scale(1.05);
}

.nav-profile-trigger:hover i {
  color: var(--primary) !important;
}

.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: modalScaleIn var(--transition-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
}

.nav-profile-dropdown.active {
  display: flex !important;
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dropdown-logo-img {
  height: 36px;
  width: 36px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.25s ease;
  order: 2; /* Logo sits at the top right in the dropdown */
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  order: 1; /* Text is on the left */
}

.user-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: lowercase;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  width: 100%;
}

.nav-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-dropdown-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-list li a:hover {
  background: var(--bg-hover-subtle);
  color: var(--text-primary);
}

.nav-dropdown-list li a i {
  font-size: 1.2rem;
  color: var(--primary);
}

.nav-dropdown-list li.danger-item a:hover {
  background: var(--danger-glow);
  color: var(--danger);
}

.nav-dropdown-list li.danger-item a i {
  color: var(--danger);
}

/* Painel de Conteúdo */
.content-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 73px);
}

.view-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.view-section.active {
  display: flex;
  opacity: 1;
}

/* ----------------------------------------------------
   TELA KANBAN
   ---------------------------------------------------- */
.kanban-view {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
}

#viewKanban .summary-card {
  transition: all 0.3s ease;
}

#viewKanban .summary-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-focus);
  box-shadow: 0 12px 40px var(--primary-glow);
}

.summary-info h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.summary-info p {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.summary-icon.total { background: var(--primary-glow); color: var(--primary); }
.summary-icon.waiting { background: var(--warning-glow); color: var(--warning); }
.summary-icon.active-chat { background: var(--success-glow); color: var(--success); }
.summary-icon.finished { background: var(--info-glow); color: var(--info); }

.kanban-board {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 480px;
  align-items: start;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 12px;
}

.kanban-column {
  background: var(--bg-panel-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  flex: 1;
  min-width: 280px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.column-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-badge {
  background: hsla(220, 20%, 20%, 0.6);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.column-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 150px;
  flex: 1;
  padding-bottom: 16px;
}

/* Kanban Cards */
.lead-card {
  background: var(--bg-lead-card);
  border: var(--border-lead-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lead-card);
  cursor: grab;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lead-card-hover);
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.lead-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lead-card-body {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.lead-data-item {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
  text-align: left;
  word-wrap: break-word;
  word-break: break-word;
}

.lead-data-label {
  color: var(--text-muted);
  font-weight: 500;
}

.lead-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid hsla(220, 20%, 25%, 0.2);
}

.lead-badge-owner {
  background: var(--primary-glow);
  color: hsl(250, 75%, 75%);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.lead-btn-chat {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid hsla(250, 75%, 63%, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.lead-btn-chat:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ----------------------------------------------------
   TELA CHAT / ATENDIMENTO MULTIATENDENTE
   ---------------------------------------------------- */
.chat-view {
  display: grid;
  grid-template-columns: 260px 1fr 260px; /* Perfectly symmetrical column widths */
  height: 100%;
  width: 100%;
  flex: 1;
  transition: grid-template-columns var(--transition-normal);
}

.chat-view.details-hidden {
  grid-template-columns: 260px 1fr 0px !important;
}

.chat-view.details-hidden .chat-details-panel {
  display: none !important;
}

/* Responsive grid widths to keep layouts balanced and push data "mais pra direita" on wide monitors */
@media (min-width: 1200px) {
  .chat-view {
    grid-template-columns: 280px 1fr 280px;
  }
  .chat-view.details-hidden {
    grid-template-columns: 280px 1fr 0px !important;
  }
}

@media (min-width: 1440px) {
  .chat-view {
    grid-template-columns: 310px 1fr 310px;
  }
  .chat-view.details-hidden {
    grid-template-columns: 310px 1fr 0px !important;
  }
}

@media (min-width: 1680px) {
  .chat-view {
    grid-template-columns: 340px 1fr 340px; /* Perfectly balanced large screen grids */
  }
  .chat-view.details-hidden {
    grid-template-columns: 340px 1fr 0px !important;
  }
}

@media (max-width: 1200px) {
  .chat-view {
    grid-template-columns: 240px 1fr 240px;
  }
  .chat-view.details-hidden {
    grid-template-columns: 240px 1fr 0px !important;
  }
}

/* Aba lateral de contatos */
.chat-sidebar {
  border-right: 1px solid var(--border-color);
  background: var(--bg-panel-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-lists {
  flex: 1;
  overflow-y: auto;
}

.chat-list-section-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-list-items {
  display: flex;
  flex-direction: column;
}

.chat-item {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.chat-item:hover {
  background: var(--bg-chat-item-hover);
}

.chat-item.active {
  background: var(--bg-chat-item-active);
  border-left-color: var(--primary);
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-item-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Área principal da conversa */
.chat-area {
  display: flex;
  flex-direction: column;
  background: var(--bg-chat-area);
  overflow: hidden;
}

.chat-area-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-panel-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-header-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.status-dot.waiting {
  background: var(--warning);
}

.chat-header-actions {
  display: flex;
  gap: 10px;
}

.chat-messages-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mensagens individuais */
.message-bubble {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  animation: messageSlideIn 0.2s ease-out;
}

.message-bubble.received {
  align-self: flex-start;
}

.message-bubble.sent {
  align-self: flex-end;
}

.message-bubble.system-msg {
  align-self: center;
  max-width: 90%;
}

.message-bubble-header {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding: 0 4px;
}

.message-bubble.sent .message-bubble-header {
  text-align: right;
}

.message-text {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.message-bubble.received .message-text {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 2px;
}

.message-bubble.sent .message-text {
  background: var(--primary);
  color: #fff;
  border-top-right-radius: 2px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.message-bubble.system-msg .message-text {
  background: var(--bg-hover-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

/* Área de Input */
.chat-input-area {
  padding: 16px 24px;
  background: var(--bg-panel-subtle);
  border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: var(--bg-nav-tabs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: none;
  height: 44px;
  transition: var(--transition-fast);
  line-height: 20px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: 0 4px 8px var(--primary-glow);
}

.btn-send:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

/* Painel de detalhes do cliente (Direita) */
.chat-details-panel {
  border-left: 1px solid var(--border-color);
  background: var(--bg-panel-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.details-section {
  background: hsla(223, 20%, 12%, 0.4);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: border-color var(--transition-fast);
}

.details-section:hover {
  border-color: var(--border-color-focus);
}

.details-section h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.details-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.details-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.details-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

.details-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-action-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-color-focus);
  background: hsla(220, 20%, 20%, 0.3);
}

.btn-action-solid {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: 0 4px 8px var(--success-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-solid:hover {
  background: hsl(142, 70%, 50%);
  transform: translateY(-1px);
}

.btn-action-danger {
  background: var(--danger-glow);
  color: hsl(354, 75%, 70%);
  border: 1px solid var(--danger);
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* Modais */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Slightly darker for better focus */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000; /* Increased to stay on top of all panels */
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.modal-content {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--glass-shadow);
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.select-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-nav-tabs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.input-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 8px var(--primary-glow);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ----------------------------------------------------
   ANIMAÇÕES E UTILITÁRIOS
   ---------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.no-chat-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 16px;
}

.no-chat-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.btn-back-mobile {
  display: none;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
  .btn-back-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 12px;
    padding: 4px;
    border-radius: 50%;
    transition: background var(--transition-fast);
  }
  .btn-back-mobile:hover {
    background: var(--bg-hover-subtle);
  }
  .chat-view {
    grid-template-columns: 1fr;
  }
  .chat-sidebar, .chat-details-panel {
    display: none;
  }
  .chat-sidebar.active-mobile, .chat-details-panel.active-mobile {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
  .kanban-board {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .kanban-column {
    width: 100%;
    max-height: none;
    min-width: 0 !important;
  }
}

/* Custom additions for Media Upload and Dynamic Pipelines */
.btn-attach:hover i {
  color: var(--primary) !important;
  transform: rotate(15deg);
}

.btn-attach i {
  transition: color var(--transition-fast), transform var(--transition-fast);
}

#uploadPreviewArea {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease-out;
}

.stage-config-row {
  animation: fadeIn 0.2s ease-out;
}

.stage-config-row input.stage-name:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
  outline: none;
}

/* ====================================================
   PREMIUM GLASSMORPHIC LIGHTBOX & MEDIA PREVIEW CUSTOM CLASSES
   ==================================================== */

.lightbox-container img, 
.lightbox-container video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Custom premium hover and animation behavior for image bubbles */
.image-preview-wrapper {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  max-width: 280px;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.image-preview-wrapper:hover {
  border-color: var(--border-color-focus);
}

.image-preview-wrapper img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.image-preview-wrapper:hover img {
  transform: scale(1.03);
}

/* Premium video preview bubble wrapper (removes native controls and adds a stunning glassmorphic play button) */
.video-preview-wrapper {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  max-width: 280px;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.video-preview-wrapper:hover {
  border-color: var(--border-color-focus);
}

.video-preview-wrapper video {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
  pointer-events: none;
}

.video-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.video-preview-wrapper:hover .video-preview-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.video-preview-overlay i {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-preview-wrapper:hover .video-preview-overlay i {
  transform: scale(1.12);
  color: #fff;
}

/* ====================================================
   INTERRUPTORES E CONFIGURAÇÕES DO CHATBOT (GLASSMORPHIC)
   ==================================================== */

.bot-setting-toggle-card {
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bot-setting-toggle-card:hover {
  border-color: var(--border-color-focus) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Switch Container */
.switch-container {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

/* Esconder o checkbox default */
.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* O Slider */
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(220, 20%, 20%, 0.6);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Quando marcado */
.switch-container input:checked + .switch-slider {
  background-color: var(--primary-glow);
  border-color: var(--primary);
}

.switch-container input:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: hsl(250, 75%, 85%);
  box-shadow: 0 0 8px var(--primary);
}

/* Focus */
.switch-container input:focus + .switch-slider {
  box-shadow: 0 0 1px var(--primary);
}

/* ====================================================
   NAVBAR FUNNEL SELECTOR ABSOLUTE CENTERING
   ==================================================== */
.nav-funnel-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ====================================================
   SUPERVISION DASHBOARD GLASSMORPHIC STYLING
   ==================================================== */
.supervision-view {
  animation: fadeIn 0.4s var(--transition-normal);
}

.supervision-grid {
  display: flex;
  gap: 24px;
  align-items: start;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 16px;
}

.agent-supervision-card {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  animation: fadeIn 0.3s ease-out;
  min-width: 360px;
  flex: 0 0 auto;
}

.agent-supervision-card:hover {
  border-color: var(--border-color-focus);
  transform: translateY(-2px);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: hsl(250, 75%, 75%);
  border: 1px solid hsla(250, 75%, 63%, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.agent-info-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-name-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.agent-role-badge {
  font-size: 0.7rem;
  width: fit-content;
}

.agent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--bg-hover-subtle);
  border: 1px solid var(--border-color);
}

.agent-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.agent-status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: statusPulse 1.5s infinite alternate;
}

@keyframes statusPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.spy-chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spy-chat-item {
  background: var(--bg-navbar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color var(--transition-fast);
}

.spy-chat-item:hover {
  border-color: hsla(220, 20%, 35%, 0.6);
}

.spy-chat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.spy-chat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spy-chat-details {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spy-chat-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.spy-chat-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-spy {
  background: hsla(250, 75%, 68%, 0.15);
  color: hsl(250, 75%, 85%);
  border: 1px solid hsla(250, 75%, 68%, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.btn-spy:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-close-spy {
  background: hsla(0, 80%, 50%, 0.15);
  border: 1px solid hsla(0, 80%, 50%, 0.25);
  color: hsl(0, 80%, 70%);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-close-spy:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.btn-transfer-spy {
  background: hsla(43, 90%, 50%, 0.15);
  border: 1px solid hsla(43, 90%, 50%, 0.25);
  color: hsl(43, 90%, 75%);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.btn-transfer-spy:hover {
  background: var(--warning);
  color: #000;
  border-color: var(--warning);
}

/* ====================================================
   NAVBAR RESPONSIVE & OVERLAP FIX (Phase 8.1)
   ==================================================== */
@media (max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 24px;
    justify-content: space-between;
  }
  .navbar-left {
    order: 1;
    flex: 0 0 auto;
  }
  .navbar-right {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .nav-tabs {
    order: 3;
    margin: 8px auto 0 auto;
  }
}

/* Theme Toggle Button Styling */
.btn-theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-hover-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  outline: none;
  margin-right: 4px;
}

.btn-theme-toggle:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(20deg) scale(1.05);
}

.btn-theme-toggle:active {
  transform: scale(0.95);
}

.btn-theme-toggle i {
  transition: transform var(--transition-fast);
}

/* Brand logo color inversion filters for light mode compatibility */
:root.light-theme .nav-brand img,
:root.light-theme .login-logo img {
  filter: invert(1) brightness(0.2) !important;
  transition: filter var(--transition-normal);
}
