:root {
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px var(--accent-glow);
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 28px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  transition: width 0.25s ease, padding 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  font-size: 24px;
  background: rgba(59, 130, 246, 0.15);
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Main Content */
.content {
  flex: 1;
  padding: 36px 42px;
  overflow-y: auto;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-bar h1 {
  font-size: 26px;
  font-weight: 700;
}

.header-bar p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.single-column-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
}

/* Cards & Forms */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

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

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: auto;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  word-break: break-word;
}

th {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-primary { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-secondary { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-pane {
  animation: fadeIn 0.25s ease forwards;
}

/* Header Actions & User Profile */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-email {
  font-size: 11px;
  color: var(--text-muted);
}

/* Modal de Autenticação Google SSO */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-brand h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: left;
}

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 24px;
  min-height: 44px;
}

.modal-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 8px;
}

/* --- ESTILOS SPRINT 15: FILTROS OPERACIONAIS DO DASHBOARD --- */
.dashboard-filter-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.dashboard-filter-grid .form-group {
  margin-bottom: 0;
}

.dashboard-filter-grid .form-group label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}

.dashboard-filter-grid .full-width {
  grid-column: 1 / -1;
}

.classification-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-departamento {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 600;
}

.badge-escopo {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.table-actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

/* Agrupamento Corporativo na Carteira (Sprint 18) */
.tr-mestre-corporativo {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
  border-left: 3px solid var(--primary);
  transition: background 0.15s ease;
}

.tr-mestre-corporativo:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tr-filho-corporativo {
  background: rgba(15, 23, 42, 0.4);
  border-left: 3px solid rgba(99, 102, 241, 0.3);
}

.tr-filho-corporativo td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 13px;
}

.tr-filho-corporativo td:first-child {
  padding-left: 28px !important;
}

