/* sed.css — design tokens extraídos do site oficial (computed CSS) */
:root {
  --azul-primario: #3D77B7;
  --azul-hover: #2A5380;
  --azul-escuro: #183B56;
  --azul-claro: #DFEAF9;
  --azul-turquesa: #3091B1;
  --texto: #606878;
  --texto-claro: #B3BAC5;
  --fundo: #F4F5F7;
  --branco: #FFF;
  --verde: #26A95E;
  --vermelho: #F44336;
  --radius: 16px;
  --sombra: 0 0 4px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.06);
  --fonte: "Open Sans", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--fonte);
  background: var(--fundo);
  color: var(--azul-escuro);
}
button { font-family: var(--fonte); cursor: pointer; }
input, select, textarea { font-family: var(--fonte); }

/* ═══ LOGIN (tela cheia, gradiente azul deles) ═══ */
.tela-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 80% 50%, #D7E0F4 0%, transparent 20%),
              linear-gradient(#F5F6FD 20%, #EBF0F8 80%);
  padding: 16px;
}
.login-card {
  display: flex; border-radius: var(--radius); overflow: hidden;
  width: 100%; max-width: 860px; min-height: 480px;
  background: #FFF; box-shadow: var(--sombra);
}
.login-hero {
  flex: 1; padding: 40px 32px; color: #FFF;
  background: linear-gradient(rgba(59,180,214,0), #3BB4D6),
              linear-gradient(109.77deg, #86BFDB 0.36%, #0B5276 99.64%);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.login-hero h1 { font-size: clamp(24px, 3vw, 40px); font-weight: 200; line-height: 1.2; }
.login-hero p { font-weight: 200; font-size: 16px; opacity: .9; }
.login-form { flex: 1; padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.login-form h2 { color: var(--texto); font-size: 36px; font-weight: 700; }
.login-form .sub { color: var(--texto); font-size: 18px; }
@media (max-width: 700px) { .login-card { flex-direction: column; } .login-hero { padding: 24px; min-height: 140px; } }

.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-size: 14px; color: #6B778C; font-weight: 400; }
.campo input, .campo select {
  border: 1px solid rgba(0,0,0,.23); border-radius: 4px;
  padding: 13.5px 14px; font-size: 16px; background: #FFF; color: var(--azul-escuro);
}
.campo input:focus { outline: none; border-color: var(--azul-primario); border-width: 2px; }
.linha-ra { display: flex; gap: 10px; }
.linha-ra .dig { flex: 1; } .linha-ra .suf { width: 70px; }

/* ═══ BOTÕES ═══ */
.btn {
  border-radius: 30px; padding: 10px 24px; font-weight: 600; font-size: 15px;
  border: none; transition: all .2s;
}
.btn-primario { background: var(--azul-primario); color: #FFF; }
.btn-primario:hover { background: var(--azul-hover); }
.btn-contorno { background: transparent; border: 2px solid var(--azul-primario); color: var(--azul-primario); }
.btn-contorno:hover { background: rgba(61,119,183,.04); }
.btn-largo { width: 100%; padding: 12px; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ═══ APP: topbar ═══ */
#app { display: none; min-height: 100vh; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: #FFF; min-height: 64px; display: flex; align-items: center;
  padding: 0 16px; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.topbar .logo { height: 40px; }
.topbar .spacer { flex: 1; }
.topbar button.icon { background: none; border: none; color: var(--azul-escuro); padding: 8px; border-radius: 50%; }
.topbar button.icon:hover { background: rgba(0,0,0,.04); }
.topbar svg { width: 26px; height: 26px; }

/* ═══ CONTEÚDO ═══ */
.conteudo { max-width: 900px; margin: 0 auto; padding: 80px 16px 40px; }
.saudacao { font-size: 28px; color: var(--texto); margin-bottom: 4px; }
.sub-saud { color: var(--texto-claro); margin-bottom: 24px; }

/* ═══ CARDS ═══ */
.card {
  background: linear-gradient(93deg, #F5F5F5 -0.02%, #FFF 99.14%), #FFF;
  border: .5px solid var(--azul-claro); border-radius: var(--radius);
  box-shadow: var(--sombra); padding: 16px; margin-bottom: 16px;
}
.card-click { cursor: pointer; transition: transform .15s; }
.card-click:hover { transform: translateY(-2px); }
.card-titulo { font-size: 17px; font-weight: 600; color: var(--azul-escuro); }
.card-sub { font-size: 13px; color: var(--texto-claro); margin-top: 4px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-afazer { background: #FFF3E0; color: #EF6C00; }
.badge-feito { background: #E8F5E9; color: #2E7D32; }
.badge-rascunho { background: #E3F2FD; color: #1565C0; }

/* tarefa card com faixa de disciplina */
.tarefa-card { display: flex; gap: 0; overflow: hidden; padding: 0; }
.tarefa-faixa { width: 6px; flex-shrink: 0; }
.tarefa-corpo { padding: 14px 16px; flex: 1; }
.tarefa-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tarefa-data { font-size: 12px; color: var(--texto-claro); }

/* ═══ plataforma grid (home) ═══ */
.plata-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.plata-card {
  background: #FFF; border: .5px solid var(--azul-claro); border-radius: var(--radius);
  box-shadow: var(--sombra); padding: 20px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
}
.plata-card svg { width: 56px; height: 62px; }
.plata-nome { font-size: 13px; font-weight: 600; color: var(--azul-escuro); }
.plata-badge {
  background: var(--vermelho); color: #FFF; border-radius: 12px;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
}

/* ═══ questão ═══ */
.questao { border: .5px solid var(--azul-claro); border-radius: 12px; background: #FFF; padding: 16px; margin-bottom: 14px; box-shadow: var(--sombra); }
.questao-tipo { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--azul-turquesa); margin-bottom: 8px; letter-spacing: .5px; }
.questao-texto { font-size: 15px; line-height: 1.6; color: var(--azul-escuro); }
.opcao {
  display: flex; gap: 10px; padding: 12px; margin-top: 8px;
  border: 1px solid var(--azul-claro); border-radius: 10px; cursor: pointer;
  font-size: 14px; transition: background .15s;
}
.opcao:hover { background: #F5F9FF; }
.opcao.selecionada { background: var(--azul-claro); border-color: var(--azul-primario); }
.opcao .letra { font-weight: 700; color: var(--azul-primario); }
.info-card { background: var(--azul-claro); border-radius: 12px; padding: 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.6; }

/* ═══ captcha modal ═══ */
.modal-fundo {
  position: fixed; inset: 0; z-index: 1300; background: rgba(247,245,253,.7);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #FFF; border-radius: var(--radius); padding: 24px;
  width: min(92vw, 380px); display: flex; flex-direction: column; gap: 14px;
}
.modal h3 { color: var(--texto); font-size: 20px; }
.captcha-img { background: #FFF; border-radius: 8px; align-self: center; max-width: 240px; }

/* ═══ toast ═══ */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--azul-escuro); color: #FFF; padding: 12px 24px;
  border-radius: 10px; font-size: 14px; z-index: 2000; display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ═══ settings ═══ */
.settings-grid { display: flex; gap: 10px; }
.tag-ia { background: linear-gradient(93deg,#7B2FF7,#F107A3); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.loader { width: 40px; height: 40px; border: 4px solid var(--azul-claro); border-top-color: var(--azul-primario); border-radius: 50%; animation: girar 1s linear infinite; margin: 40px auto; }
@keyframes girar { to { transform: rotate(360deg); } }
.oculto { display: none !important; }
