/* ============================================
ANALISADOR PRO - CSS v31.0.0
Tema Natural - Minimalista (Refatoracao de Feedback Semantico)
NOVO: Marcadores (highlights) neumórficos com efeito 3D
CORREÇÃO: background no code-cell:hover (conflito de herança)
============================================ */
/* ============================================
VARIAVEIS BASE
============================================ */
:root {
  /* Tipografia */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  /* Espacamento */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  /* Bordas */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  /* Transicoes */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}
/* ============================================
  2. TEMA NATURAL (Padrao)
  ============================================ */
[data-theme="natural"] {
  --bg-primary: #fafaf8;
  --bg-secondary: #f5f5f0;
  --bg-tertiary: #e8e8e3;
  --bg-card: #ffffff;
  --bg-hover: #f0f0ea;
  --text-primary: #2d2d2a;
  --text-secondary: #5c5c56;
  --text-muted: #8a8a82;
  --text-inverse: #fafaf8;
  --accent: #5c6b5c;
  --accent-hover: #4a574a;
  --accent-soft: rgba(92, 107, 92, 0.08);
  --accent-border: rgba(92, 107, 92, 0.2);
  --border: #e0e0d8;
  --border-strong: #d0d0c8;
  --success: #5c8a5c;
  --warning: #b8a05c;
  --danger: #a05c5c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius-full: 9999px;
}
/* ============================================
  3. TEMA DARK (Escuro Suave)
  ============================================ */
[data-theme="dark"] {
  --bg-primary: #1a1a18;
  --bg-secondary: #222220;
  --bg-tertiary: #2a2a28;
  --bg-card: #252523;
  --bg-hover: #30302d;
  --text-primary: #e8e8e6;
  --text-secondary: #b8b8b0;
  --text-muted: #808078;
  --text-inverse: #1a1a18;
  --accent: #7a8a7a;
  --accent-hover: #8a9a8a;
  --accent-soft: rgba(122, 138, 122, 0.1);
  --accent-border: rgba(122, 138, 122, 0.25);
  --border: #3a3a36;
  --border-strong: #4a4a46;
  --success: #6a9a6a;
  --warning: #c4b06a;
  --danger: #b06a6a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --radius-full: 9999px;
}
/* ============================================
  4. TEMA LIGHT (Claro Puro)
  ============================================ */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f0f0f0;
  --bg-card: #ffffff;
  --bg-hover: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  --text-inverse: #ffffff;
  --accent: #4a5a4a;
  --accent-hover: #3a4a3a;
  --accent-soft: rgba(74, 90, 74, 0.06);
  --accent-border: rgba(74, 90, 74, 0.15);
  --border: #e5e5e5;
  --border-strong: #d5d5d5;
  --success: #4a8a4a;
  --warning: #b8a04a;
  --danger: #a04a4a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius-full: 9999px;
}
/* ============================================
  4.1 TEMA NEUMÓRFICO (Soft UI)
  ============================================ */
[data-theme="neumorphic"] {
  --bg-primary: #e0e5ec;
  --bg-secondary: #e0e5ec;
  --bg-tertiary: #d1d9e6;
  --bg-card: #e0e5ec;
  --bg-hover: #e8ecf1;
  --text-primary: #4a5568;
  --text-secondary: #718096;
  --text-muted: #a0aec0;
  --text-inverse: #ffffff;
  --accent: #4c51bf;
  --accent-hover: #434190;
  --border: transparent; /* Neumorfismo geralmente não usa bordas duras */
  --border-strong: #cbd5e0;

  /* O segredo do Neumorfismo: sombra dupla (uma clara, uma escura) */
  --shadow-sm: 4px 4px 8px #a3b1c6, -4px -4px 8px #ffffff;
  --shadow-md: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  --shadow-lg: 8px 8px 16px #a3b1c6, -8px -8px 16px #ffffff;

  /* Sombra interna para inputs/dropzones */
  --shadow-inner: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}

