* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
  /* valores padrão (caso o data-theme não esteja setado) */
  --page-bg:    #020617;
  --card-bg:    #020617;
  --option-bg:  #020617;
  --comment-bg: #BDBDBD;

  --border-subtle: #969696;
  --text-main:     #e5e7eb;
  --text-muted:    #9ca3af;
  --accent:        #2563eb;
  --accent-soft:   rgba(37, 99, 235, 0.2);
}

/* DARK */
body[data-theme="dark"] {
  /* MUDE SÓ ESTAS 4 PARA TESTAR OUTRAS CORES DO TEMA DARK AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */
  --page-bg:    #020617;  /* fundo geral */
  --card-bg:    #020617;  /* enunciado, filtros, sidebar */
  --option-bg:  #020617;  /* alternativas, inputs, multi-check */
  --comment-bg: #0b1120;  /* comentário */

  /* mapeamento interno – não precisa mexer */
  --bg-body:    var(--page-bg);
  --bg-surface: var(--card-bg);
  --bg-card:    var(--card-bg);
  --bg-option:  var(--option-bg);
  --bg-comment: var(--comment-bg);

  --border-subtle: #969696;
  --text-main:     #e5e7eb;
  --text-muted:    #9ca3af;
}

/* GRAY */
body[data-theme="gray"] {
  /* MUDE SÓ ESTAS 4 PARA DEFINIR O TEMA CINZA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */
  --page-bg:    #646464;
  --card-bg:    #969696;
  --option-bg:  #BDBDBD;
  --comment-bg: #646464;

  --bg-body:    var(--page-bg);
  --bg-surface: var(--card-bg);
  --bg-card:    var(--card-bg);
  --bg-option:  var(--option-bg);
  --bg-comment: var(--comment-bg);

  --border-subtle: #020617;
  --text-main:     #000000;
  --text-muted:    #000000;
}

/* LIGHT */
body[data-theme="light"] {
  /* MUDE SÓ ESTAS 4 PARA DEFINIR O TEMA CLARO AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */
  --page-bg:    #f3f4f6;
  --card-bg:    #ffffff;
  --option-bg:  #e5e7eb;
  --comment-bg: #e5e7eb;

  --bg-body:    var(--page-bg);
  --bg-surface: var(--card-bg);
  --bg-card:    var(--card-bg);
  --bg-option:  var(--option-bg);
  --bg-comment: var(--comment-bg);

  --border-subtle: #d1d5db;
  --text-main:     #000000;
  --text-muted:    #000000;
}

/* SEPIA */
body[data-theme="sepia"] {
  /* MUDE SÓ ESTAS 4 PARA DEFINIR O TEMA SÉPIA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */
  --page-bg:    #f3e7c6;
  --card-bg:    #fdf5dc;
  --option-bg:  #f1e0b8;
  --comment-bg: #f1e0b8;

  --bg-body:    var(--page-bg);
  --bg-surface: var(--card-bg);
  --bg-card:    var(--card-bg);
  --bg-option:  var(--option-bg);
  --bg-comment: var(--comment-bg);

  --border-subtle: #e5d4a1;
  --text-main:     #000000;
  --text-muted:    #000000;
}



body {
  background: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
}


/* filtros / cards / questões – CAIXAS GRANDES */
.filters-panel,
.question-card,
.dash-card,
.dash-group,
.saved-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

/* textos */
.login-subtitle,
.field-group label,
.questions-summary,
.multi-check-hint,
.question-footer,
.question-header {
  color: var(--text-muted);
}

.question-stem,
.user-name,
.logo {
  color: var(--text-main);
}

/* botões genéricos */
.btn {
  background: var(--accent);
  color: #ffffff;
}

