:root {
  --primary-color: #2C3F51;
  --accent-color: #3497DA;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --gradient-primary: linear-gradient(to right, #2C3F51, #3497DA);
}

body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.ranking-header {
  background: var(--gradient-primary);
  color: white;
  padding: 5px 0 1px 0;  /* Reduced from 1rem to make it more compact */
  /* border-radius: var(--border-radius); */
  margin-bottom: 0rem;  /* Reduced from 1.5rem */
  text-align: center;
  box-shadow: var(--card-shadow);
}

.ranking-title {
  font-weight: 600;  /* Reduced from 700 */
  margin-bottom: 0.3rem;  /* Reduced from 0.5rem */
  font-size: 1.5rem;  /* Added to make header smaller */
}

.ranking-subtitle {
  opacity: 0.9;
  font-weight: 300;
  font-size: 0.9rem;  /* Added to make subtitle smaller */
}

.data-selector {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
}

.data-selector input {
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  height: 36px;
}

.data-selector form {
  margin: 0;
}

.data-selector .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Common styles for all pages */
.jogos-table {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Improved date selector appearance */
.data-selector .input-group-text {
  padding: 0.35rem 0.7rem;
  background-color: #f8f9fa;
}

/* Custom row spacing in the date selector */
.data-selector .row.g-1 {
  margin-left: -4px;
  margin-right: -4px;
}

.data-selector .row.g-1 > [class*="col-"] {
  padding-left: 4px;
  padding-right: 4px;
}

/* Responsive adjustments for the date selector */
@media (max-width: 768px) {
  .data-selector {
    padding: 0.5rem 0.75rem;
  }
}

.data-selector button {
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.data-selector button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.jogos-table {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border-spacing: 0 2px; /* Add slight spacing between rows */
}

.jogos-table thead {
  background: var(--gradient-primary);
  background-image: var(--gradient-primary);
}

.jogos-table thead th {
  background: transparent;
  color: white;
  font-weight: 500;  /* Reduced from 600 */
  text-transform: uppercase;
  font-size: 0.85rem;  /* Reduced from 0.9rem */
  padding: 0.75rem;  /* Reduced from 1rem */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.jogos-table tbody tr {
  border-bottom: 2px solid rgba(0, 0, 0, 0.03); /* Add spacing between rows */
  transition: all 0.2s ease;
}

.jogos-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.jogos-table td {
  padding: 0.65rem 0.6rem; /* Slightly increased vertical padding */
  vertical-align: middle;
  font-size: 0.95rem;
}

/* Enhanced points column */
.jogos-table td.points-column {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.05rem;
  position: relative;
  background-color: rgba(52, 152, 219, 0.03);
  border-left: 1px solid rgba(52, 152, 219, 0.1);
  border-right: 1px solid rgba(52, 152, 219, 0.1);
}

.posicao {
  color: #777;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.placares {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.placar {
  font-weight: 600;  /* Reduced from 700 */
  font-size: 1.25rem;
  color: var(--primary-color);
}

.pontuacao {
  font-weight: 600;  /* Reduced from 700 */
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Ícones modernos */
.icone {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Estilo para os jogos na tabela de ranking */
.jogos-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.jogo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.win {
  background-color: var(--success-color);
}

.loss {
  background-color: var(--danger-color);
}

/* Para posições no ranking */
.position-up {
  color: var(--success-color);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
}

.position-down {
  color: var(--danger-color);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
}

.position-neutral {
  color: #777;
  font-size: 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Badges para indicação visual */
.badge-special {
  font-size: 0.7rem;
  padding: 2px 6px;
  font-weight: 500;  /* Reduced from 600 */
  border-radius: 10px;
  display: inline-block;
  margin-left: 5px;
}

/* Classes para as medalhas - removido para evitar conflito com enhanced-medals.css */
/* As medalhas agora são estilizadas em enhanced-medals.css com bordas */

/* Responsividade */
@media (max-width: 768px) {
  .jogos-table {
    font-size: 0.85rem;
  }
  
  .jogos-table td {
    padding: 0.5rem 0.4rem;
  }
  
  .ranking-title {
    font-size: 1.3rem;
  }
  
  .ranking-header {
    padding: 0.5rem 0;  /* Reduced from 0.75rem for more compactness on mobile */
  }
}

/* Estilo para legenda */
.legenda-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
}

.legenda-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.legenda-icon {
  margin-right: 10px;
  width: 24px;
  text-align: center;
}

.legenda-text {
  font-size: 0.9rem;
}