/* TEMA NEUMÓRFICO ESCURO */
[data-theme="neumorphic-dark"] {
  --bg-primary: #2d3238;
  --bg-secondary: #2d3238;
  --bg-tertiary: #24282d;
  --bg-card: #2d3238;
  --bg-hover: #353a41;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  --accent: #8b5cf6; /* Roxo para contraste premium */
  --accent-hover: #7c3aed;
  --border: transparent;
  --border-strong: #3f4752;
  
  --shadow-sm: 4px 4px 8px #1e2125, -4px -4px 8px #3c434b;
  --shadow-md: 6px 6px 12px #1e2125, -6px -6px 12px #3c434b;
  --shadow-lg: 8px 8px 16px #1e2125, -8px -8px 16px #3c434b;
  --shadow-inner: inset 4px 4px 8px #1e2125, inset -4px -4px 8px #3c434b;
}

/* TEMA NEUMÓRFICO OCEANO */
[data-theme="neumorphic-ocean"] {
  --bg-primary: #e6eef5;
  --bg-secondary: #e6eef5;
  --bg-tertiary: #d4e0eb;
  --bg-card: #e6eef5;
  --bg-hover: #f0f5fa;
  --text-primary: #2c3e50;
  --text-secondary: #546e7a;
  --text-muted: #90a4ae;
  --text-inverse: #ffffff;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --border: transparent;
  --border-strong: #cfdbe6;
  
  --shadow-sm: 4px 4px 8px #c8d1d9, -4px -4px 8px #ffffff;
  --shadow-md: 6px 6px 12px #c8d1d9, -6px -6px 12px #ffffff;
  --shadow-lg: 8px 8px 16px #c8d1d9, -8px -8px 16px #ffffff;
  --shadow-inner: inset 4px 4px 8px #c8d1d9, inset -4px -4px 8px #ffffff;
}

/* TEMA NEUMÓRFICO MINT (Verde Água Suave) */
[data-theme="neumorphic-mint"] {
  --bg-primary: #e0ece4;
  --bg-secondary: #e0ece4;
  --bg-tertiary: #d2e0d7;
  --bg-card: #e0ece4;
  --bg-hover: #e8f2ec;
  --text-primary: #2d4a3e;
  --text-secondary: #527967;
  --text-muted: #85a396;
  --text-inverse: #ffffff;
  --accent: #10b981;
  --accent-hover: #059669;
  --border: transparent;
  --border-strong: #c2d6cb;
  
  --shadow-sm: 4px 4px 8px #bec8c1, -4px -4px 8px #ffffff;
  --shadow-md: 6px 6px 12px #bec8c1, -6px -6px 12px #ffffff;
  --shadow-lg: 8px 8px 16px #bec8c1, -8px -8px 16px #ffffff;
  --shadow-inner: inset 4px 4px 8px #bec8c1, inset -4px -4px 8px #ffffff;
}

/* TEMA NEUMÓRFICO SUNSET (Quente/Laranja) */
[data-theme="neumorphic-sunset"] {
  --bg-primary: #f5e6e6;
  --bg-secondary: #f5e6e6;
  --bg-tertiary: #ebd6d6;
  --bg-card: #f5e6e6;
  --bg-hover: #faecec;
  --text-primary: #4a2d2d;
  --text-secondary: #7a5252;
  --text-muted: #a38585;
  --text-inverse: #ffffff;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --border: transparent;
  --border-strong: #d6c2c2;
  
  --shadow-sm: 4px 4px 8px #d0c3c3, -4px -4px 8px #ffffff;
  --shadow-md: 6px 6px 12px #d0c3c3, -6px -6px 12px #ffffff;
  --shadow-lg: 8px 8px 16px #d0c3c3, -8px -8px 16px #ffffff;
  --shadow-inner: inset 4px 4px 8px #d0c3c3, inset -4px -4px 8px #ffffff;
}

