@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");

.ts-resultado-sorteio-wrapper {
  margin: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ts-titulo-sorteio {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.ts-tabela-sorteio-wrapper {
  margin: 1rem auto;
  padding: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.ts-tabela-sorteio {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Aplicando os estilos do Bootstrap manualmente */
.ts-tabela-sorteio {
  --bs-table-color: #212529;
  --bs-table-bg: transparent;
  --bs-table-border-color: #dee2e6;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: #212529;
  --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
  --bs-table-hover-color: #212529;
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
  color: var(--bs-table-color);
  vertical-align: middle;
  border-color: var(--bs-table-border-color);
}

.ts-tabela-sorteio thead {
  background-color: #333;
}

.ts-tabela-sorteio thead th {
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 2px solid #444;
}

.ts-tabela-sorteio tbody tr {
  transition: background-color 0.2s ease-in-out;
}

.ts-tabela-sorteio tbody tr:hover {
  background-color: #f8f8f8;
}

.ts-tabela-sorteio tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.ts-tabela-sorteio tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  color: #555;
  border-top: 1px solid #ddd;
}

.ts-tabela-sorteio tbody td.ts-item .ts-pill {
  display: inline-block;
  background-color: #e0e0e0;
  padding: 0.25rem 0.75rem;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 1.5rem;
}

.ts-alerta {
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.ts-alerta-info {
  background-color: #e9f5fb;
  color: #0c5460;
  border: 1px solid #d1ecf1;
}

.ts-alerta-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.ts-acoes {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.ts-acao-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.ts-acao-btn:hover {
  background-color: #e0e0e0;
}

.ts-acao-btn i {
  margin-right: 4px;
}

.ts-acao-btn.steam {
  color: #171a21;
}

.ts-acao-btn.steam:hover {
  background-color: #66c0f4;
  color: #fff;
}

.ts-acao-btn.print {
  color: #333;
}

.ts-acao-btn.print:hover {
  background-color: #4caf50;
  color: #fff;
}

.ts-acao-btn.excluir {
  color: #333;
}

.ts-acao-btn.excluir:hover {
  background-color: #f44336;
  color: #fff;
}

/* Estilos para modal de confirmação */
.ts-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ts-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ts-modal-header {
  margin-bottom: 15px;
}

.ts-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.ts-modal-body {
  margin-bottom: 20px;
}

.ts-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ts-modal-btn {
  padding: 8px 15px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.ts-modal-btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.ts-modal-btn-secondary:hover {
  background-color: #d0d0d0;
}

.ts-modal-btn-danger {
  background-color: #f44336;
  color: #fff;
}

.ts-modal-btn-danger:hover {
  background-color: #d32f2f;
}

@media (max-width: 575.98px) {
  .ts-tabela-sorteio tbody td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .ts-tabela-sorteio thead th {
    font-size: 0.9rem;
  }
  .ts-acoes {
    flex-direction: column;
    gap: 5px;
  }
  
  .ts-acao-btn {
    width: 100%;
  }
}

/* ===== Cada linha da lista ===== */
.leaderboard-entry {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--spm-color-bg-cards, #1a1b1f);
    border: 1px solid var(--spm-color-border-cards, #333333);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem;
    overflow: visible;
}

/* ===== Item ganho ===== */
.winner-item {
    font-weight: 500;
    background: var(--spm-color-highlight-cards, #2c2d33);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    flex: 1 1 auto;
    margin-right: 1rem;
} 