/*
 * Meu App Movimento – tema noturno automático (18h–05h59 BRT).
 * Escopo EXCLUSIVO .movimento-aluno-tema-escuro, nunca no html/body ou Acesso Pro.
 * Nenhum filtro invert(): preserva logos, avatares, gráficos, fotos, semáforos e PDFs.
 */
.movimento-aluno-tema-escuro {
  --background: 218 26% 8%;
  --foreground: 210 35% 96%;
  --card: 216 23% 15%;
  --card-foreground: 210 35% 96%;
  --popover: 216 23% 15%;
  --popover-foreground: 210 35% 96%;
  --muted: 215 19% 21%;
  --muted-foreground: 214 20% 77%;
  --border: 216 19% 29%;
  --input: 216 19% 29%;
  --ring: 49 99% 50%;
  color-scheme: dark;
  color: #e8edf5;
  background-color: #10151c !important;
}
.movimento-aluno-tema-escuro :is([class~="bg-white"],[class~="bg-slate-50"],[class~="bg-slate-100"],[class~="bg-slate-200"],[class~="bg-slate-50/40"],[class~="bg-slate-50/60"]):not(.report-page):not(.report-page *) {
  background-color: #202833;
}
.movimento-aluno-tema-escuro :is([class~="bg-amber-50"],[class~="bg-amber-50/40"],[class~="bg-amber-50/50"],[class~="bg-amber-50/60"],[class~="bg-amber-100"]):not(.report-page):not(.report-page *) {
  background-color: #393322;
}
.movimento-aluno-tema-escuro :is([class~="bg-red-50"],[class~="bg-rose-50"],[class~="bg-rose-50/50"],[class~="bg-rose-100"]):not(.report-page):not(.report-page *) {
  background-color: #3c2630;
}
.movimento-aluno-tema-escuro :is([class~="bg-emerald-50"],[class~="bg-emerald-100"]):not(.report-page):not(.report-page *) {
  background-color: #1e3b34;
}
.movimento-aluno-tema-escuro :is([class~="bg-blue-50"],[class~="bg-sky-50"],[class~="bg-indigo-50"]):not(.report-page):not(.report-page *) {
  background-color: #23354a;
}
/* Superfícies neutras em hex: não podem continuar claras com texto invertido.
 * Preserva amarelos de ação, cores clínicas, estados, fotos e relatórios A4. */