/* inputs / selects */
.field-group select,
.input-small {
  background: var(--bg-option);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* opções da questão */
.option-btn {
  background: var(--bg-option);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* estados de alternativa */
.option-btn.option-neutral {
  background: var(--bg-option);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.option-btn.option-correct {
  background: #16a34a;      /* verde */
  border-color: #16a34a;
  color: #f9fafb;
}

.option-btn.option-wrong {
  background: #b91c1c;      /* vermelho */
  border-color: #b91c1c;
  color: #f9fafb;
}


/* Telas principais */
.screen {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* TELA DE LOGIN */

.login-container {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.login-subtitle {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.5;
}

.login-main {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

/* Botões genéricos */

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
  transition: transform 0.05s ease, box-shadow 0.1s ease, opacity 0.15s;
}

.btn.small {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.btn.big {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn.primary {
  background: #2563eb;
}

.btn:hover {
  opacity: 0.95;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.6);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.5);
}

/* Rodapé do login */

.login-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
}


.login-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* APP (AMBIENTE 2) */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}


.logo {
  font-weight: 700;
  font-size: 1.05rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-name {
  font-size: 0.9rem;
color: var(--text-main);
}

.tier-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid #22c55e;
  color: #22c55e;
}

/* Layout com sidebar */

.layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 220px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text-main);
  font-size: 0.85rem;
}

.sidebar-header strong {
  color: var(--text-main);
}


.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* mesma pegada visual das alternativas (.option-btn) */
.sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-option);   /* mesma cor das alternativas */
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s, transform 0.05s, box-shadow 0.1s;
}

/* hover bem discreto, igual sensação de botão */
.sidebar-item:hover {
  background: var(--bg-option);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* item ativo levemente destacado */
.sidebar-item.active {
  background: var(--bg-option);
  border-color: var(--accent);
  font-weight: 600;
}



.content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.view {
  display: none;
}

.view.view-active {
  display: block;
}

.content h2 {
  margin-bottom: 0.75rem;
}

.content p {
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.93rem;
}


/* === FILTROS E QUESTÕES – INÍCIO === */

.filters-panel {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--bg-option);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.question-card {
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.dash-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.dash-group {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.dash-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.dash-table th {
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid rgba(156, 163, 175, 0.3);
}

.dash-table td {
  color: var(--text-main);
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
}


.dash-table th {
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 1px solid rgba(156, 163, 175, 0.3);
}

.dash-table td {
  color: #e5e7eb;
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

/* alinhamento numérico à direita */

.dash-table td:nth-child(2),
.dash-table td:nth-child(3),
.dash-table td:nth-child(4) {
  text-align: right;
}

/* === MULTI-CHECK (FILTRO2 / FILTRO3) – LISTA COM SCROLL === */

.multi-check {
  display: block;
  max-height: calc(5 * 1.9em);   /* ~5 itens visíveis */
  overflow-y: auto;
  padding: 0.35rem 0.4rem;
  background: var(--bg-option);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}


/* cada item = linha da lista */
.multi-check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-main);
  background: transparent;           /* sem “pill” forte */
}

/* leve realce ao passar o mouse */
.multi-check-item:hover {
  background: rgba(148, 163, 184, 0.18);
}

/* checkbox discreto */
.multi-check-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
}


.multi-check-item input[type="checkbox"] {
  accent-color: #2563eb;
}

.multi-check-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-main);
}


.field-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.field-group-header label {
  margin: 0;
}

.input-small {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  opacity: 0.9;
}

.input-small::placeholder {
  opacity: 0.6;
}



/* linha com os controles internos da busca */
.questions-tools {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}

/* cada “campo” vira uma caixinha própria */
.questions-tools .field-group {
  flex: 1;
  background: var(--bg-option);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
}

/* título dentro da caixinha */
.questions-tools .field-group > label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

/* grupo dos dois toggles também é flex, mas cada toggle vira meia caixinha */
.questions-tools .toggles-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
}

/* cada toggle como “cardzinho” interno */
.questions-tools .toggle-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

/* Esconder metadados quando o toggle está ligado */
.questions-list.hide-meta .question-header span {
  /* esconde o span que mostra "Q1 · XPF · filtro2 · filtro3" */
  display: none;
}

.questions-list.hide-meta .question-footer {
  display: none;
}

/* texto destacado no enunciado */
.highlighted-text {
  color: #e53935;      /* vermelho */
}

/* linha de botões abaixo da questão */
.question-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.action-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn {
  font-size: 14px;
  opacity: 0.7;
}

.action-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.question-comment {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-comment);   /* 3º nível, pode ser igual ou diferente da opção */
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}


.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
}

.icon-btn:hover {
  opacity: 0.8;
}

/* quando a layout tiver a classe .sidebar-collapsed,
   escondemos a sidebar e deixamos o conteúdo ocupar tudo */
.layout.sidebar-collapsed .sidebar {
  display: none;
}

.layout.sidebar-collapsed .content {
  padding-left: 1rem;
}



.sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-theme-btn {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* === LAYOUT DA LISTA DE QUESTÕES === */

#questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* topo da questão: Q1 · XPF · filtro2 · filtro3 + bolinha + estrela */
.question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.question-header-left {
  flex: 1;
}

.question-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



/* enunciado */
.question-stem {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  font-weight: 600;          /* ou bold */
}


/* lista das alternativas em coluna */
.options-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Impedir seleção/cópia do texto das alternativas */
.options-list,
.options-list * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/* botão de alternativa ocupando a linha toda */
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  background: var(--bg-option);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;     /* mãozinha */
}

/* status (bolinha) e estrela */
.question-status-badge {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  margin-left: 0.5rem;
}

.status-not-answered {
  background: #6b7280;
}

.status-correct {
  background: #22c55e;
}

.status-wrong {
  background: #ef4444;
}

.favorite-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.5rem;
  color: #facc15;
}

.favorite-btn.favorite-active {
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.7);
}

/* rodapé (fonte, ano, acesso) */
.question-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* === MEUS FILTROS – CARDS === */

.saved-filters-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.saved-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.saved-filter-card h3 {
  font-size: 0.95rem;
  color: var(--text-main);
}

.saved-filter-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.saved-filter-actions {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Coluna central REAL para as páginas (igual Medcurso) */
@media (min-width: 1024px) {

  /* .content vira um flex container centralizador */
  .content {
    display: flex;
    justify-content: center;   /* centraliza o miolo */
    padding-left: 0;
    padding-right: 0;
  }

  /* cada view (Minhas questões, Dashboard, etc.) é o miolo */
  .content > .view {
    width: 100%;
    max-width: 960px;          /* aqui cria o “respiro” lateral */
    margin: 0 auto;
  }
}


/* linhas dentro do painel de filtros */
.filters-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

/* grupos de campos genéricos */
.field-group {
  flex: 1 1 0;
  min-width: 0;
}

/* F1 ocupa a linha inteira */
.field-group-full {
  flex: 1 1 100%;
}

/* F2 e F3 dividem a linha */
.field-group-half {
  flex: 1 1 0;
}

.filters-panel-secondary {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* Status ocupando só o tamanho do conteúdo */
.filters-status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filters-status-line label {
  margin: 0;
}

.filters-status-line select {
  width: auto;
  min-width: 0;
}

/* Resumo simples, sem caixa extra */
.filters-panel-secondary .questions-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Linha com os “chips” */
.filters-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

/* Caixinha padrão (igual vibe das alternativas/sidebar) */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--bg-option);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

/* Chip de texto: input maiorzinho */
.filter-chip-text {
  flex: 1 1 260px;
}

.filter-chip-text label {
  margin: 0;
  white-space: nowrap;
}

.filter-chip-text .input-small {
  flex: 1;
}

/* Chips dos checkboxes */
.filter-chip-toggle {
  cursor: pointer;
}

.filter-chip-toggle input[type="checkbox"] {
  margin: 0;
}

/* Chip do botão de luz */
.filter-chip-theme {
  cursor: pointer;
  justify-content: center;
  min-width: 150px;
}

/* Garantir que não exista “caixa dentro de caixa” antiga */
.filters-panel-secondary .filters-row,
.filters-panel-secondary .field-group {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Resumo simples, em linha, largura só do texto */
.filters-panel-secondary .questions-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
  display: inline-block;   /* <= faz não ocupar a linha inteira */
}


.option-btn.option-neutral {
  background: var(--bg-option);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

/* verde mais suave */
.option-btn.option-correct {
  background: rgba(34, 197, 94, 0.18);  /* verde clarinho */
  border-color: #22c55e;
  color: var(--text-main);
}

/* vermelho mais suave */
.option-btn.option-wrong {
  background: rgba(248, 113, 113, 0.2); /* vermelho clarinho */
  border-color: #f97373;
  color: var(--text-main);
}

/* linha da alternativa: botão + X */
.option-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  cursor: pointer;
}

/* botão ocupa todo o espaço, X é só a caixinha lateral */
.option-row .option-btn {
  flex: 1;
}

/* botão de eliminar (X) */
.option-elim-btn {
  border-radius: 0.55rem;
  padding: 0 0.6rem;
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.6;
}

.option-elim-btn:hover {
  opacity: 1;
}

/* quando tachada */
.option-row.option-eliminated .option-btn {
  text-decoration: line-through;
  opacity: 0.6;
}
	
/* === ZOOM (A- / 100% / A+) === */

.filter-chip-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zoom-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0.25rem;
  color: var(--text-main);
}