/* TEMA NEUMÓRFICO MIDNIGHT (Azul Noturno Profundo) */
[data-theme="neumorphic-midnight"] {
  --bg-primary: #1a1e29;
  --bg-secondary: #1a1e29;
  --bg-tertiary: #141720;
  --bg-card: #1a1e29;
  --bg-hover: #222736;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: transparent;
  --border-strong: #2c3447;
  
  --shadow-sm: 4px 4px 8px #12151d, -4px -4px 8px #222735;
  --shadow-md: 6px 6px 12px #12151d, -6px -6px 12px #222735;
  --shadow-lg: 8px 8px 16px #12151d, -8px -8px 16px #222735;
  --shadow-inner: inset 4px 4px 8px #12151d, inset -4px -4px 8px #222735;
}

/* Garantir que drops/textareas peguem a sombra interna nos novos temas */
[data-theme^="neumorphic"] .drop-zone,
[data-theme^="neumorphic"] textarea {
  box-shadow: var(--shadow-inner);
  border: none;
  background: var(--bg-primary);
}

/* ============================================
  4.2 IDENTIFICAÇÃO VISUAL NEUMÓRFICA NOS RESULTADOS
  ============================================ */

/* Cards de resultado com efeito neumórfico */
[data-theme^="neumorphic"] .result-group {
  border: none;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Efeito hover: elevação suave */
[data-theme^="neumorphic"] .result-group:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Estado ativo/focado: pressionado */
[data-theme^="neumorphic"] .result-group:active,
[data-theme^="neumorphic"] .result-group:focus-within {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Header do grupo - efeito "inset" sutil */
[data-theme^="neumorphic"] .group-header {
  background: transparent;
  border-bottom: 1px solid rgba(160, 174, 192, 0.1);
  position: relative;
}

/* Indicador de expansão estilo neumórfico */
[data-theme^="neumorphic"] .group-header::before {
  border-left-color: var(--text-muted);
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
}

/* Badges com efeito "convexo" */
[data-theme^="neumorphic"] .badge,
[data-theme^="neumorphic"] .badge-filter,
[data-theme^="neumorphic"] .badge-count {
  border: none;
  box-shadow: 
    2px 2px 4px rgba(163, 177, 198, 0.6),
    -2px -2px 4px rgba(255, 255, 255, 0.8);
  background: var(--bg-card);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Badge de filtro (exato/categoria) - cor de destaque */
[data-theme^="neumorphic"] .badge-filter {
  box-shadow: 
    2px 2px 4px rgba(163, 177, 198, 0.6),
    -2px -2px 4px rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px var(--accent-border);
}

/* Tabela de resultados - linhas com separação suave */
[data-theme^="neumorphic"] .results-table {
  border-collapse: separate;
  border-spacing: 0 4px;
  margin: 0 var(--space-md);
  width: calc(100% - var(--space-lg));
}

[data-theme^="neumorphic"] .results-table tr {
  background: var(--bg-card);
  box-shadow:
    2px 2px 4px rgba(163, 177, 198, 0.3),
    -1px -1px 2px rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* CORREÇÃO: will-change apenas durante transição para acelerar por GPU */
}

[data-theme^="neumorphic"] .results-table tr:hover {
  /* CORREÇÃO: Simplificar sombras no hover para reduzir repaint */
  box-shadow:
    4px 4px 8px rgba(163, 177, 198, 0.35),
    -2px -2px 4px rgba(255, 255, 255, 0.55);
  transform: translateY(-2px); /* CORREÇÃO: Usar translate em vez de scale para melhor performance */
  z-index: 1;
}

/* 
 * CORREÇÃO: Removido will-change: auto do hover
 * Motivo: Isso remove a otimização DURANTE o hover, causando reflow
 * Se necessário limpar memória, usar JS com transitionend event
 */

[data-theme^="neumorphic"] .results-table td {
  border: none;
  padding: var(--space-md);
}

[data-theme^="neumorphic"] .results-table td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

[data-theme^="neumorphic"] .results-table td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Célula de código - efeito "botão" */
[data-theme^="neumorphic"] .code-cell {
  background: var(--bg-card);
  box-shadow: 
    2px 2px 4px rgba(163, 177, 198, 0.4),
    -2px -2px 4px rgba(255, 255, 255, 0.8);
  border: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

[data-theme^="neumorphic"] .code-cell:hover {
  background: var(--bg-card); /* <-- ADICIONADO: Força fundo do card */
  box-shadow:
    1px 1px 2px rgba(163, 177, 198, 0.4),
    -1px -1px 2px rgba(255, 255, 255, 0.8),
    inset 2px 2px 4px rgba(163, 177, 198, 0.1);
  transform: scale(0.98);
  color: var(--accent);
}

/* Score pills - efeito convexo colorido */
[data-theme^="neumorphic"] .score-pill {
  border: none;
  font-weight: 700;
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.1),
    -2px -2px 4px rgba(255, 255, 255, 0.5);
}

[data-theme^="neumorphic"] .score-high {
  background: linear-gradient(145deg, rgba(92, 138, 92, 0.15), rgba(92, 138, 92, 0.05));
  color: var(--success);
}

[data-theme^="neumorphic"] .score-med {
  background: linear-gradient(145deg, rgba(184, 160, 92, 0.15), rgba(184, 160, 92, 0.05));
  color: var(--warning);
}

[data-theme^="neumorphic"] .score-low {
  background: linear-gradient(145deg, rgba(160, 92, 92, 0.15), rgba(160, 92, 92, 0.05));
  color: var(--danger);
}

/* Estado vazio - card central com efeito neumórfico */
[data-theme^="neumorphic"] .empty-content {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

[data-theme^="neumorphic"] .empty-icon {
  background: var(--bg-card);
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* Features do estado vazio - chips neumórficos */
[data-theme^="neumorphic"] .empty-features span {
  background: var(--bg-card);
  border: none;
  box-shadow: 
    2px 2px 4px rgba(163, 177, 198, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Scrollbar estilizada para tema neumorphic */
[data-theme^="neumorphic"] .results-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    rgba(163, 177, 198, 0.6) 0%, 
    rgba(163, 177, 198, 0.3) 100%);
  border-radius: var(--radius-full);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

/* Animação de entrada suave */
[data-theme^="neumorphic"] .result-group.fade-in {
  animation: neumorphic-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes neumorphic-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    box-shadow: none;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-md);
  }
}

/* ============================================
  4.3 AJUSTES PARA NEUMORPHIC DARK
  ============================================ */

[data-theme="neumorphic-dark"] .result-group,
[data-theme="neumorphic-midnight"] .result-group {
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.05);
}

[data-theme="neumorphic-dark"] .result-group:hover,
[data-theme="neumorphic-midnight"] .result-group:hover {
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.5),
    -4px -4px 8px rgba(255, 255, 255, 0.08);
}

[data-theme="neumorphic-dark"] .badge,
[data-theme="neumorphic-midnight"] .badge {
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.4),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="neumorphic-dark"] .code-cell,
[data-theme="neumorphic-midnight"] .code-cell {
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="neumorphic-dark"] .results-table tr,
[data-theme="neumorphic-midnight"] .results-table tr {
  box-shadow: 
    3px 3px 6px rgba(0, 0, 0, 0.35),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="neumorphic-dark"] .results-table tr:hover,
[data-theme="neumorphic-midnight"] .results-table tr:hover {
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.4),
    -2px -2px 4px rgba(255, 255, 255, 0.08);
}