.movimento-aluno-tema-escuro :is([class~="bg-[#f7f7f9]"],[class~="bg-[#F7F7F9]"],[class~="bg-[#f9fafb]"],[class~="bg-[#F9FAFB]"],[class~="bg-[#f8fafc]"],[class~="bg-[#F8FAFC]"],[class~="bg-[#f5f5f4]"],[class~="bg-[#f6f6f5]"],[class~="bg-[#f8f5e9]"]):not(.report-page):not(.report-page *) {
  background-color: #253140;
  color: #f4f7fb;
}
/* Títulos, textos secundários e legendas originalmente fixados em tons slate. */
.movimento-aluno-tema-escuro :is([class~="text-slate-950"],[class~="text-slate-900"],[class~="text-slate-800"],[class~="text-[#101113]"]):not(.report-page):not(.report-page *):not([class*="bg-[#"]):not([class*="bg-amber-400"]):not([class*="bg-amber-500"]) {
  color: #f4f7fb;
}
.movimento-aluno-tema-escuro :is([class~="text-slate-700"],[class~="text-slate-600"]):not(.report-page):not(.report-page *) {
  color: #d0d9e5;
}
.movimento-aluno-tema-escuro :is([class~="text-slate-500"],[class~="text-slate-400"]):not(.report-page):not(.report-page *) {
  color: #adbacb;
}
.movimento-aluno-tema-escuro :is([class~="text-amber-950"],[class~="text-amber-900"],[class~="text-amber-800"],[class~="text-amber-700"]):not(.report-page):not(.report-page *) {
  color: #f8cf6a;
}
.movimento-aluno-tema-escuro :is([class~="text-red-700"],[class~="text-red-600"],[class~="text-rose-800"]):not(.report-page):not(.report-page *) {
  color: #ffb4b4;
}
.movimento-aluno-tema-escuro :is([class~="text-emerald-900"],[class~="text-emerald-800"],[class~="text-emerald-700"]):not(.report-page):not(.report-page *) {
  color: #9be4c4;
}
.movimento-aluno-tema-escuro :is([class~="border-slate-100"],[class~="border-slate-200"],[class~="border-slate-300"],[class~="border-[#e7e7e3]"]):not(.report-page):not(.report-page *) {
  border-color: #3b4757;
}
.movimento-aluno-tema-escuro :is([class~="border-amber-100"],[class~="border-amber-200"],[class~="border-amber-300"]):not(.report-page):not(.report-page *) {
  border-color: #705d30;
}
.movimento-aluno-tema-escuro :is([class~="border-red-200"],[class~="border-red-300"],[class~="border-rose-200"]):not(.report-page):not(.report-page *) {
  border-color: #96505b;
}
.movimento-aluno-tema-escuro :is([class~="border-emerald-200"],[class~="border-sky-200"],[class~="border-indigo-200"]):not(.report-page):not(.report-page *) {
  border-color: #476f71;
}
.movimento-aluno-tema-escuro :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]):not(.report-page *):not([class*="bg-[#FED001]"]):not([class*="bg-[#ffd400]"]) {
  color: #f3f6fa;
  caret-color: #ffd400;
}
.movimento-aluno-tema-escuro :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]):not(.report-page *)::-moz-placeholder {
  color: #a8b6c8;
}
.movimento-aluno-tema-escuro :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]):not(.report-page *)::placeholder {
  color: #a8b6c8;
}
/* Campos brancos fixos, inclusive formulários de cadastro, pagamento e login. */
.movimento-aluno-tema-escuro :is(input,select,textarea)[class~="bg-white"]:not(.report-page *),
.movimento-aluno-tema-escuro :is(input,select,textarea)[class~="bg-[#f8f9fa]"]:not(.report-page *) {
  background-color: #283242;
  border-color: #59667a;
}
@media (hover: hover) {
  .movimento-aluno-tema-escuro [class~="hover:bg-slate-50"]:hover,
  .movimento-aluno-tema-escuro [class~="hover:bg-slate-100"]:hover {
    background-color: #303c4c;
  }
  .movimento-aluno-tema-escuro :is([class~="hover:bg-amber-50"],[class~="hover:bg-amber-100"]):hover {
    background-color: #4c4029;
  }
}
/* A cor de ação amarelo Movimento mantém texto escuro e contraste. */
.movimento-aluno-tema-escuro :is([class~="bg-[#ffd400]"],[class~="bg-[#FED001]"],[class~="bg-amber-400"],[class~="bg-amber-500"]):not(.report-page *) {
  color: #14181f;
}
/* Exceções: documentação, impressão, relatórios de avaliação permanecem claros. */
.movimento-aluno-tema-escuro .report-page,
.movimento-aluno-tema-escuro [data-movimento-documento-claro] {
  color-scheme: light;
  color: #111827;
  background-color: #fff;
}
/* Login utiliza tonalidades hexadecimais específicas, não as classes slate. */
.movimento-aluno-tema-escuro [class~="bg-[#f4f4f1]"] {
  background-color: #10151c;
}
.movimento-aluno-tema-escuro [class~="bg-[#f8f9fa]"] {
  background-color: #283242;
}
.movimento-aluno-tema-escuro [class~="bg-[#FFFBEB]"] {
  background-color: #433923;
  border-color: #836f30;
}
.movimento-aluno-tema-escuro [class~="text-[#111111]"]:not([class*="bg-[#"]) {
  color: #f4f7fb;
}
.movimento-aluno-tema-escuro [class~="text-[#101113]"] {
  color: #f4f7fb;
}
.movimento-aluno-tema-escuro [class~="bg-[#101113]"] {
  background-color: #101113;
}
/* Caixa e seletor de aparência acessíveis nos dois temas. */
.movimento-tema-seletor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d2d8e0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  padding: 6px 8px;
}
.movimento-tema-seletor select {
  color: inherit;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  outline-offset: 3px;
  min-height: 32px;
  cursor: pointer;
}
.movimento-aluno-tema-escuro .movimento-tema-seletor {
  background: #283242;
  color: #edf2f9;
  border-color: #526072;
}
.movimento-aluno-tema-escuro .movimento-tema-seletor select option {
  background: #283242;
  color: #edf2f9;
}
