body {
  background-color: #000;
  color: #ff6a00;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px;
  overflow-x: hidden;
}
h1, h2, h3, label, p {
  color: #ff6a00;
}
form {
  background-color: transparent;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 0 10px #ff6a00;
}
input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}
button {
  background-color: #ff6a00;
  color: white;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}
button:hover {
  background-color: #e55a00;
}
a {
  color: #ff6a00;
  text-decoration: none;
  font-weight: bold;
}

table {
  margin: 30px auto;
  color: #ff6a00;
  border: 2px solid #ff6a00;
  border-collapse: collapse;
}
th, td {
  border: 1px solid #ff6a00;
  padding: 6px;
}


/* Modal reutilizável padrão login */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow-x: hidden;
}
.modal.mostrar {
  display: flex;
}
.modal-conteudo {
  background: #111;
  color: #ff6a00;
  border-radius: 12px;
  box-shadow: 0 0 20px #ff6a00;
  padding: 32px 24px;
  max-width: 400px;
  margin: auto;
  text-align: center;
  position: relative;
}
.modal-conteudo input, .modal-conteudo textarea, .modal-conteudo select {
  background: #222;
  border: 1px solid #ff6a00;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  margin-bottom: 16px;
  max-width: 100%;
  box-sizing: border-box;
}
.modal-conteudo button {
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 24px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  margin-top: 8px;
  max-width: 100%;
  box-sizing: border-box;
}
.modal-conteudo button:hover {
  background: #e55a00;
}
.fechar {
  position: absolute;
  top: 12px; right: 18px;
  color: #ff6a00;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Evitar campos estourarem a largura do modal */
.modal input,
.modal select,
.modal textarea,
.modal button {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Campos de input e select - Modal específico criar desafio */
.modal-desafio input,
.modal-desafio select,
.modal-desafio textarea {
  padding: 8px 10px;
  font-size: 14px;
  height: 38px;
}

/* Botão Criar Desafio - Modal específico */
.modal-desafio button {
  height: 42px !important;
  font-size: 15px !important;
  width: 200px !important;
  margin: 20px auto 0 auto !important;
  display: block !important;
  max-width: 200px !important;
  min-width: 200px !important;
  box-sizing: border-box !important;
  padding: 12px 30px !important;
}


/* Responsividade geral */
@media (max-width: 700px) {
  body {
    padding: 8px;
  }
  form {
    padding: 12px;
    max-width: 98vw;
    margin: 16px auto;
  }
  table {
    width: 100% !important;
    font-size: 0.98em;
    margin: 10px auto;
    overflow-x: auto;
    display: block;
  }
  th, td {
    padding: 4px;
    font-size: 0.98em;
  }
  img[alt="Logo"] {
    max-width: 150px !important;
  }
  .main-btn, a, button {
    font-size: 1em !important;
    padding: 10px 8px !important;
  }
}

@media (max-width: 430px) {
  h1, h2, h3 {
    font-size: 1.1em;
  }
  table, th, td {
    font-size: 0.93em;
  }
  form {
    padding: 6px;
  }
}

@media (max-width: 520px) {
  table.admin-usuarios th:nth-child(12),
  table.admin-usuarios td:nth-child(12)  /* Admin */
  {
    display: none;
  }
}
