body.navbar-open {
  overflow: hidden !important;
  padding-top: 80px !important;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.leaderboard-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.leaderboard-subtitle {
  margin-top: 5px;
}

.leaderboard-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #495057;
  overflow: hidden;
  overflow-x: auto;
}

[data-bs-theme="light"] .leaderboard-card {
  border: 1px solid var(--border-light);
}

.table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table > :not(caption) > * > * {
  padding: 1rem 1.5rem;
}

.table thead th {
  font-weight: 600;
  border-bottom: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  background-color: var(--primary);
  color: var(--white);
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: var(--primary);
}

.rank {
  font-weight: 700;
  font-size: 18px;
  width: 50px;
  text-align: center;
}

.rank-1,
.rank-2,
.rank-3 {
  font-size: 22px;
}

.rank-1 {
  color: #ffd700; /* Gold */
}

.rank-2 {
  color: #c0c0c0; /* Silver */
}

.rank-3 {
  color: #cd7f32; /* Bronze */
}

.user-info {
  display: flex;
  align-items: center;
}

.username {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 3px;
}

.user-level {
  font-size: 13px;
}

.score {
  font-weight: 700;
  font-size: 20px;
  height: 100%;
  margin-top: 0.5rem;
}

.top-3-row {
  background-color: rgba(106, 43, 242, 0.03);
}

.top-1-row {
  background-color: rgba(255, 215, 0, 0.05);
}

@media (max-width: 767px) {
  .rank {
    width: 40px;
  }

  .avatar {
    display: none;
  }

  .table > :not(caption) > * > * {
    padding: 0.75rem 1rem;
  }
}

