/* ===== FlowZenHub – Checklist (escopo #todo) ===== */
#todo{
  padding: 20px;
  border: 1px solid var(--fz-border, #222);
  border-radius: 16px;
  background: var(--card-bg, #111);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
html:not(.dark) #todo{
  background: #fff;
  border-color: #e6e6e6;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
#todo .todo-header{
  display:flex; align-items: center; justify-content: space-between; gap: 16px;
}
#todo .sub{ opacity:.8; margin-top: 4px; }

#todo .list-tabs{
  display:flex; gap:8px; margin: 14px 0 6px;
  flex-wrap: wrap;
}
#todo .tab{
  padding: 8px 12px; border:1px solid var(--fz-border,#222); background: transparent;
  border-radius: 999px; cursor:pointer; line-height:1;
}
#todo .tab.is-active{ box-shadow: 0 0 0 2px var(--brand,#7A5FA7) inset; }
#todo .tab.add{ border-style:dashed; opacity:.8; }

#todo .todo-input{
  display:grid; grid-template-columns: 1fr auto; gap:12px; margin: 12px 0 10px;
}
#todo .todo-input .row{ display:flex; gap:8px; }
#todo input[type="text"], #todo input[type="date"], #todo select{
  padding: 10px 12px; border-radius: 12px; border:1px solid var(--fz-border,#222); background: var(--input-bg, transparent);
}
html:not(.dark) #todo input[type="text"], html:not(.dark) #todo input[type="date"], html:not(.dark) #todo select{
  background: #fff;
  border-color:#dcdcdc;
}

#todo .todo-toolbar{
  display:flex; gap:8px; margin-bottom: 6px; flex-wrap: wrap;
}
#todo .chip{
  padding:6px 10px; border:1px solid var(--fz-border,#222); border-radius:999px; background: transparent; cursor: pointer;
}
#todo .chip.is-active{ box-shadow: 0 0 0 2px var(--brand,#7A5FA7) inset; }

#todo .todo-list{ list-style:none; margin:0; padding:0; }
#todo .todo-item{
  display:grid;
  grid-template-columns: 28px 1fr auto;
  align-items:center; gap:12px; padding: 10px 6px;
  border-bottom: 1px dashed var(--fz-border,#222);
}
html:not(.dark) #todo .todo-item{ border-bottom-color: #eee; }
#todo .todo-item:last-child{ border-bottom:none; }

#todo .todo-item .text{ line-height:1.5; }
#todo .todo-item.done .text{ text-decoration: line-through; opacity:.6; }

#todo .badges{ display:flex; gap:8px; align-items:center; }
#todo .badge{
  padding:2px 8px; border-radius:999px; border:1px solid var(--fz-border,#222);
  font-size:.8rem; opacity:.9;
}
html:not(.dark) #todo .badge{ border-color:#e5e5e5; }
#todo .priority{
  display:inline-flex; align-items:center; gap:6px; font-variant-numeric: tabular-nums;
}
#todo .dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
#todo .dot.high{ background:#E5484D; }
#todo .dot.medium{ background:#F1A10D; }
#todo .dot.low{ background:#A1A1AA; }

#todo .todo-actions{ display:flex; gap:6px; }
#todo .btn-ghost{ border:none; background: transparent; padding:6px 8px; border-radius: 10px; cursor:pointer; }
#todo .btn-ghost:hover{ background: rgba(127,127,127,.1); }
html:not(.dark) #todo .btn-ghost:hover{ background: rgba(0,0,0,.05); }

#todo .todo-footer{
  display:flex; justify-content:space-between; align-items:center; margin-top: 10px; gap: 12px;
}
#todo .hint{ opacity:.7; font-size:.9rem; }

/* foco visível */
#todo button:focus-visible, #todo input:focus-visible, #todo select:focus-visible{
  outline: 2px solid var(--brand,#7A5FA7); outline-offset: 2px;
}

/* responsivo */
@media (max-width: 560px){
  #todo .todo-input{ grid-template-columns: 1fr; }
}

/* ====== Checklist – ajustes de cor Dark/Light (usar com os tokens globais) ====== */

/* base (herda do styles.css) */
#todo{ background: var(--fz-surface); border:1px solid var(--fz-border); }
#todo .sub, #todo .hint { color: var(--fz-text-dim); }

/* Inputs/Select/Date – borda/ fundo corretos por tema */
#todo input[type="text"],
#todo input[type="date"],
#todo select{
  background: var(--fz-surface);
  color: var(--fz-text);
  border: 1px solid var(--fz-border);
}

/* Pills (abas) e chips – hover/ativo mais visíveis */
#todo .tab,
#todo .chip{
  color: var(--fz-text);
  border-color: var(--fz-border);
}
#todo .tab.is-active,
#todo .chip.is-active{
  box-shadow: 0 0 0 2px var(--fz-primary) inset;
}
#todo .tab:hover,
#todo .chip:hover{
  background: color-mix(in srgb, var(--fz-surface) 85%, var(--fz-primary) 15%);
}

