/* ==================================================
   a1bim4.css - Consolidado dos modelos anexados
   (modelo_planos_aula.css + demais)
   ================================================== */

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.bg-robotica {
  background: linear-gradient(135deg, #0a1f0a 0%, #0d2a0a 100%);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #e9f5db;
  min-height: 100vh;
}

/* ========== VARIÁVEIS GLOBAIS ========== */
:root {
  --robot-green: #4a7c3f;
  --robot-dark: #1e2a1a;
  --robot-bg: #0d1f0b;
  --robot-card: #2c3e2b;
  --robot-gold: #ffb347;
  --robot-glow: #ffcc44;
  --robot-danger: #e74c3c;
  --robot-text: #e9f5db;
  --robot-text-claro: #ebf0eb;
}

/* ========== CABEÇALHO ROBÓTICO (modelo_cabecalho.css) ========== */
.cabecalho-robotico {
  background: #0c140b;
  background-image: repeating-linear-gradient(45deg,
      #2a3b24 0px,
      #2a3b24 2px,
      #1b2a18 2px,
      #1b2a18 8px);
  padding: 1rem 0;
  border-bottom: 5px solid #9bbc7b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cabecalho-rebelde {
  border-bottom-color: #ffb347;
}

.cabecalho-rebelde::before {
  content: "⚠️ BUG ZONE ⚠️";
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 0.6rem;
  opacity: 0.3;
  font-family: monospace;
  white-space: nowrap;
  pointer-events: none;
}

.logo-rb,
.logo-gn {
  max-height: 70px;
  width: auto;
  filter: drop-shadow(2px 2px 6px black);
  transition: transform 0.2s ease;
  border-radius: 12px;
}

.logo-rb:hover,
.logo-gn:hover {
  transform: scale(1.05);
}

.titulo-principal {
  font-family: "Press Start 2P", cursive;
  font-size: 1.95rem;
  letter-spacing: 2px;
  color: #e9f5db;
  background: linear-gradient(135deg, #1a2b17 0%, #2c3e2b 100%);
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 60px;
  position: relative;
  text-transform: uppercase;
  border: 2px solid #ffb347;
  box-shadow:
    0 0 0 2px #1a2b17,
    0 0 0 4px #ffb347,
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  text-shadow: 2px 2px 0 #3d5a2b;
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

.titulo-principal::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20%;
  width: 60%;
  height: 12px;
  background: repeating-linear-gradient(90deg,
      rgba(255, 220, 150, 0.6) 0px,
      rgba(255, 220, 150, 0.6) 8px,
      rgba(200, 170, 100, 0.4) 8px,
      rgba(200, 170, 100, 0.4) 16px);
  border-radius: 20px;
  filter: blur(1px);
  pointer-events: none;
}

.titulo-principal::after {
  content: "⬤";
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 0.7rem;
  color: #ffb347;
  text-shadow: 0 0 3px #000;
  pointer-events: none;
}

.titulo-principal .parafuso-esquerda {
  position: absolute;
  bottom: -6px;
  left: -6px;
  font-size: 0.7rem;
  color: #ffb347;
  text-shadow: 0 0 3px #000;
  pointer-events: none;
}

.titulo-principal:hover {
  transform: translateY(-2px);
  border-color: #ffcc44;
  box-shadow:
    0 0 0 2px #1a2b17,
    0 0 0 4px #ffcc44,
    0 6px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #2a3b24 0%, #1a2b17 100%);
}

.glitch-text {
  font-family: "Press Start 2P", monospace;
  letter-spacing: 1px;
  animation: pulseGlitch 2s infinite alternate;
}

.subtitulo-chiclete {
  font-family: "Chakra Petch", monospace;
  font-size: 0.85rem;
  color: #ffcc88;
  margin-top: 0.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #1a2b17;
}

.selo-sucata {
  background: #1e1e1e;
  color: #ffcc44;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-family: monospace;
  border-left: 3px solid #ff9900;
  letter-spacing: 1px;
}

.painel-status-sucata {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  border: 1px solid #ffb347;
  font-size: 0.75rem;
}

.status-bug,
.status-cafe,
.status-alerta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.numero-bugs {
  font-weight: bold;
  color: #ffcc44;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
}

.linha-de-erro {
  font-family: monospace;
  font-size: 0.7rem;
  color: #ffaa66;
  border-top: 1px dashed #ffb347;
  padding-top: 0.3rem;
  text-align: center;
}

@keyframes piscaLed {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 5px #00ff00;
  }

  50% {
    opacity: 0.4;
    text-shadow: 0 0 15px #ffcc00;
  }
}

.pisca-alerta {
  animation: piscaLed 1s step-start infinite;
  color: #ffcc00;
  font-weight: bold;
}

/* ========== PROJETO HEADER (modelo_apresentacao_bimestre.css) ========== */
.projeto-header {
  background: linear-gradient(90deg, #1a2b17, #2c3e2b);
  border-left: 8px solid #ffb347;
  border-radius: 20px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.projeto-header h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 1.2rem;
  margin: 0;
  color: #ffb347;
}

.badge-projeto {
  background: #e74c3c;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
}

.bg-robocard {
  background: linear-gradient(145deg, var(--robot-card), var(--robot-dark));
  border: 1px solid var(--robot-gold);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  border-radius: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--robot-gold), #ffe0a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.alert-warning {
  background-color: rgba(255, 180, 71, 0.2) !important;
  border-color: var(--robot-gold) !important;
  color: var(--robot-text-claro) !important;
}

.carta-texto {
  font-size: 1rem;
  line-height: 1.5;
  color: #f0f7e6;
}

/* ========== TABELAS GERAIS ========== */
.table-robotica {
  background: rgba(30, 42, 26, 0.85);
  border-radius: 20px;
  overflow: hidden;
  color: #e9f5db;
}

.table-robotica th,
.table-robotica td {
  padding: 12px 8px;
  border-color: #4a7c3f;
}

.table-robotica thead th {
  background: #1e2a1a;
  color: #ffb347;
  font-family: "Chakra Petch", monospace;
}

/* ========== ACCORDION / PLANOS DE AULA (modelo_planos_aula.css) ========== */
.accordion-item {
  background: transparent;
  border: none;
  margin-bottom: 16px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.accordion-header {
  background: linear-gradient(135deg, #1e2a1a, #2a3b24);
}

.accordion-button {
  background: #627454;
  color: #ffb347;
  font-weight: bold;
  font-family: "Chakra Petch", monospace;
  border: none;
  border-radius: 0;
  padding: 16px 24px;
  font-size: 1rem;
}

.accordion-button:not(.collapsed) {
  background: #7f9470;
  color: #ffcc44;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #ffb347;
}

.accordion-body {
  background: #0d1f0b;
  padding: 24px;
  border-top: 2px solid #ffb347;
}

.semana-card-completo {
  background: #505e45;
  border-radius: 24px;
  padding: 20px;
}

.semana-card-completo h5 {
  color: #ffb347;
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 4px solid #ffb347;
  padding-left: 12px;
}

.semana-card-completo h5:first-of-type {
  margin-top: 0;
}

.semana-card-completo ul,
.semana-card-completo p {
  margin-bottom: 16px;
  line-height: 1.5;
}

.check-concluido {
  background: #1e2a1a;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.check-concluido:hover {
  background: #2c3e2b;
}

.check-concluido input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ffb347;
}

.materiais-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.material-badge {
  background: #2c3e2b;
  padding: 6px 12px;
  border-radius: 40px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-left: 2px solid #ffb347;
  color: #ebf0eb;
}

.material-badge i {
  font-size: 0.9rem;
}

.tabela-criterios-semana {
  background: #0a0f08;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tabela-criterios-semana thead {
  background: #2c3e2b;
  color: #ffb347;
}

.tabela-criterios-semana th,
.tabela-criterios-semana td {
  padding: 10px 12px;
  border-color: #4a7c3f;
  vertical-align: middle;
}

.tabela-criterios-semana td {
  color: #ebf0eb;
}

.tabela-criterios-semana tbody tr:hover {
  background: #1e2a1a;
}

.minuto-item {
  display: flex;
  margin-bottom: 16px;
  background: #0a0f08;
  border-radius: 20px;
  overflow: hidden;
  border-left: 4px solid #ffb347;
}

.minuto-tempo {
  background: #2c3e2b;
  padding: 10px 16px;
  font-weight: bold;
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  min-width: 100px;
  text-align: center;
  color: #ffb347;
}

.minuto-descricao {
  padding: 10px 16px;
  flex: 1;
  line-height: 1.4;
}

.frase-do-dia {
  background: linear-gradient(135deg, #2c3e2b, #1e2a1a);
  border-radius: 20px;
  padding: 12px 20px;
  margin-top: 20px;
  text-align: center;
  font-style: italic;
  border: 1px dashed #ffb347;
  color: #ebf0eb;
}

.frase-do-dia i {
  color: #ffb347;
  margin-right: 8px;
}

.btn-outline-warning {
  border-color: #ffb347;
  color: #ffb347;
}

.btn-outline-warning:hover {
  background: #ffb347;
  color: #1e2a1a;
}

.btn-outline-secondary {
  border-color: #6c7a7a;
  color: #9bbc7b;
}

/* ALTERAÇÕES SOLICITADAS */
p.text-muted.mt-2.small,
p.small.text-muted {
  color: #ebf0eb !important;
}

li {
  color: #ebf0eb;
}

.minuto-descricao {
  color: #ebf0eb;
}

p {
  color: #ebf0eb;
}

.check-concluido span {
  color: #ebf0eb;
}

/* JOGO DO BIMESTRE */
.jogo-container button {
  background: #2c3e2b;
  border: none;
  border-radius: 40px;
  padding: 8px 16px;
  margin: 4px;
  color: #ffb347;
  font-weight: bold;
  transition: 0.2s;
}

.jogo-container button:hover {
  background: #ffb347;
  color: #1e2a1a;
  transform: scale(1.02);
}

.btn-robotico-ano2 {
  background: linear-gradient(95deg, #ffb347, #ff8c00);
  border: none;
  color: #1e2a1a;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 60px;
  transition: all 0.3s;
  font-family: "Press Start 2P", cursive;
  font-size: 0.65rem;
}

/* CERTIFICADO */
.certificado-modelo {
  background: #0d1f0b !important;
  border: 3px double #9bbc7b !important;
  border-radius: 48px 24px 48px 24px;
  text-align: center;
  padding: 20px;
}

.nome-aluno-destaque {
  font-size: 22px;
  display: block;
  margin: 15px 0;
  color: #2c5e1f;
  background: #d4b87a !important;
  padding: 12px;
  border-radius: 40px;
}

.cadastro-alunos {
  background: #1e2a1a !important;
  border-radius: 32px;
  border-left: 5px solid #ffb347;
}

.lista-alunos li {
  background: #2c3e2b;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  color: #f0f0e0;
}

@media print {
  .certificado-impressao {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 3px solid #ffb347 !important;
    border-radius: 48px 24px !important;
    background: #fffef7 !important;
  }

  .print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  @page {
    size: A4;
    margin: 1cm;
  }
}

/* FECHAMENTO / ADAPTAÇÕES */
.card-fechamento-bimestre {
  background-color: #0d1f0be6 !important;
  border: 1px solid #ffb347;
}

.card-fechamento-bimestre .card-title,
.card-fechamento-bimestre h6 {
  color: #ffb347;
}

.card-fechamento-bimestre li,
.card-fechamento-bimestre p {
  color: #ebf0eb;
}

/* ========== RODAPÉ (modelo_rodape.css) ========== */
.footer-robotico {
  background: #0c140b;
  background-image: repeating-linear-gradient(45deg,
      #2a3b24 0px,
      #2a3b24 2px,
      #1b2a18 2px,
      #1b2a18 8px);
  border-top: 5px solid #ffb347;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.footer-rebelde::before {
  content: "⚠️ BUG ZONE ⚠️";
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 0.6rem;
  opacity: 0.3;
  font-family: monospace;
}

.footer-logo {
  max-height: 70px;
  width: auto;
  border-radius: 16px;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.dev-nome {
  font-size: 0.85rem;
  font-family: "Chakra Petch", monospace;
  color: #ebf0eb;
}

.dev-contato a {
  color: #ebf0eb;
  text-decoration: none;
}

.dev-contato a:hover {
  color: #ffb347;
}

.relatorio-bugs {
  border-top: 1px dashed #ffb347;
  padding-top: 0.8rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #ffcc88;
}

/* ========== MENU GLASSMORPHISM (modelo_menu_bim.css) ========== */
.menu-robomestre {
  background: rgba(13, 31, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--robot-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.menu-robomestre .nav-link {
  color: var(--robot-text);
  font-family: "Chakra Petch", monospace;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-robomestre .nav-link i {
  font-size: 1.1rem;
  color: var(--robot-gold);
  transition: transform 0.2s;
}

.menu-robomestre .nav-link:hover {
  color: var(--robot-gold);
  text-shadow: 0 0 4px var(--robot-gold);
  background: rgba(255, 180, 71, 0.15);
  transform: translateY(-2px);
}

.menu-robomestre .nav-link:hover i {
  transform: scale(1.1);
  color: var(--robot-glow);
}

.menu-robomestre .nav-link.active {
  color: var(--robot-glow);
  background: rgba(255, 180, 71, 0.25);
  text-shadow: 0 0 6px var(--robot-gold);
  border-bottom: 2px solid var(--robot-gold);
}

.menu-robomestre .navbar-toggler {
  border-color: var(--robot-gold);
  background-color: rgba(0, 0, 0, 0.5);
}

.menu-robomestre .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffb347' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.menu-robomestre .navbar-brand {
  color: var(--robot-gold);
  font-family: "Press Start 2P", cursive;
  font-size: 0.9rem;
}

/* Animações extras */
@keyframes glowPulse {
  0% {
    text-shadow: 0 0 2px #ffb347;
  }

  100% {
    text-shadow: 0 0 8px #ffcc44;
  }
}

.projeto-header h2 i {
  animation: glowPulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulseGlitch {
  0% {
    text-shadow:
      2px 0 0 #ffb347,
      -2px 0 0 #4a7c3f;
  }

  100% {
    text-shadow:
      -2px 0 0 #ffb347,
      2px 0 0 #4a7c3f;
  }
}

@keyframes loopInfinitoAnim {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loop-infinito-icon {
  animation: loopInfinitoAnim 2s linear infinite;
  display: inline-block;
}

/* Responsividade */
@media (max-width: 768px) {
  .projeto-header {
    flex-direction: column;
    text-align: center;
  }

  .projeto-header h2 {
    font-size: 1rem;
  }

  .accordion-button {
    font-size: 0.8rem;
    padding: 12px 16px;
  }

  .minuto-item {
    flex-direction: column;
  }

  .minuto-tempo {
    min-width: auto;
    text-align: left;
  }

  .semana-card-completo {
    padding: 12px;
  }

  .tabela-criterios-semana th,
  .tabela-criterios-semana td {
    font-size: 0.7rem;
    padding: 6px 8px;
  }

  .material-badge {
    font-size: 0.65rem;
  }

  .check-concluido {
    margin-top: 8px;
  }

  .logo-rb,
  .logo-gn {
    max-height: 50px;
  }

  .titulo-principal {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    white-space: normal;
    word-break: keep-all;
  }

  .subtitulo-chiclete {
    font-size: 0.6rem;
  }

  .menu-robomestre .navbar-collapse {
    background: rgba(13, 31, 11, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    margin-top: 12px;
    padding: 12px 0;
    border: 1px solid var(--robot-gold);
  }

  .menu-robomestre .nav-link {
    justify-content: center;
    margin: 4px 12px;
  }

  .footer-robotico {
    font-size: 0.75rem;
    padding: 1.5rem 0;
  }

  .footer-logo {
    max-height: 50px;
  }

  .dev-nome {
    font-size: 0.7rem;
  }

  .dev-contato {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {

  .logo-rb,
  .logo-gn {
    max-height: 40px;
  }

  .badge-projeto {
    font-size: 0.6rem;
  }

  .titulo-principal {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }

  .selo-sucata {
    font-size: 0.55rem;
    padding: 2px 8px;
  }

  .footer-logo {
    max-height: 40px;
  }

  .dev-nome {
    font-size: 0.6rem;
  }

  .relatorio-bugs {
    font-size: 0.55rem;
  }
}

code {
  background: #1e2a1a;
  padding: 2px 6px;
  border-radius: 8px;
  color: #ffb347;
  font-family: monospace;
}

/* ========== NOVAS CLASSES PARA O JOGO (substituem estilos inline) ========== */
.jogo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.coluna-saude,
.coluna-arte {
  flex: 1;
  min-width: 250px;
  background: #1e2a1a;
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  border: 2px solid #ffb347;
}

.coluna-arte {
  min-width: 300px;
}

.status-robo {
  background: #0a0f08;
  padding: 8px;
  border-radius: 40px;
  margin: 12px 0;
  font-family: monospace;
}

.btn-acao {
  background: #ffb347;
  border: none;
  border-radius: 40px;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
}

.btn-comando {
  background: #2c3e2b;
  border: none;
  border-radius: 40px;
  padding: 8px 16px;
  color: #ffb347;
  cursor: pointer;
  transition: 0.2s;
}

.btn-comando:hover {
  background: #ffb347;
  color: #1e2a1a;
}

.canvas-desenho {
  border: 2px solid #ffb347;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
}

.btn-reset-jogo {
  background: linear-gradient(95deg, #ffb347, #ff8c00);
  border: none;
  padding: 10px 24px;
  border-radius: 60px;
  font-weight: bold;
  cursor: pointer;
  color: #1e2a1a;
}

.btn-reset-jogo:hover {
  transform: scale(1.02);
}

/* ========== BOTÃO DE IMPRESSÃO DO ACCORDION ========== */
.btn-print-accordion {
  background: linear-gradient(95deg, #ffb347, #ff8c00);
  border: none;
  color: #1e2a1a;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 60px;
  transition: all 0.3s;
  font-family: "Press Start 2P", cursive;
  font-size: 0.65rem;
}

.btn-print-accordion:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #ffb347;
}

/* ========== CLASSE PARA OCULTAR ELEMENTOS NA IMPRESSÃO ========== */
@media print {
  .no-print {
    display: none !important;
  }

  /* mantém as demais regras de impressão já existentes */
}