/* Reset e base geral */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  color: white;
  overflow: hidden;
  padding-bottom: 140px; /* ✅ espaço real reservado pro rodapé e logo */
}

/* 🎥 Vídeo de fundo */
video#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Painel central (formulário flutuante) */
.container {
  background-color: rgba(0, 0, 0, 0.7);
  width: 400px;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

/* Título principal */
h1 {
  margin-bottom: 20px;
  font-size: 24px;
}

/* Parágrafo explicativo */
p {
  margin-bottom: 30px;
}

/* Links de botões */
a {
  text-decoration: none;
}

/* Botões de menu principais */
.menu-btn {
  display: block;
  margin: 15px auto;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
}

.kids   { background-color: #cccc00; color: #000000; font-weight: bold; }
.peso   { background-color: #228B22; color: #000000; font-weight: bold; }
.admin  { background-color: #000066; color: #ffffff; }

.menu-btn:hover {
  background-color: red !important;
  color: white;
}

/* 📱 Responsividade */
@media (max-width: 768px) {
  .container {
    width: 90%;
    left: 50%;
    top: auto;                /* 🆕 anula centralização vertical */
    bottom: 140px;            /* 🆕 garante distância da logo */
    transform: translateX(-50%); /* ✅ ajusta apenas no eixo X */
    margin-bottom: 0;         /* 🧹 desnecessário agora */
  }
}

/* Rodapé com logo e texto */
.rodape {
  text-align: center;
  position: fixed;
  bottom: 10px;
  width: 100%;
}

/* Imagem da marca RomeuTech */
.logo-footer {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* Painel escuro com texto do rodapé */
.painel-rodape {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 20px; /* ⬅️ Ajustado para menor altura */
  border-radius: 6px;
}

/* Texto interno do rodapé */
.painel-rodape p {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.1;
  color: #ccc;
}

/* Destaque neon no nome "RomeuTech" */
.painel-rodape span {
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 4px #00ff00, 0 0 8px #00ff00;
}

/* ⚠️ Alerta de nova tarefa */
.alerta-painel {
  margin: 10px auto;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  font-size: 18px;
  background: rgba(255, 0, 0, 0.85);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.7),
              0 0 40px rgba(255, 0, 0, 0.5),
              0 0 60px rgba(255, 0, 0, 0.3);
  animation: pulsarAlerta 1.5s infinite;
  position: relative;
  overflow: hidden;
}

/* 💥 Animação de pulsar alerta */
@keyframes pulsarAlerta {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9),
                0 0 40px rgba(255, 0, 0, 0.7),
                0 0 60px rgba(255, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 1),
                0 0 80px rgba(255, 0, 0, 0.9),
                0 0 120px rgba(255, 0, 0, 0.7);
  }
}

/* 🔲 Linhas brancas passando ao redor do alerta */
.alerta-painel::before,
.alerta-painel::after,
.alerta-painel span::before,
.alerta-painel span::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.alerta-painel::before {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  animation: scanner-horizontal 2s linear infinite;
}

.alerta-painel::after {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  animation: scanner-horizontal 2s linear infinite reverse;
}

.alerta-painel span::before {
  top: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  animation: scanner-vertical 2s linear infinite;
}

.alerta-painel span::after {
  bottom: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  animation: scanner-vertical 2s linear infinite reverse;
}

@keyframes scanner-horizontal {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes scanner-vertical {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* 🔊 Botão para ativar som do alerta */
#btnPermitirAudio {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 9999;
}

#btnPermitirAudio:hover {
  background: rgba(255, 255, 255, 0.3);
}