/* Itens – linha e fundo secundário (dark e light) */
#todo .todo-item{
  border-bottom: 1px dashed var(--fz-border);
}
#todo .todo-actions .btn-ghost:hover{
  background: color-mix(in srgb, var(--fz-surface) 80%, #fff 20%);
}

/* Badges (Hoje/Amanhã/data) e prioridade */
#todo .badge{
  background: var(--fz-surface-2);
  border: 1px solid var(--fz-border);
  color: var(--fz-text);
}
#todo .dot.high{ background:#E5484D; }
#todo .dot.medium{ background:#F1A10D; }
#todo .dot.low{ background:#A1A1AA; }

/* ===== Tema claro (refinos específicos) ===== */
body.light #todo{
  background: #fff;
  border-color: #E0E3E8;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
body.light #todo input[type="text"],
body.light #todo input[type="date"],
body.light #todo select{
  background: #fff;
  border-color: #E0E3E8;
  color: #3B3F56;
}
body.light #todo .tab:hover,
body.light #todo .chip:hover{
  background: rgba(122,95,167,.08);
}
body.light #todo .badge{
  background: #fff;
  border-color: #E0E3E8;
  color: #3B3F56;
}
/* botão ghost no light: hover cinza leve */
body.light #todo .todo-actions .btn-ghost:hover{
  background: rgba(0,0,0,.05);
}

/* contador (0/0) acompanhar o tema */
#todo .meta #todo-counter{ color: var(--fz-text-dim); }

/* botão primário já fica ok pelo styles.css (mantém texto branco no light) */
/* Modal pequeno p/ “Nova lista” */
.modal-card.modal-sm{ width:min(460px, 92vw); }

/* SEO card – aparência leve e coerente com o tema */
.seo-card{
  margin-top: 28px; padding: 20px 22px;
  border: 1px solid var(--fz-border); border-radius: 12px;
  background: var(--fz-surface); box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
body.light .seo-card{ background:#fff; border-color:#E0E3E8; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.seo-card .title-bar{ margin-bottom: 10px; }
.seo-card ol{ margin: 10px 0 8px 20px; line-height: 1.7; }
.seo-card kbd{ padding: 2px 6px; border:1px solid var(--fz-border); border-radius:6px; font-size:.9em; }
.seo-card .links-rel{ margin-top: 8px; opacity:.9; }

/* ===== Callout Dica — estilo igual ao blog ===== */
.callout.pro{
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--fz-border);
  border-radius: 12px;
  background: var(--fz-surface);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
body.light .callout.pro{
  background: #fff;
  border-color: #E0E3E8;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* barra vertical com degradê (marca visual usada no blog) */
.callout.pro::before{
  content: "";
  position: absolute;
  left: 6px;           /* afasta um pouco da borda para dar “respiro” */
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7A5FA7, #8FCBFF);
  opacity: .95;
}

/* ícone e conteúdos */
.callout-icon{
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;     /* alinha verticalmente com o texto */
}
.callout-content{ flex: 1; }

/* título em linha + corpo em itálico (padrão das dicas do blog) */
.callout-title{
  display: inline;
  font-weight: 600;
  margin: 0;
  padding: 0;
}
.callout-content p{
  display: inline;
  margin: 0;
  padding: 0;
  font-style: italic;
}

/* links dentro do callout */
.callout-content a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.callout-content a:hover{ text-decoration-thickness: 2px; }

/* ——— HowTo: ajustes finos ——— */
.seo-card.howto{ padding: 20px 20px 18px; }
@media (max-width: 560px){
  .seo-card.howto{ padding: 16px; }
}

/* callout: alinhamento fino do ícone/título */
.callout-icon{ margin-top: 2px; }
.callout-title{ font-weight: 600; }

/* chips de links (se ainda não estiverem ativos) */
.howto-links{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 8px; }
.chip-link{
  display:inline-block; padding:8px 12px; border-radius:999px;
  border:1px solid var(--fz-border); text-decoration:none; color:inherit;
  transition: background .2s, border-color .2s, transform .08s ease-out;
}
.chip-link:hover{ background: rgba(122,95,167,.10); border-color: rgba(122,95,167,.35); }
.chip-link:active{ transform: translateY(1px); }

/* título com “âncora” (opcional) */
#howto-title{ position: relative; scroll-margin-top: 96px; }
#howto-title .anchor{
  margin-left: .4rem; opacity:.6; text-decoration: none;
}
#howto-title .anchor:hover{ opacity: 1; }

.faq { margin: 10px 0 0; }
.faq dt { font-weight: 600; margin-top: 10px; }
.faq dd { margin: 6px 0 10px 0; opacity:.95; }

/* FAQ – espaçamento e contraste */
.seo-card .faq dt{font-weight:600;margin:14px 0 6px}
.seo-card .faq dd{margin:0 0 2px;color:var(--fz-text-dim);line-height:1.65}
.seo-card .faq dd+dt{margin-top:16px}
