.user-dashboard-container {
  background: rgba(10, 15, 25, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  color: #e0e0e0;
  font-family: "Inter", sans-serif;
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  margin: 20px auto;
  max-width: 800px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.dash-header h2 {
  margin: 0;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dash-xp-section {
  margin-bottom: 30px;
}

.dash-xp-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

.xp-progress-bar-bg {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 20px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.xp-progress-bar-fill {
  background: linear-gradient(90deg, #0088ff, #00ffff);
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.stat-value {
  font-size: 2em;
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-label {
  font-size: 0.9em;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-badges-section h3 {
  color: #00ffff;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.badge-item {
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid #ffd700;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.badge-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.badge-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.badge-name {
  font-size: 0.8em;
  font-weight: bold;
  color: #ffd700;
}

.no-badges {
  color: #666;
  font-style: italic;
  grid-column: 1 / -1;
}

#btn-view-certificates {
  background: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

#btn-view-certificates:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
