* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}
    :root {
      --primary: #ebb330;
      --secondary: #833a39;
}
body {
  background-color: var(--secondary);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  flex-direction: column;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--primary) 10px,
    var(--primary) 20px
  );
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}


.container {
  position: relative;
  z-index: 1;
  background: rgb(67 30 32 / 68%);
  border: 2px solid var(--primary);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 0 20px #000;
}
.container-login {
    padding-inline: 30px;
    padding-bottom: 30px;
}

.hotspot-container {
  position: relative;
    z-index: 1;
    background: rgb(67 30 32 / 68%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
}

/* LOGO */
.logo {
  border-radius: 16px;
  display: block;
  max-width: 100%;
  margin: 0 auto 20px;
}

/* TÍTULO */
h1, h2 {
  text-align: center;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 30px;
}

h3 {
  text-align: center;
  color: var(--primary);
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* CAMPOS */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 14px;
}

/* Campos de texto, email, tel, password */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 15px;
  margin-bottom: 20px;
}

form input:focus {
  outline: none;
  box-shadow: 0 0 5px var(--primary);
}

/* BOTÃO */
button,
form input[type="button"],
form input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: var(--primary);
  color: #0f0f0f;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover,
form input[type="button"]:hover,
form input[type="submit"]:hover {
  background-color: var(--primary);
}

.button-delete {
  width: 100%;
    padding: 8px 12px;
    color: #0f0f0f;
    font-weight: lighter;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 142px;
    background-color: #d9534f;
    color: white;
    margin-top: 20px;
}
.button-delete:hover {
  background-color: #c0423e;
}

.button-export {
  width: 100%;
    padding: 8px 12px;
    background-color: var(--primary);
    color: #0f0f0f;
    font-weight: lighter;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 142px;
    color: rgb(0, 0, 0);
    margin-top: 20px;
}
.button-export:hover {
  background-color: #ce9b23;
}

.actions {
      display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
}

/* CHECKBOX */
form input[type="checkbox"] {
  margin-right: 8px;
}

.checkbox-label {
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.box-resultado{
  background: rgba(0, 0, 0, 0.315);
  border: 2px solid #ed1c24;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.box-resultado h2 {
  margin-bottom: 10px
}

/* RESULTADO */
#resultado {
  text-align: center;
  font-weight: bold;
  margin-top: 15px;
}
.alert-erro {
    background: #ffe5e5;
    color: #b30000;
    border: 1px solid #ffb3b3;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   LAYOUT ADMIN / DASHBOARD
========================= */

body.admin {
  display: block;
  align-items: initial;
  justify-content: initial;
  overflow-y:auto;
}

/* Container maior para tabelas */
.container-admin {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding-bottom: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 20px #000;
}

/* Header admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h2 {
  margin: 0;
}

.admin-header a {
  text-decoration: none;
  background: var(--primary);
  color: #0f0f0f;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.admin-header a:hover {
  background: var(--secondary);
}

/* =========================
   TABELA
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background: var(--primary);
  color: #000;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

th {
  font-weight: 700;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

tbody tr:hover {
  background: rgba(190,213,11,0.08);
}

/* Scroll horizontal em telas menores */
.table-wrapper {
  overflow-x: auto;
}

/* ================= MODAL TERMOS ================= */

.modal-termos {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    font-family: Arial, Helvetica, sans-serif;
}

.modal-content h2 {
    background: var(--primary);
    color: #000;
    padding: 16px;
    text-align: center;
    font-size: 20px;
    margin-bottom: 1px;
}

.modal-content h3 {
  margin-top: 15px;
  color: var(--primary);
  font-size: 16px;
}

.modal-texto {
    padding: 10px;
    overflow-y: auto;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
}

.modal-texto p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.modal-texto h3 {
    margin-top: 15px;
}
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background: #fafafa;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}
.modal-footer button {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.modal-footer button:hover {
    background: #222;
}
.sorteio-frame {
    border:none;
    background:#0f0f0f;
        height: 600px;
    min-width: 100%;
}

.paginacao {
    margin-top: 20px;
    text-align: center;
}

.paginacao a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.paginacao a:hover {
    background: var(--primary);
    color: #000;
}

.paginacao a.ativo {
    background: var(--primary);
    color: #000;
    font-weight: bold;
}

@media (max-width: 481px) {
  body {
    overflow-y: auto;
    padding-inline: 10px;
    padding-top: 50px;
  }
  .container {
    padding: 50px 40px;
  }
  #login h1, h2{
    margin-bottom: 18px;
  }
}

@media (max-width: 768px) {
    body {
    overflow-y: auto;
    padding-inline: 10px;
    padding-top: 50px;
  }
  .container {
    max-width: 500px;
  }
}