html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* remove scroll horizontal */
}

body {
    background-color: #091A32;
    background-image: none;
    color: #fff;
    font-size: 12px;
    font-family: tahoma;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */  
}
/* BARRA DE MENU */
.navbar {
    overflow: hidden;
    background-color: #333;
    justify-content: center;
    align-items: center;
}
.navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    text-decoration: none;
    padding: 16px 8px;
}
.navbar a.right {
    float: right;
    margin-right: 10px;
}
.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* TABELA DEFAULT */
.tabela-default{
    width: 100%;
    max-width: 500px;
    border-radius: 2px;
    border-collapse: collapse;  
}
.tabela-default th{
    color: gold; 
}
.tabela-default td{
    text-align: center; 
}

/* TABELA PRINCIPAL */
.tabela-principal {
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-collapse: collapse;
    background-color: #00428C;
}
/* Linhas da tabela */
.tabela-principal tr {
    border-bottom: 1px solid #545454;
}
.tabela-principal th {
    background-color: #091A32;
    padding-top: 15px;
}
.tabela-principal td {
    white-space: nowrap; /* Evita quebra de linha */
    overflow: hidden; /* Esconde o texto que ultrapassar o limite */
    vertical-align: middle; /* Centraliza verticalmente o conteúdo */
}

/* Células dos números */
.tabela-principal td.numbers {
    text-align: center;
}
/* Células do total de bolas */
.tabela-principal td.total-balls {
    text-align: center;
}

.nome{
    max-width: 80px; /* Garantir que a largura seja 80px */
    font-size: clamp(8px, 1.5vw, 12px);
    overflow: hidden; /* Esconde o texto que ultrapassar */
    text-overflow: ellipsis; /* Exibe os três pontos no final */
    white-space: nowrap; /* Evita quebra de linha */
    box-sizing: border-box; /* Inclui padding na largura da célula */
    vertical-align: middle; /* Centraliza verticalmente o texto */
}

/* Números sorteados */
.number-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 1px;
    border-radius: 50%;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.3), 
        inset 0 -2px 4px rgba(255,255,255,0.3);
}
/* Cor do número sorteado */
.number-ball.sorteado {
    color: #DDD;
    background: radial-gradient(circle at 30% 30%, #666666, #333333);
}
/* Cor do número do último sorteio */
.number-ball.sorteado-ultimo {
    background-color: #515151;
    color: #000;
}
/* Cor dos números não sorteados */
.number-ball.nao-sorteado {
    color: #FFFFFF;
    background: radial-gradient(circle at 30% 30%, #E5B94B, #A66F1A);
    font-weight: bold;
}
/* Cor dos números não sorteados */
.number-ball.nao-pago {
    color: red;
    background: radial-gradient(circle at 30% 30%, #E5B94B, #B38628);
    font-weight: bold;
}
/* Cor para os jogadores com pagamento em dia */
.number-ball.payment-ok {
    color: white;
    background: radial-gradient(circle at 30% 30%, #32CD32, #006400);
}
/* Cor para os jogadores com pagamento em falta */
.number-ball.payment-pending {
    color: white;
    background: radial-gradient(circle at 30% 30%, #32CD32, #296029);
}
/* Cor para o total de bolas */
.total-balls-good { /* GANHOU - 8 BOLAS */
    color: white;
    background: radial-gradient(circle at 30% 30%, #32CD32, #006400);
}
.total-balls-7 {
    color: white;
    background: radial-gradient(circle at 30% 30%, #4B7A4B, #2F4F2F);
}
.total-balls-6 {
    color: white;
    background: radial-gradient(circle at 30% 30%, #556655, #394639);
}
.total-balls-default {
    color: white;
    background: radial-gradient(circle at 30% 30%, #666666, #333333);
}
.total-balls-nao-pago {
    color: red;
    background: radial-gradient(circle at 30% 30%, #666666, #333333);
}
/* Classe para linha de sucesso */
.tabela-principal tr.success {
    color: white;
    background-color: #32CD32;
}

/* TABELA tabela-sorteios */
.tabela-sorteios {
    width: 100%;
    max-width: 500px;
    background-color: #00428C;
    border-spacing: 0 5px;
}
.tabela-sorteios th {
    font-size: 12px;
    padding: 5px;
}
.tabela-sorteios td {
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    width: 25%;
    padding: 5px;
}
.tabela-sorteios td:not(:empty) {
    border: 1px solid grey;
    border-radius: 25px;
}

/* TABELA NUMEROS RESTANTES */
.tabela-numeros {
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-collapse: collapse;
    background-color: #00428C;
}
.tabela-numeros th {
    font-size: 12px;
    padding: 5px;
}


/* TABELA VENCEDORES */
.tabela-resumo {
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-collapse: collapse;
    background-color: #00428C;
}
.tabela-resumo th {
    font-size: 12px;
    padding: 5px;
}
.tabela-resumo td {
    vertical-align: middle;
    font-size: 12px;
    border: none;
    padding: 5px;
    font-weight: bold;
}

/* TABELA PREMIOS */
.tabela-premios {
    width: 100%;
    max-width: 500px;
    background-color: #00428C;
    border-radius: 2px;
    border-collapse: collapse;
}
.tabela-premios th {
    border: none;
    height: 35px;
    margin-bottom: 15px;
    text-align: center;
}  	
.tabela-premios td {
    font-size: 12px;
    height: 35px;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey; 
}
.tabela-premios tr:nth-child(even) {
    background-color: #262525;
}
.tabela-premios tr:nth-child(odd) {
    background-color: #191919;
}

/* TABELA PAGAMENTOS */
.tabela-pagamentos {
    width: 100%;
    max-width: 500px;
    background-color: #00428C;
    border-radius: 2px;
    border-collapse: collapse;
}
.tabela-pagamentos th {
    border: none;
    height: 35px;
    margin-bottom: 15px;
    text-align: center;
}  	
.tabela-pagamentos td {
    font-size: 12px;
    height: 35px;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey; 
}
.tabela-pagamentos tr:nth-child(even) {
    background-color: #262525;
}
.tabela-pagamentos tr:nth-child(odd) {
    background-color: #191919;
}

#pagamentosim{
    border: 0;
    background: url('/imagens/pagamentosim.png') no-repeat;
    background-size:100% 100%;  
    width: 70px;
    height: 25px; 
    color: white;
}
#pagamentonao{
    border: 0;
    background: url('/imagens/pagamentonao.png') no-repeat;
    background-size:100% 100%;  
    width: 70px;
    height: 25px;  
    color: white;
}

form {
    margin: 0;
}

/* Estilo para todos os inputs */
input, select, textarea {
    padding: 5px;
    font-size: 14px;
    border: 2px solid #00428C;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}


/* PAGINA DE LOGIN */
.login-container {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333333;
    padding: 25px 50px;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.25);
    text-align: center;
    width: 150px;
}


.login-container input[type="password"] {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: border 0.3s;
}

.login-container input[type="password"]:focus {
    border: 1px solid #4a90e2;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: #057F4C;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container input[type="submit"]:hover {
    background: #357abd;
}

.login-msg {
    margin-top: 20px;
    font-size: 16px;
    color: red;
}