.btn-toggle-agrupamento {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-agrupamento:hover {
  background: rgba(99, 102, 241, 0.22);
}

.colab-info-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.colab-info-cell .colab-nome {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.colab-info-cell .colab-email {
  color: var(--text-muted);
  font-size: 11px;
}

.colab-info-cell .colab-dept {
  margin-top: 2px;
}

/* Ícones Monocromáticos de Traço (Monochrome Outline SVG Icons) */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-icon-only {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-icon-only .icon-svg {
  width: 15px;
  height: 15px;
}

/* Sprint 23: Nav Icons & Layout Adjustments */
.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  stroke: currentColor;
  flex-shrink: 0;
}

.nav-link {
  display: flex !important;
  align-items: center !important;
}

/* Global Async Processing Loader */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(10, 14, 23, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981, #38bdf8);
  background-size: 200% 100%;
  animation: loaderGradient 1.5s infinite linear;
}

@keyframes loaderGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.loader-overlay-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.spinner-brand {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Badge de Alerta para Disputas em Aberto */
.badge-disputa-alerta {
  background-color: var(--warning);
  color: #000;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulseBadge 2s infinite ease-in-out;
}

/* Sidebar Collapse & Expand Rules */
.sidebar {
  transition: width 0.25s ease, padding 0.25s ease;
  position: relative;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-toggle-sidebar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-toggle-sidebar:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sidebar.collapsed {
  width: 72px;
  padding: 28px 12px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .sub-nav-links {
  display: none !important;
}

.sidebar.collapsed .brand {
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.sidebar.collapsed .btn-toggle-sidebar svg {
  transform: rotate(180deg);
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .nav-icon {
  margin-right: 0 !important;
}

/* Sidebar Footer & Fixed Toggle Button */
.sidebar-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  z-index: 10;
}

.sidebar.collapsed .sidebar-footer {
  justify-content: center;
}

/* ==========================================================================
   SPRINT 27: DRAWER LATERAL, HISTÓRICO DE AUDITORIA & APRENDIZADOS DO AGENTE
   ========================================================================== */

/* Linhas clicáveis na tabela de auditoria */
#table-full-logs tbody tr {
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

#table-full-logs tbody tr:hover {
  background: rgba(59, 130, 246, 0.08) !important;
}

/* Badges específicos da Sprint 27 */
.badge-manual {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-revisar {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulseBadge 2s infinite ease-in-out;
}

/* Modal Centralizada de Detalhes e Intervenção de Log */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 780px;
  max-width: 94vw;
  max-height: 88vh;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.12);
  z-index: 100001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Z-Index Superior e Foreground para Sub-modais de Ações de Log */
#modal-override-log,
#modal-forward-manual {
  z-index: 100050 !important;
}

#modal-override-log .modal-card,
#modal-forward-manual .modal-card {
  z-index: 100051 !important;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 30px rgba(139, 92, 246, 0.15);
}

.drawer-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-field.full {
  grid-column: 1 / -1;
}

.drawer-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-field .val {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-word;
}

.drawer-field .val-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Timeline do Histórico de Intervenções */
.historico-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.historico-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.historico-item.sucesso {
  border-left: 3px solid var(--success);
}

.historico-item.falha {
  border-left: 3px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.historico-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.historico-op {
  font-weight: 600;
  color: var(--text-primary);
}

.historico-time {
  color: var(--text-muted);
  font-size: 11px;
}

.historico-detalhe {
  color: var(--text-secondary);
  line-height: 1.4;
}

.historico-campos {
  font-family: monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  padding: 4px 6px;
  border-radius: 4px;
}

/* Configurações Operacionais & Filtros de Aprendizado */
.config-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.config-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.config-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.config-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.2s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* ==========================================================================
   SPRINT 28 - CONSULTA GMAIL AVANÇADA, ETIQUETAS E DESPACHO EM LOTE
   ========================================================================== */

/* Dropdown em Árvore para Etiquetas */
.dropdown-tree-wrapper {
  position: relative;
  width: 100%;
}

.dropdown-tree-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  z-index: 999;
  backdrop-filter: blur(8px);
}

.tree-label-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-primary, #f8fafc);
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.tree-label-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.tree-label-item input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.tree-indent-0 { padding-left: 12px; font-weight: 600; }
.tree-indent-1 { padding-left: 28px; }
.tree-indent-2 { padding-left: 44px; }
.tree-indent-3 { padding-left: 60px; }

/* Tabela Mestre-Detalhe de Threads */
.table-mestre-detalhe {
  width: 100%;
  border-collapse: collapse;
}

.table-mestre-detalhe th {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.thread-row {
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.07));
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.thread-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.thread-row.expanded {
  background-color: rgba(59, 130, 246, 0.05);
  border-bottom: none;
}

.btn-toggle-thread {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  transition: transform 0.2s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-thread:hover {
  color: var(--primary-color, #3b82f6);
}

.thread-row.expanded .btn-toggle-thread {
  transform: rotate(90deg);
  color: var(--primary-color, #3b82f6);
}

/* Linha Filha de Mensagens Expandidas */
.thread-detail-row {
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.thread-detail-container {
  padding: 14px 20px 18px 44px;
}

.table-mensagens-filha {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.table-mensagens-filha th {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  font-size: 11px;
}

.table-mensagens-filha td {
  padding: 10px 12px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Callout de Encaminhamento Prévio */
.callout-encaminhado-previo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

/* Badges de Carteira */
.badge-carteira-propria {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-carteira-outro {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-carteira-sem {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

/* Badges de Status das Mensagens */
.badge-status-nao-lida {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.badge-status-lida {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.badge-status-encaminhada {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.badge-status-respondida {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

/* Barra Flutuante/Sticky de Despacho em Lote */
.barra-despacho-lote {
  position: sticky;
  bottom: 16px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--primary-color, #3b82f6);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(12px);
  margin-top: 14px;
  margin-bottom: 14px;
  animation: slideUpFade 0.25s ease-out;
}

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

/* ==========================================================================
   SPRINT 35: GESTÃO DE COLABORADORES AGÊNTICOS E WIDGET DE CHAT DE SUPORTE
   ========================================================================== */

/* Grid e Cards de Agentes */
.agentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.agente-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.agente-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.15);
}

.agente-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.agente-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.agente-avatar.suporte {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.agente-info {
  flex: 1;
}

.agente-nome {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px 0;
}

.agente-email {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.agente-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.agente-badge-status.ativo {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.agente-badge-status.inativo {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.agente-funcao {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.agente-metadados {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.meta-pill strong {
  color: #e2e8f0;
}

.agente-acoes {
  display: flex;
  gap: 8px;
}

/* Widget Flutuante de Chat do Suporte */
.suporte-chat-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  pointer-events: auto !important;
}

.btn-suporte-toggle {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 30px !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  outline: none !important;
}

.btn-suporte-toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.6) !important;
}

.chat-toggle-icon {
  font-size: 18px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.janela-chat {
  width: 380px;
  height: 520px;
  max-height: 80vh;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  animation: slideUpFade 0.25s ease-out;
  z-index: 99999 !important;
}

.chat-header {
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-status-indicator.online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.chat-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.chat-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.chat-btn-action {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.chat-btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg-bot {
  align-self: flex-start;
}

.chat-msg-user {
  align-self: flex-end;
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg-bot .chat-msg-bubble {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 2px;
}

.chat-msg-user .chat-msg-bubble {
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-msg-time {
  font-size: 10px;
  color: #64748b;
  margin-top: 3px;
  padding: 0 4px;
}

.chat-msg-user .chat-msg-time {
  text-align: right;
}

.chat-sugestoes {
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-pill {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-pill:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  border-color: #60a5fa;
}

.chat-footer {
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 13px;
  outline: none;
}

.chat-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.chat-btn-send {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.chat-btn-send:hover {
  background: #1d4ed8;
}

/* ============================================================
   SPRINT 36: ESTILOS VISUAIS E COMPONENTES INTERATIVOS
   ============================================================ */

/* Cards Interativos com Filtro e Destaque */
.stat-card.interactive-filter {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.stat-card.interactive-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 0 12px rgba(59, 130, 246, 0.2);
}

.stat-card.interactive-filter.card-selected-active {
  border-color: #3b82f6 !important;
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5), 0 10px 25px -5px rgba(59, 130, 246, 0.3) !important;
}

/* Indicador de Comparativo Temporal nos Cards */
.card-delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 6px;
}

.card-delta-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-delta-badge.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-delta-badge.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Botão Ícone de Gráfico nos Cards */
.btn-open-timeseries-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-open-timeseries-modal:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
}

/* Badge do Próximo na Fila Comercial (Tempo Real) */
.badge-proximo-fila {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.5); }
}

/* Destaque Amarelo para Dados Ausentes (Carteiras) */
.badge-dado-ausente {
  display: inline-block;
  background: rgba(180, 83, 9, 0.25);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* Barra Flutuante de Ações em Lote (Floating Action Bar) */
.floating-bulk-actions-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1040;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.floating-bulk-actions-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ordenação de Tabelas */
th.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

th.sortable-th:hover {
  color: #38bdf8 !important;
}

/* Expansão Suave de Texto Truncado */
.expandable-text-wrapper {
  display: inline;
  transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   Rodapé Global do Sistema (Sprint 39 - TASK-3906)
   ========================================================================== */
.global-app-footer {
  margin-top: 56px;
  padding: 22px 0 16px 0;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  width: 100%;
  box-sizing: border-box;
}

.global-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: var(--text-muted, #8b949e);
}

.global-footer-copyright {
  font-weight: 500;
  letter-spacing: 0.2px;
}

.global-footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-footer-version {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  user-select: all;
  transition: all 0.2s ease;
}

.global-footer-version:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.global-footer-env {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .global-footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

