/* Badge styles */
.badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
  padding: 10px;
  background-color: var(--card-bg, #ffffff);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-5px);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.badge-item.active .badge-icon {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: white;
}

.badge-item.inactive .badge-icon {
  background-color: #e2e8f0;
  color: #a0aec0;
}

.badge-level {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-color, #2d3748);
}

.badge-item.inactive .badge-level {
  color: #a0aec0;
}

.badge-progress {
  display: flex;
  align-items: center;
  margin-top: 10px;
  width: 100%;
  max-width: 600px;
}

.badge-progress-bar {
  flex-grow: 1;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.badge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color, #4361ee), var(--accent-color, #4cc9f0));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.badge-progress-text {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color, #2d3748);
  white-space: nowrap;
}

.current-badge {
  font-weight: bold;
  color: var(--primary-color, #4361ee);
}

/* Tooltip for badges */
.badge-item {
  cursor: pointer;
  position: relative;
}

.badge-item:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 5px;
}