[data-theme="neumorphic-dark"] .score-pill,
[data-theme="neumorphic-midnight"] .score-pill {
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="neumorphic-dark"] .empty-icon,
[data-theme="neumorphic-midnight"] .empty-icon {
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.35),
    -4px -4px 8px rgba(255, 255, 255, 0.05);
}

[data-theme="neumorphic-dark"] .empty-features span,
[data-theme="neumorphic-midnight"] .empty-features span {
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

/* ============================================
  5. RESET E BASE
  ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden;
}
/* ============================================
  6. LAYOUT PRINCIPAL
  ============================================ */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
/* ============================================
  7. SIDEBAR (Fixa, sem scroll geral)
  ============================================ */
.sidebar {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 10;
}
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-lg);
  padding-bottom: 0;
}
.sidebar-footer {
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
/* Scrollbar sutil */
.sidebar-content::-webkit-scrollbar {
  width: 4px;
}
.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
/* ============================================
  8. HEADER E BRAND
  ============================================ */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
}
.logo-icon svg {
  width: 20px;
  height: 20px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.logo-version {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.system-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.status-dot.active {
  background: var(--success);
}
/* ============================================
  9. SECOES
  ============================================ */
.section {
  margin-bottom: var(--space-xl);
}
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-header svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.badge {
  margin-left: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.live-indicator {
  margin-left: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--success);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
/* ============================================
  10. DROP ZONE
  ============================================ */
.drop-zone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-primary);
}
.drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  border-style: solid;
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  border-style: solid;
}
.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: opacity var(--transition-base);
}
.drop-content svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}
.drop-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.drop-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.drop-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: var(--bg-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.drop-zone.loading .drop-content {
  opacity: 0;
}
.drop-zone.loading .drop-loading {
  opacity: 1;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ============================================
  11. BUSCA E INPUT
  ============================================ */
.input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  resize: none;
  transition: all var(--transition-fast);
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea::placeholder {
  color: var(--text-muted);
}
.search-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
}
.status-message {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-actions {
  display: flex;
  gap: var(--space-xs);
}
.icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
  12. TIPS LIST
  ============================================ */
.tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.tip-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.tip-label {
  font-weight: 500;
  color: var(--text-muted);
}
.tip-item code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}
/* ============================================
  13. BOTOES
  ============================================ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: calc(var(--space-md) - 2px) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  flex: 1;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.actions-row {
  display: flex;
  gap: var(--space-md);
}
/* ============================================
  14. SETTINGS E TEMA
  ============================================ */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap; /* PERMITE QUEBRA DE LINHA NO CELULAR */
  gap: var(--space-md);
}
.theme-selector {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap; /* Evita que os botões vazem a tela */
}
.theme-option {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-option:hover {
  transform: scale(1.1);
}
.theme-option.active {
  border-color: var(--accent);
}
.theme-option::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.theme-option[data-theme="natural"]::after {
  background: linear-gradient(135deg, #f5f5f0, #5c6b5c);
}
.theme-option[data-theme="dark"]::after {
  background: linear-gradient(135deg, #1a1a18, #7a8a7a);
}
.theme-option[data-theme="light"]::after {
  background: linear-gradient(135deg, #ffffff, #4a5a4a);
}
.theme-option[data-theme="neumorphic"]::after {
  background: linear-gradient(135deg, #e0e5ec, #a3b1c6);
}
.theme-option[data-theme="neumorphic-dark"]::after {
  background: linear-gradient(135deg, #2d3238, #1e2125);
}
.theme-option[data-theme="neumorphic-ocean"]::after {
  background: linear-gradient(135deg, #e6eef5, #c8d1d9);
}
.theme-option[data-theme="neumorphic-mint"]::after {
  background: linear-gradient(135deg, #e0ece4, #bec8c1);
}
.theme-option[data-theme="neumorphic-sunset"]::after {
  background: linear-gradient(135deg, #f5e6e6, #d0c3c3);
}
.theme-option[data-theme="neumorphic-midnight"]::after {
  background: linear-gradient(135deg, #1a1e29, #12151d);
}
.signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Mantém alinhado à direita */
  gap: 4px;
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent-border); /* Adiciona uma linha divisória elegante */
  white-space: nowrap; /* IMPEDE O CORTE DO TEXTO */
  flex-shrink: 0;
}
.sig-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.sig-author {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
/* ============================================
  14.2 FEEDBACK VISUAL DROP ZONE
  ============================================ */
.drop-zone.success {
  border-color: var(--success);
  background: rgba(92, 138, 92, 0.05); /* Fundo verde super suave */
}
.drop-zone.success .drop-content svg {
  color: var(--success);
}
.drop-zone.success .drop-title {
  color: var(--success);
}
/* ============================================
  15. MAIN CONTENT
  ============================================ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-left h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.header-left p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.header-right {
  display: flex;
  gap: var(--space-xl);
}
.stat-card {
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
/* ============================================
  16. PROGRESS BAR
  ============================================ */
.progress-wrapper {
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.progress-wrapper.hidden {
  display: none;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}
.progress-info span:first-child {
  color: var(--text-secondary);
}
.progress-info span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}
.progress-track {
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease-out;
}
/* ============================================
  17. RESULTS CONTAINER
  ============================================ */
.results-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-xl);
}
.results-container::-webkit-scrollbar {
  width: 6px;
}
.results-container::-webkit-scrollbar-track {
  background: transparent;
}
.results-container::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
/* ============================================
  18. EMPTY STATE
  ============================================ */
.empty-state {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-content {
  text-align: center;
  max-width: 400px;
}
.empty-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--accent);
}
.empty-icon svg {
  width: 32px;
  height: 32px;
}
.empty-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.empty-content > p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}
.empty-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}
.empty-features span {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
/* ============================================
  19. RESULT GROUPS
  ============================================ */
.result-group {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  outline-offset: 2px;
}
.result-group:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.result-group:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.result-group:focus {
  outline: none;
}
.result-group.closed .group-body {
  display: none;
}
.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid transparent;
  user-select: none;
}
.group-header:hover {
  background: var(--bg-hover);
}
.group-header::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--text-muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: var(--space-md);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
.result-group.closed .group-header::before {
  transform: rotate(-90deg);
}
.result-group:not(.closed) .group-header {
  border-bottom-color: var(--border);
}
.query-text {
  display: flex;
  align-items: center;
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-badges {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}
.badge-filter {
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
}
.badge-count {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.group-body {
  overflow: hidden;
  transition: all var(--transition-base);
}
/* ============================================
  20. RESULTS TABLE
  ============================================ */
.results-table {
  width: 100%;
  border-collapse: collapse;
}
.results-table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.results-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.results-table tr:last-child td {
  border-bottom: none;
}
.results-table tr:hover td {
  background: var(--bg-hover);
}
.col-code {
  width: 20%;
  font-family: var(--font-mono);
}
.col-match {
  width: 12%;
  text-align: right;
}
.code-cell {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}
.code-cell:hover {
  background: var(--accent);
  color: var(--text-inverse);
}
.code-cell svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}
.desc-cell {
  color: var(--text-secondary);
  line-height: 1.5;
}
/* Base Highlighting para Match Exato */
.desc-cell mark {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
/* NOVO: Highlighting Inteligente (Dicionario Semantico) */
.desc-cell mark.match-semantic {
  background: transparent;
  color: var(--success);
  border-bottom: 2px dotted var(--success);
  padding-bottom: 0;
  border-radius: 0;
  cursor: help;
  transition: background var(--transition-fast);
}
.desc-cell mark.match-semantic:hover {
  background: rgba(92, 138, 92, 0.1);
}
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.score-high {
  background: rgba(92, 138, 92, 0.1);
  color: var(--success);
}
.score-med {
  background: rgba(184, 160, 92, 0.1);
  color: var(--warning);
}
.score-low {
  background: rgba(160, 92, 92, 0.1);
  color: var(--danger);
}
.no-results {
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}
/* ============================================
  21. MODAL
  ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay.hidden {
  display: none;
}
.modal {
  width: 90%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  transform: scale(0.95);
  transition: transform var(--transition-base);
}
.modal-overlay.active .modal {
  transform: scale(1);
}
.modal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.modal-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--accent);
}
.modal-icon svg {
  width: 24px;
  height: 24px;
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.modal-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.option-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}
.option-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.option-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.option-card:hover .option-icon {
  background: var(--accent);
  color: var(--text-inverse);
}
.option-icon svg {
  width: 20px;
  height: 20px;
}
.option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.option-content strong {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.option-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.modal-footer {
  display: flex;
  justify-content: center;
}
/* ============================================
  22. TOAST NOTIFICATIONS
  ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  z-index: 1001;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  opacity: 0;
  animation: slide-in 0.3s forwards;
  pointer-events: all;
}
@keyframes slide-in {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast.removing {
  animation: slide-out 0.3s forwards;
}
@keyframes slide-out {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast-icon.success {
  background: rgba(92, 138, 92, 0.1);
  color: var(--success);
}
.toast-icon.error {
  background: rgba(160, 92, 92, 0.1);
  color: var(--danger);
}
.toast-icon.warning {
  background: rgba(184, 160, 92, 0.1);
  color: var(--warning);
}
.toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toast-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.toast-message {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
/* ============================================
  23. UTILITARIOS
  ============================================ */
.hidden {
  display: none !important;
}
.fade-in {
  animation: fade-in 0.3s ease-out;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================
  24. RESPONSIVE
  ============================================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 340px;
  }
}
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-content {
    max-height: 30vh;
  }
  .main-content {
    height: 50vh;
  }
  .content-header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
    padding: var(--space-md);
  }
  .header-right {
    width: 100%;
    justify-content: center;
    gap: var(--space-lg);
  }
  .results-container {
    padding: var(--space-md);
  }
  .results-table th,
  .results-table td {
    padding: var(--space-sm);
    font-size: 0.8125rem;
  }
  .col-code {
    width: 25%;
  }
  .col-match {
    width: 15%;
  }
}
@media (max-width: 480px) {
  .sidebar-content,
  .sidebar-footer {
    padding: var(--space-md);
  }
  .stat-value {
    font-size: 1.25rem;
  }
  .modal {
    padding: var(--space-lg);
  }
  .option-card {
    padding: var(--space-md);
  }
}

/* ============================================
  20. CONVERSION MODAL (LTR Feedback)
  ============================================ */
.conversion-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.conversion-modal .modal-content {
  position: relative;
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  text-align: center;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conversion-modal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.conversion-modal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.conversion-modal .modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.conversion-modal .btn {
  width: 100%;
}

/* ============================================
   MARCADORES (HIGHLIGHTS) NEUMÓRFICOS
   ============================================ */

/* 1. Match Exato - Efeito "Pressionado" (Inset) */
[data-theme^="neumorphic"] .desc-cell mark {
  background: transparent;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    inset -2px -2px 4px rgba(255, 255, 255, 0.6);
}

/* Ajuste do efeito "Pressionado" para temas Neumórficos Escuros */
[data-theme="neumorphic-dark"] .desc-cell mark,
[data-theme="neumorphic-midnight"] .desc-cell mark {
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.5),
    inset -2px -2px 4px rgba(255, 255, 255, 0.05);
}

/* 2. Match Semântico (Fuzzy/Sinônimos) - Sublinhado com sombra suave */
[data-theme^="neumorphic"] .desc-cell mark.match-semantic {
  background: transparent;
  color: var(--success);
  box-shadow: none; /* Remove o inset para manter apenas o sublinhado */
  border-bottom: 2px dotted var(--success);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

/* Ajuste do sombreado do texto para temas Neumórficos Escuros */
[data-theme="neumorphic-dark"] .desc-cell mark.match-semantic,
[data-theme="neumorphic-midnight"] .desc-cell mark.match-semantic {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* ============================================
  15. SW UPDATE BANNER (🚀 CORREÇÃO: Atualização forçada)
  ============================================ */
.sw-update-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.sw-update-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sw-update-banner.hidden {
  display: none;
}

.sw-update-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sw-update-banner .banner-icon {
  width: 24px;
  height: 24px;
  color: var(--accent, #5c6b5c);
  animation: spin 2s linear infinite;
}

.sw-update-banner span {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary, #2d2d2d);
  font-weight: 500;
}

.sw-update-banner .btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 8px;
}

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

/* Temas Neumórficos */
[data-theme^="neumorphic"] .sw-update-banner {
  border: none;
  box-shadow:
    8px 8px 16px rgba(163, 177, 198, 0.4),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
}

[data-theme="neumorphic-dark"] .sw-update-banner,
[data-theme="neumorphic-midnight"] .sw-update-banner {
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.4),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
}
