/* =======================
   BASE / RESET
======================= */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: white;
  overflow-x: hidden; /* evita scroll lateral por 100vw */
}

body {
  background-color: white;
}

/* =======================
   LAYOUT / OVERLAY
======================= */
.layout { position: relative; display: flex; min-height: 100vh; }
.layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}
.layout > * { position: relative; z-index: 2; }

/* =======================
   LOGIN
======================= */
.login-container {
  background-image: url('/Imagens/imgarena.jpg');
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-box {
  background-color: white;
  padding: 10px;
  border-radius: 15px;
  width: 280px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.login-box img.logo { width: 250px; height: auto; margin-bottom: 20px; }
.login-title { text-align: left; margin-top: -40px; margin-left: 20px; }
.login-box input {
  width: 90%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 80px;
}
.login-box button {
  width: 50%; padding: 10px; background-color: #003366; color: white;
  border: none; border-radius: 80px; cursor: pointer; margin-top: 40px; margin-bottom: 30px;
}
.login-box .esqueci-senha {
  background: none; color: #003366; text-decoration: underline; margin: 10px 0 60px;
}

/* =======================
   RECUPERAR SENHA
======================= */
.Recuperar-container {
  background-image: url('/Imagens/imgarena.jpg');
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.Recuperar-box {
  background-color: white;
  padding: 10px;
  border-radius: 15px;
  width: 280px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.Recuperar-box img.logo { width: 250px; height: auto; margin-bottom: 20px; }
.Recuperar-title { text-align: left; margin-top: -40px; margin-left: 20px; }
.Recuperar-box input {
  width: 90%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 80px;
}
.Recuperar-box button {
  width: 50%; padding: 10px; background-color: #003366; color: white;
  border: none; border-radius: 80px; cursor: pointer; margin-top: 40px; margin-bottom: 30px;
}
.Recuperar-box .link-voltar { background: none; color: #003366; text-decoration: underline; margin: 10px 0 60px; }

/* =======================
   MENU LATERAL / NAV
======================= */
.menu-lateral {
  position: fixed;
  top: 0;
  left: -300px;
  height: 100vh;
  width: 200px;
  background-color: #0e2b47;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 30px;
  color: white;
}
.menu-lateral.aberto { left: 0; }
.menu-lateral h3 { margin-top: 20px; }
.menu-lateral ul { list-style: none; padding: 0; margin: 0; }
.menu-lateral ul li { margin-bottom: 25px; }
.menu-lateral ul li a { color: white; text-decoration: none; }
.menu-lateral ul li a:hover { text-decoration: underline; }
.menu-lateral ul li a i { margin-right: 8px; }

/* Corrige breakpoint móvel do menu (o antigo @media max-width:40px estava incorreto) */
@media (max-width: 768px) {
  .menu-lateral { width: 240px; padding: 20px; }
  .menu-lateral h3 { font-size: 16px; }
  .menu-lateral ul li { margin-bottom: 18px; }
  .menu-lateral ul li a { font-size: 14px; }
}

.botao-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: #003366;
  z-index: 1100;
  cursor: pointer;
  display: block;
}
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: none;
}
.overlay.ativo { display: block; }

.perfil-usuario {
  text-align: center;
  padding: 20px 10px;
  border-bottom: 1px solid #ddd;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.menu-lateral.aberto .perfil-usuario {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.perfil-usuario img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 10px;
}
.perfil-usuario .nome { font-weight: bold; margin: 0; }

/* =======================
   CONTEÚDO
======================= */
.conteudo {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 20px;
  margin-top: 50px;
  color: black;
  display: flex; flex-direction: column; align-items: center;
    display: flex;
  justify-content: center;
}

/* Evita desalinhamento quando menu abre em telas pequenas */
@media (max-width: 768px) { .menu-aberto .conteudo { margin-left: 0; } }

/* =======================
   HEADER COM IMAGEM (FULL-BLEED)
======================= */
.header-foto {
  position: relative;
  width: 100vw;               /* largura total da viewport */
  height: 280px;
  margin-left: calc(-50vw + 50%); /* escapa do container central */
  overflow: hidden;
}
.header-foto img {
  display: block;             /* evita “fio branco” por baseline */
  width: 100%; height: 100%; object-fit: cover;
}
.header-foto .degrade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; /* cobre toda a imagem */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 70%,        /* 70% transparente (parte de cima) */
    rgba(252, 252, 252, 1) 100% /* branco suave apenas no final */
  );
  pointer-events: none;
}

/* =======================
   FORM (CARD) — RESPONSIVO
======================= */
.card-form {
  background-color: rgba(55, 94, 151, 0.9);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 10px;
  color: white;
  width: 95%;
  margin-top: -200px;
  max-width: 1200px;
  margin: 16px; /* sobrepõe um pouco o header */
}
.card-form h2 { margin-bottom: 15px; text-align: center; }

/* Mobile: 1 coluna */
.form-cadastro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}
.form-cadastro input,
.form-cadastro select {
  padding: 10px; border: none; border-radius: 6px; font-size: 16px;
  width: 100%; box-sizing: border-box;
}
.form-cadastro .campo-grande { grid-column: 1 / -1; }
.form-cadastro button {
  grid-column: 1 / -1;
  justify-self: center;
  background-color: #ff5722;
  color: white; font-weight: bold;
  padding: 10px 30px;
  border: none; border-radius: 6px; cursor: pointer; margin-top: 10px;
}
.form-cadastro button:hover { background-color: #e64a19; }

/* ≥768px: 2 colunas no form e card mais largo */
@media (min-width: 768px) {
  .form-cadastro { grid-template-columns: 1fr 1fr; width: 90%; }
  .form-cadastro button { grid-column: span 2; }
  .card-form { width: 80%; margin-top: -70px; }
}
/* Respira um pouco mais em telas médias */
@media (min-width: 600px) { .card-form { padding: 20px; } }

/* =======================
   TABELA (CARD BRANCO)
======================= */
.card-tabela {
  background-color: white;
  padding: 1px;
  border-radius: 8px;
  width:64%;
  max-width: 1200px;
}
.card-tabela h2 { margin-bottom: 15px; color: #0d47a1; }

table { width: 100%; border-collapse: collapse; }
table th {
  background-color: rgba(55, 94, 151, 1);
  color: white;
  padding: 10px;
  text-align: left;
}
table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  color: #000;
}

/* Tabela utilizável no mobile (scroll horizontal) */
@media (max-width: 767px) {
  .card-tabela { width: 80%; padding: 10px; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table thead, table tbody, table tr, table th, table td { white-space: nowrap; }
}

/* =======================
   AÇÕES / BOTÕES
======================= */
.btn-acao {
  background: none; border: none; cursor: pointer;
  font-size: 16px; margin: 0 5px; padding: 6px; border-radius: 6px; transition: background 0.2s;
}
.btn-acao.editar { color: #1976d2; }
.btn-acao.editar:hover { background: rgba(25, 118, 210, 0.1); }
.btn-acao.excluir { color: #d32f2f; }
.btn-acao.excluir:hover { background: rgba(211, 47, 47, 0.1); }

.btn-excluir {
  color: #fff; background: #6c757d; text-decoration: none;
  padding: 6px 10px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.btn-excluir i { font-size: 16px; }

.erro-login {
  color: #d32f2f; font-size: 14px; font-weight: bold; text-align: center; margin-top: 10px;
  background: #fdecea; border: 1px solid #f5c2c0; padding: 8px; border-radius: 6px;
}

/* =======================
   CALENDÁRIO (seções existentes)
======================= */
.calendario {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 5px; justify-content: center; color: white; width: 100%; max-width: 100%;
}
.dia {
  width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  background-color: white; border: 1px solid #ccc; color: black; font-weight: bold;
  border-radius: 8px; transition: background-color 0.3s; cursor: pointer; padding: 0; margin: 0;
}
.dia:hover { background-color: #002244; color: white; }
.cabecalho { font-weight: bold; background-color: #003366; border-radius: 8px; padding: 15px; text-align: center; }

/* Eventos / Cards / Containers auxiliares */
.bloco-principal { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; width: 100%; }
.eventos-lado { max-width: 500px; width: 100%; }
.tabela-eventos td { padding: 12px 15px; border-bottom: 1px solid #ddd; text-align: left; }
.tabela-eventos th { background-color: #003366; color: white; }
.tabela-eventos tr:last-child td { border-bottom: none; }
.icone-evento { font-size: 7px; line-height: 1; text-align: right; }

.container-calendario {
  background-color: black; padding: 20px; border-radius: 15px; width: 500px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center;
}
.adicionar-evento { margin-top: 20px; text-align: center; }
.adicionar-evento h3 { margin-bottom: 10px; color: black; }
.botao-mais {
  display: inline-block; font-size: 24px; background-color: #003366; color: white;
  text-decoration: none; width: 40px; height: 40px; border-radius: 50%; line-height: 40px; font-weight: bold; transition: background-color 0.3s;
}
.botao-mais:hover { background-color: #002244; }
.controle-mes {
  display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px;
}
.controle-mes button {
  background-color: #003366; color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 18px;
}

/* Cards "Sobre" (mantidos) */
.cards-sobre { display: flex; flex-wrap: wrap; gap: 20px; justify-content: right; }
.card {
  width: 150px; height: 250px; background-color: #f0f0f0; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 10px; transition: transform 0.3s ease;
}
.card:hover { transform: scale(1.05); }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: 5px; }
.card h3 { font-size: 16px; color: #003366; text-align: center; }
.descricao-card {
  display: none; margin-top: 40px; background-color: #f0f0f0; padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); justify-content: right;
}
.links-dev { margin-top: 10px; }
.links-dev a { color: #003366; text-decoration: none; margin-right: 10px; font-size: 14px; transition: color 0.3s; }
.links-dev a:hover { color: #005599; }
.links-dev i { margin-right: 5px; }

/* Form evento */
.form-wrapper { max-width: 400px; width: 100%; }
.form-evento {
  background-color: #d9d9d9; padding: 70px; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; gap: 13px;
}
.form-evento label { font-weight: bold; color: #003366; }
.form-evento input, .form-evento select {
  padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; width: 200px; box-sizing: border-box;
}
.form-evento button {
  padding: 10px; background-color: #FF7417; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background-color 0.3s;
}
.form-evento button:hover { background-color: #001d4d; }

.coluna-direita {
  display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: flex-start; margin-top: 20px; width: 100%;
}
.painel-principal {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 120px; align-items: start;
}
.card-tabela, .eventos-lado, .container-calendario {
  background: #d9d9d9; padding: 10%; border-radius: 8px; text-align: center;
}

/* =======================
   CONFIGURAÇÕES
======================= */
.config-container {
  background-color: #d9d9d9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  width: 350px;
  margin: 50px auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
@media (max-width: 480px) {
  .config-container { width: 90%; margin: 20px; padding: 20px; margin-top: 40px; }
}
.foto-usuario img {
  width: 120px; height: 120px; border-radius: 10%; object-fit: cover; border: 1px; margin-bottom: 10px;
}
.nome-usuario { font-size: 22px; color: #003366; }
.config-opcao form { width: 100%; max-width: 600px; }
.config-opcao input[type="password"], .config-opcao button {
  width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box;
}
.config-opcao button {
  background-color: #003366; color: white; font-weight: bold; cursor: pointer; transition: background 0.3s;
}
.config-opcao button:hover { background-color: #0055aa; }
.botao-suporte {
  padding: 10px; width: 100%; background-color: #003366; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background-color 0.3s;
}
.botao-suporte:hover { background-color: #002244; }

/* =======================
   SWITCH
======================= */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0; background-color: #ccc; transition: 0.4s; border-radius: 28px;
}
.slider:before {
  position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: 0.4s; border-radius: 50%;
}
input:checked + .slider { background-color: #003366; }
input:checked + .slider:before { transform: translateX(22px); }
.tabela-eventos button {
  padding: 8px 12px; background-color: #003366; color: white; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: background-color 0.3s ease;
}
.tabela-eventos button:hover { background-color: #0056b3; }

/* =======================
   FORM PARTICIPANTE (FIXO)
======================= */
.form-participante {
  max-width: 400px; width: 100%; position: fixed; top: 15%; right: 190px;
  background-color: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: none; z-index: 3;
}
.form-participante h3 { margin-bottom: 20px; color: #003366; }
.form-participante label { font-weight: bold; color: #003366; }
.form-participante input, .form-participante select {
  width: 100%; padding: 10px; margin: 10px 0; border-radius: 8px; border: 1px solid #ccc;
}
.form-participante button {
  width: 100%; padding: 10px; background-color: #003366; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background-color 0.3s;
}
.form-participante button:hover { background-color: #001d4d; }

