/* Correção de contraste dos resumos - Study STTP IDECAN */

#resumos-uiux-final,
.rx-wrap,
.study-resumos-content,
main,
article,
section {
  color: #0f172a !important;
}

#resumos-uiux-final h1,
#resumos-uiux-final h2,
#resumos-uiux-final h3,
#resumos-uiux-final h4,
.rx-wrap h1,
.rx-wrap h2,
.rx-wrap h3,
.rx-wrap h4,
.study-resumos-content h1,
.study-resumos-content h2,
.study-resumos-content h3,
.study-resumos-content h4 {
  color: #020617 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#resumos-uiux-final p,
#resumos-uiux-final li,
#resumos-uiux-final span,
#resumos-uiux-final small,
#resumos-uiux-final div,
.rx-wrap p,
.rx-wrap li,
.rx-wrap span,
.rx-wrap small,
.rx-wrap div,
.study-resumos-content p,
.study-resumos-content li,
.study-resumos-content span,
.study-resumos-content small,
.study-resumos-content div,
.muted,
.subtle,
.description,
.desc,
.card p,
.card small {
  color: #1e293b !important;
  opacity: 1 !important;
  filter: none !important;
}

.rx-card,
.study-resumos-card,
.card,
.resumo-card,
.materia-card {
  background: rgba(255,255,255,0.98) !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,0.16) !important;
}

.rx-card *,
.study-resumos-card *,
.resumo-card *,
.materia-card *,
.card * {
  opacity: 1 !important;
}

.rx-badge,
.badge,
.tag,
.pill {
  color: #0f172a !important;
  background: #e0f2fe !important;
  border-color: #38bdf8 !important;
  opacity: 1 !important;
}

a,
a:visited {
  color: #075985 !important;
  opacity: 1 !important;
}

button,
.btn,
.rx-btn {
  opacity: 1 !important;
  color: #ffffff !important;
}

pre,
code,
.resumo-texto,
.rx-text,
.rx-content,
.study-resumo-texto {
  color: #0f172a !important;
  background: #ffffff !important;
  opacity: 1 !important;
  line-height: 1.65 !important;
}

/* Reforço final de leitura */
body,
html {
  color: #0f172a !important;
}

#app,
#root,
.study-shell,
.study-main,
.study-content,
.rx-wrap,
#resumos-uiux-final {
  color: #0f172a !important;
}

#app *,
#root *,
.study-shell *,
.study-main *,
.study-content *,
.rx-wrap *,
#resumos-uiux-final * {
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

.rx-wrap p,
.rx-wrap li,
.rx-wrap div,
.rx-wrap span,
.rx-wrap small,
#resumos-uiux-final p,
#resumos-uiux-final li,
#resumos-uiux-final div,
#resumos-uiux-final span,
#resumos-uiux-final small {
  color: #111827 !important;
}

.rx-wrap h1,
.rx-wrap h2,
.rx-wrap h3,
.rx-wrap h4,
#resumos-uiux-final h1,
#resumos-uiux-final h2,
#resumos-uiux-final h3,
#resumos-uiux-final h4 {
  color: #000000 !important;
  font-weight: 800 !important;
}

.rx-card,
.rx-panel,
.rx-content,
.card,
.resumo-card {
  background: #ffffff !important;
  color: #111827 !important;
}

/* Correção agressiva final - contraste máximo na Resumoteca */
body:has(#resumos-uiux-final),
body:has(.rx-wrap),
body:has(.study-resumos-content) {
  background: #f8fafc !important;
}

#resumos-uiux-final,
#resumos-uiux-final *,
.rx-wrap,
.rx-wrap *,
.study-resumos-content,
.study-resumos-content * {
  color: #020617 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

#resumos-uiux-final .muted,
#resumos-uiux-final .text-muted,
#resumos-uiux-final .text-slate-400,
#resumos-uiux-final .text-slate-500,
.rx-wrap .muted,
.rx-wrap .text-muted,
.rx-wrap .text-slate-400,
.rx-wrap .text-slate-500 {
  color: #334155 !important;
}

#resumos-uiux-final button,
#resumos-uiux-final a,
.rx-wrap button,
.rx-wrap a {
  color: #ffffff !important;
  background: #0369a1 !important;
  border-color: #075985 !important;
}

#resumos-uiux-final input,
#resumos-uiux-final select,
#resumos-uiux-final textarea,
.rx-wrap input,
.rx-wrap select,
.rx-wrap textarea {
  color: #020617 !important;
  background: #ffffff !important;
  border-color: #64748b !important;
}
