* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f0f2f5; padding-top: 70px; }
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.navbar { position: fixed; top: 0; width: 100%; height: 60px; background: #2c3e50; color: white; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; z-index: 1001; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.menu-links {
  position: fixed;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  background: #1a252f;
  transition: 0.3s;
  z-index: 1002;
  padding: 20px;
  display: flex;
  flex-direction: column; /* 👈 importante */
}
.bottom-link {
  margin-top: auto; /* 👈 magia acontece aqui */
  border-top: 1px solid #2c3e50;
  padding-top: 15px;
}
.menu-links.active { left: 0; }
.menu-links li { list-style: none; padding: 15px 0; border-bottom: 1px solid #2c3e50; }
.menu-links a { color: #ecf0f1; text-decoration: none; display: block; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; z-index: 1001; }
.menu-overlay.active { display: block; }
.logo img {
  height: 50px;      /* Defina a altura que desejar */
  width: auto;       /* Mantém a proporção da largura */
  display: block;    /* Remove espaços indesejados abaixo da imagem */
  object-fit: contain; /* Garante que a imagem caiba no espaço sem distorcer */
}
.container { padding: 10px; max-width: 600px; margin: auto; }
.card { background: white; padding: 5px; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
h3 { margin-bottom: 12px; font-size: 0.85rem; color: #34495e; border-left: 4px solid #3498db; padding-left: 10px; text-transform: uppercase; }

/* Tabelas */
.table-container { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; }
td { padding: 5px 2px; border-bottom: 1px solid #f1f1f1; font-size: 0.8rem; }

.table-container table tr:nth-child(even) {
    background: #f4f4f4;
}

.table-container table tr:nth-child(odd) {
    background: #ffffff;
}

.nome-jogador {
    max-width: 75px; /* Truque para o truncate funcionar em tabelas */
    white-space: nowrap;
}
.nome-curto {
    display: block;
    font-size: 9px; /* Um pouco menor que o padrão */
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona os ... */
    white-space: nowrap;
}
/* Bolas */
.number-ball { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: bold; border: 1px solid #dfe6e9; }
.nao-sorteado { background: radial-gradient(circle at 30% 30%, #E5B94B, #A66F1A); color: white; font-weight: bold; }
.sorteado { background: radial-gradient(circle at 30% 30%, #666666, #333333); color: grey; }
.sorteado-ultimo { background: radial-gradient(circle at 30% 30%, #666666, #333333); color: #D6A83F; }
.pts-0 { background: radial-gradient(circle at 30% 30%, #E5B94B, #A66F1A); }
.pts-1 { background: radial-gradient(circle at 30% 30%, #D4B045, #8F7616); }
.pts-2 { background: radial-gradient(circle at 30% 30%, #C3A740, #787D12); }
.pts-3 { background: radial-gradient(circle at 30% 30%, #B29E3B, #61840E); }
.pts-4 { background: radial-gradient(circle at 30% 30%, #A19536, #4A8B0A); }
.pts-5 { background: radial-gradient(circle at 30% 30%, #908C31, #339206); }
.pts-6 { background: radial-gradient(circle at 30% 30%, #7F832C, #1C9902); }
.pts-7 { background: radial-gradient(circle at 30% 30%, #6E7A27, #05A000); }
.pts-8 { background: radial-gradient(circle at 30% 30%, #5D7122, #00A800); }
/* linha base do vencedor */
.linha-vencedor {
    background: linear-gradient(90deg, #27ae60, #2ecc71) !important;
    color: white !important;
    position: relative !important;
    animation: piscar 1.2s infinite ease-in-out !important;
}
@keyframes piscar {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.35); }
    100% { filter: brightness(1); }
}

/* Grelha de Sorteios Compacta */
.sorteios-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 4px; 
}
.sorteio-mini {
    background: #f8f9fa;
    padding: clamp(4px, 1vw, 8px);
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    box-sizing: border-box;
}
.sorteio-mini span { font-size: 0.75rem; display: block; font-weight: bold; }

/* Grelha de números sorteados */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); 
    gap: 2px 2px;
    justify-items: center; /* Centraliza as bolas dentro de cada "célula" da grade */
    margin-top: 15px;
}

/* Tooltip */
.tooltip-msg { position: absolute; background: #2c3e50; color: #fff; padding: 10px; border-radius: 8px; font-size: 12px; z-index: 2000; pointer-events: none; }

/* Botões */
/* Base botão */
[class^="btn"] {
  min-width: 80px;
  height: 30px;
  background-color: #2C3E50;
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
}

/* SIM (verde) */
.btn-SIM {
  background-color: #27ae60 !important;
  color: white !important;
}

/* NAO (vermelho) */
.btn-NAO {
  background-color: #e74c3c !important;
  color: white !important;
}

/* Inputs, selects, textarea */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    color: #999;
    font-size: 14px;
}

/* Focus */
input:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0px 0px 0px 4px rgba(0, 123, 255, 0.15);
}

/* Select (melhor aparência) */
select {
    cursor: pointer;
}

/* Textarea */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox e radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
}

.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}



/* Inputs desativados */
input:disabled,
select:disabled,
textarea:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}