* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #0d1b2a; color: #f0f0f0; min-height: 100vh; }

/* ========== LOGIN ========== */
.login-box {
  max-width: 400px; margin: 60px auto; background: #1a2f45;
  padding: 40px; border-radius: 12px; text-align: center;
}
.login-box h1 { color: #C9A83C; font-size: 24px; margin-bottom: 8px; }
.login-box p { color: #aaa; margin-bottom: 24px; }

/* ========== INPUTS ========== */
input, select, textarea {
  width: 100%; padding: 12px; margin: 8px 0;
  border-radius: 8px; border: 1px solid #2a4a6a;
  background: #0d1b2a; color: #fff; font-size: 16px;
}
input::placeholder { color: #556; }
input[type="checkbox"] { width: auto; margin: 0; }

/* ========== BOTOES ========== */
button {
  width: 100%; padding: 14px; background: #C9A83C; color: #0d1b2a;
  border: none; border-radius: 8px; font-size: 16px;
  font-weight: bold; cursor: pointer; margin-top: 8px;
}
button:hover { background: #e0bc50; }
button:active { transform: scale(0.98); }

/* ========== CONTAINER ========== */
.container { max-width: 720px; margin: 0 auto; padding: 20px; }

header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
header h2 { color: #C9A83C; font-size: 20px; }
header button { width: auto; padding: 8px 16px; font-size: 14px; }

/* ========== ABAS ========== */
.abas { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.aba-btn {
  width: auto; padding: 9px 14px; background: #1a2f45;
  color: #aaa; border: 1px solid #2a4a6a; border-radius: 8px;
  font-size: 13px; font-weight: normal; flex: 1; min-width: 70px;
  text-align: center; white-space: nowrap;
}
.aba-btn.ativa { background: #C9A83C; color: #0d1b2a; border-color: #C9A83C; }
.aba-btn:hover:not(.ativa) { background: #1e3550; color: #fff; }

/* ========== CARDS ========== */
.card {
  background: #1a2f45; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 16px; color: #C9A83C; font-size: 16px; }

/* ========== DISCIPLINA CARD ========== */
.disciplina-card {
  background: #0d1b2a; border-radius: 8px; padding: 12px;
  margin-bottom: 8px; display: flex; gap: 12px;
  align-items: center; flex-wrap: wrap;
}
.disciplina-card strong { flex: 1; min-width: 120px; font-size: 15px; }
.disciplina-card span { color: #aaa; font-size: 13px; }

/* ========== REGISTRO ========== */
.registro-item {
  background: #0d1b2a; border-radius: 8px;
  padding: 14px; margin-bottom: 10px;
}
.registro-item label { display: block; margin-bottom: 6px; font-size: 14px; }
.registro-item input[type="number"] {
  flex: 1; padding: 8px; border-radius: 6px;
  border: 1px solid #2a4a6a; background: #1a2f45; color: #fff;
}

/* ========== LISTA ITEMS ========== */
.item-lista {
  background: #0d1b2a; border-radius: 8px; padding: 12px;
  margin-bottom: 8px; display: flex; gap: 12px;
  align-items: center; flex-wrap: wrap;
}
.item-lista strong { flex: 1; min-width: 120px; }
.item-lista span { color: #aaa; font-size: 13px; }

/* ========== BOTOES ACAO ========== */
.btn-acao {
  width: auto; padding: 6px 12px; font-size: 13px;
  margin: 0; border-radius: 6px; font-weight: normal;
}
.btn-editar {
  background: #1a3a5c; color: #C9A83C;
  border: 1px solid #C9A83C;
}
.btn-editar:hover { background: #C9A83C; color: #0d1b2a; }
.btn-excluir {
  background: #3a1a1a; color: #e57373;
  border: 1px solid #e57373;
}
.btn-excluir:hover { background: #e57373; color: #fff; }

/* ========== SELECT ========== */
select {
  width: 100%; padding: 12px; margin: 8px 0;
  border-radius: 8px; border: 1px solid #2a4a6a;
  background: #0d1b2a; color: #fff; font-size: 16px;
}

/* ========== STREAK ========== */
.streak-card {
  background: linear-gradient(135deg, #1a3a5c, #0d1b2a);
  border-radius: 16px; padding: 24px 20px;
  margin-bottom: 16px; border: 1px solid #2a4a6a;
}
.streak-numero { font-size: 52px; font-weight: bold; color: #C9A83C; line-height: 1; }
.streak-dias-row { display: flex; justify-content: space-between; gap: 6px; margin: 16px 0; }
.streak-dia { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.streak-circulo {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: bold; transition: all 0.3s;
}
.streak-circulo.cumpriu { background: #C9A83C22; border: 2px solid #C9A83C; color: #C9A83C; }
.streak-circulo.hoje { background: #1a3a5c; border: 2px solid #4a8ab5; color: #4a8ab5; box-shadow: 0 0 12px #4a8ab533; }
.streak-circulo.futuro { background: transparent; border: 2px solid #2a4a6a; color: #2a4a6a; }
.streak-circulo.perdeu { background: #1a1a1a; border: 2px solid #333; color: #555; }
.streak-label { font-size: 11px; color: #aaa; }
.streak-label.hoje { color: #fff; font-weight: bold; }
.streak-stats {
  background: #0d1b2a; border-radius: 10px; padding: 12px;
  display: flex; justify-content: space-between; align-items: center; margin-top: 4px;
}
.streak-stat { text-align: center; }
.streak-stat-num { font-size: 20px; font-weight: bold; }
.streak-stat-label { color: #aaa; font-size: 11px; margin-top: 2px; }
.streak-divider { width: 1px; height: 30px; background: #1a2f45; }
.nivel-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 12px; font-weight: bold; margin-top: 6px;
}

/* ========== RESPONSIVO MOBILE ========== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 12px; }

  header { gap: 8px; }
  header h2 { font-size: 17px; }
  header > div:last-child { display: flex; gap: 6px; }
  header button { padding: 7px 10px; font-size: 12px; }

  .abas { gap: 4px; }
  .aba-btn { padding: 8px 8px; font-size: 12px; min-width: 60px; }

  .card { padding: 14px; }
  .card h3 { font-size: 15px; }

  .disciplina-card { flex-direction: column; gap: 4px; align-items: flex-start; }
  .disciplina-card strong { font-size: 14px; }

  .registro-item input[type="number"] { width: 100%; }

  .item-lista { flex-direction: column; align-items: flex-start; gap: 6px; }
  .item-lista > div { width: 100%; }

  .btn-acao { padding: 8px 10px; font-size: 12px; }

  .streak-circulo { width: 32px; height: 32px; font-size: 13px; }
  .streak-numero { font-size: 42px; }
  .streak-stat-num { font-size: 17px; }

  input, select, button, textarea { font-size: 16px; }

  .login-box { margin: 30px 16px; padding: 28px 20px; }
}

@media (max-width: 380px) {
  .aba-btn { font-size: 11px; padding: 7px 6px; }
  .streak-circulo { width: 28px; height: 28px; font-size: 11px; }
  .streak-stats { gap: 4px; padding: 10px 6px; }
  .streak-stat-num { font-size: 15px; }
  .streak-stat-label { font-size: 10px; }
}
