* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2em;
  margin-bottom: 5px;
}

#userStats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.statBox {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 10px;
}

#xpBarContainer {
  width: 250px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

#xpBar {
  height: 10px;
  width: 0%;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 0.3s ease-in-out;
}

#add-goal {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

#goalInput {
  width: 250px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

#addGoalBtn {
  padding: 10px 20px;
  background: #00c6ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#addGoalBtn:hover {
  background: #0072ff;
}

#goalItems li {
  list-style: none;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

#goalItems li.completed {
  opacity: 0.6;
  text-decoration: line-through;
}

button.completeBtn {
  background: #4caf50;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

button.deleteBtn {
  background: #e53935;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

#badgeList {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  background: gold;
  color: black;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  opacity: 0.8;
}

footer {
  margin-top: 30px;
  opacity: 0.7;
}