.zoom-btn:hover {
  opacity: 0.8;
}

.zoom-display {
  min-width: 3.5ch;
  text-align: center;
  font-weight: 600;
}

/* chip só com ícone (cronômetro) */
.filter-chip-icon {
  justify-content: center;
  width: 44px;
  padding-left: 0;
  padding-right: 0;
  font-size: 1.1rem;
}

/* === LINHA DAS ALTERNATIVAS COM X À ESQUERDA === */

.option-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.option-elim-btn {
  width: 32px;
  min-width: 32px;
  border-radius: 0.55rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-option);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.9rem;
}

.option-row.option-eliminated .option-btn {
  opacity: 0.4;
  text-decoration: line-through;
}

/* === CRONÔMETRO FLUTUANTE === */

/* // NOVO: janela do cronômetro mais estreita e usando o tema */
.timer-window {
  pointer-events: auto;
  width: 190px;              /* antes estava 220px */
  max-width: 90vw;
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 1.5rem;
  padding: 1rem 1rem 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;               /* um pouco menor */
  border: 1px solid var(--border-subtle);
}




.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.timer-close-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-main);
}

.timer-body {
  font-size: 0.9rem;
  color: var(--text-main);
}

.timer-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.timer-body::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 0 0.75rem;
}

/* // NOVO: botões Start/Reset em coluna */
.timer-buttons {
  display: flex;
  flex-direction: column; /* um embaixo do outro */
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.timer-buttons .btn {
  width: 100%;
  flex: none;
  box-shadow: none;
}


.timer-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

.timer-eye-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-option);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}



/* já existe .hidden, mas reforço aqui caso queira */
.timer-overlay.hidden,
.timer-bubble.hidden {
  display: none !important;
}

/* // DARK MODE – texto dos filtros sempre claro (NOVO) */
body[data-theme="dark"] .filters-panel-secondary,
body[data-theme="dark"] .filters-panel-secondary label,
body[data-theme="dark"] .filters-panel-secondary .questions-summary,
body[data-theme="dark"] .filters-panel-secondary .filters-status-line,
body[data-theme="dark"] .filters-panel-secondary .filter-chip,
body[data-theme="dark"] .filters-panel-secondary .filter-chip button,
body[data-theme="dark"] .filters-panel-secondary input,
body[data-theme="dark"] .filters-panel-secondary select {
  color: #f9fafb;
}

body[data-theme="dark"] .filters-panel-secondary input::placeholder {
  color: rgba(249, 250, 251, 0.7);
}

body[data-theme="dark"] .filters-panel-secondary .filter-chip-theme {
  border-color: rgba(249, 250, 251, 0.2);
}

/* // DARK MODE – texto dos filtros sempre claro FIM */


/* // DARK MODE – cronômetro */
body.theme-dark .timer-window {
  background: #1f2937; /* cinza escuro */
  color: #f9fafb;
}

body.theme-dark .timer-window .timer-row span {
  color: inherit;
}

body.theme-dark .timer-window .btn {
  color: #ffffff;
}

/* // BOTÃO FLUTUANTE CRONÔMETRO */
/* // NOVO: bolinha do cronômetro discreta no topo direito, seguindo o tema */
#timer-bubble {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  bottom: auto;
  left: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--bg-option);
  color: var(--text-main);
  box-shadow: none;
  cursor: pointer;
  z-index: 40;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#timer-bubble:hover {
  opacity: 1;
  transform: translateY(-1px);
}
/* // BOTÃO FLUTUANTE CRONÔMETRO FIM */





/* // DARK MODE – cronômetro FIM */

/* // TIMER – layout interno */
.timer-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timer-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timer-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.timer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.timer-eye-btn,
.timer-close-btn {
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* // TIMER – layout interno FIM */

/* // TIMER OVERLAY – INICIO */
#timer-overlay {
  position: fixed;
  inset: 0;                    /* top/right/bottom/left = 0 */
  display: flex;
  align-items: flex-start;     /* encosta lá em cima */
  justify-content: flex-end;   /* encosta na direita */
  padding: 1.5rem;             /* espaço das bordas */
  background: transparent;     /* sem fundo escuro */
  pointer-events: none;        /* NÃO captura cliques no fundo */
  z-index: 50;
}

#timer-overlay.hidden {
  display: none;
}
/* // TIMER OVERLAY – FIM */


