body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-container {
  padding: 20px;
  width: 100%;
  max-width: 400px;
}

.card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 30px 20px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
  color: #1e3a8a;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  text-align: left;
  color: #111827;
  font-weight: 600;
}

input[type="number"] {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  outline: none;
  transition: border 0.2s;
}

input[type="number"]:focus {
  border-color: #2563eb;
}

button {
  padding: 14px;
  background-color: #2563eb;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background-color: #1d4ed8;
}

.resultado {
  margin-top: 20px;
  font-size: 18px;
  padding: 10px;
  border-radius: 8px;
  word-break: break-word;
}

.sucesso {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.erro {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}
/* Modal de carregamento */
#sorteioModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 41, 55, 0.85); /* fundo escuro */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  animation: pulse 1s infinite;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.modal-content p {
  font-size: 24px;
  color: #1d4ed8;
  font-weight: bold;
  margin-top: 15px;
}

.spinner {
  font-size: 48px;
  animation: rotate 1s linear infinite;
}

/* Animações */
@keyframes rotate {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.05);}
  100% { transform: scale(1);}
}
