/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* para navbar */
    background: url('img/fundoazulescuro2.png') no-repeat center center fixed;
    background-size: cover;
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #000b29;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo img {
    max-height: 80px;
    width: auto;
}


.logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.logo-img {
    max-height: 80px;
    width: auto;
}

/* CONTAINER */
.container {
    max-width: 700px;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
color: #007bff;
    font-size: 1.6rem;
    font-family: "Roboto Light", sans-serif;
}

h2  {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-family: "Roboto Light", sans-serif;
}

p {
    text-align: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-family: "Roboto Light", sans-serif;
}

.status {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #e9ecef;
    text-align: center;
}

.loading {
    color: #555;
}

/* Form row (linha de inputs ou botões) */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 45%;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-family: "Roboto Light", sans-serif;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Botões bonitos */
.btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 50%;
}

.primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;

}

.primary:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
}

.secondary {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
}

.secondary:hover {
    background: linear-gradient(45deg, #218838, #19692c);
}

.danger {
    background: linear-gradient(45deg, #dc3545, #a71d2a);
    color: white;
}

.danger:hover {
    background: linear-gradient(45deg, #a71d2a, #7a0f1c);
}

.warning {
    background: linear-gradient(45deg, #ffa500, #ff7f50);
    color: white;
}

.warning:hover {
    background: linear-gradient(45deg, #fab302, #f8cf02);
}



/* Resultados */
.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f0f0f0;
    display: none;
    font-size: 1.1em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

#sorteioDisplay {
    font-size: 4em;
    font-weight: bold;
    margin: 20px 0;
    color: #007bff;
    transition: transform 0.5s ease-out;
}

#vencedorInfo {
    font-size: 1.5em;
    color: #333;
    margin-top: 20px;
    display: none;
}


.pix-container {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: auto;
}
.pix-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.pix-container h1 {
    margin-bottom: 20px;
}

/* estilo.css */

/* Tela de fundo do modal */
#senhaModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 64, 67, 0.6); /* cinza escuro semi-transparente */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Conteúdo interno do modal */
#senhaModal .modal-content {
    background: #FFFFFF; /* branco puro */
    padding: 24px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 2px 10px rgba(60, 64, 67, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Label */
#senhaModal label {
    font-size: 16px;
    font-weight: 500;
    color: #202124; /* texto quase preto */
}

/* Input de senha */
#senhaModal input[type="password"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #DADCE0; /* cinza claro */
    border-radius: 4px;
    transition: border-color 0.2s;
}
#senhaModal input[type="password"]:focus {
    outline: none;
    border-color: #4285F4; /* azul Google */
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Container de botões */
#senhaModal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Botões */
#senhaModal button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* Botão Cancelar */
#senhaModal button#senhaCancelar {
    background: #DB4437; /* vermelho Google */
    color: #fff;
}
#senhaModal button#senhaCancelar:hover {
    background: #C33D2E;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Botão Confirmar */
#senhaModal button#senhaConfirmar {
    background: #4285F4; /* azul Google */
    color: #fff;
}
#senhaModal button#senhaConfirmar:hover {
    background: #357AE8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* === Ajustes de espaçamento e centralização === */

/* 1) Afasta o botão “Sortear” do logo na navbar */
.navbar > button#sortearBtn {
    margin-left: 20px;    /* ou ajuste para o valor que preferir */
}

/* 2) Centraliza e reduz o botão “Participar” */
/*    - Sobrescreve width e flex do .btn dentro de .buttons-row */
.buttons-row {
    justify-content: center !important;  /* centraliza */
}

.buttons-row .btn#submitBtn {
    width: 160px;        /* largura menor e fixa */
    flex: none;          /* anula flex:1 */
}

/* 3) Garante que os botões não fiquem esticados */
/*    (caso queira, remova o width:50% do .btn original) */
.btn {
    /* width: auto !important; */
}
