.thq-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

h1 {
  text-align: center;
  color: #333;
}

#progress-bar {
  position: relative;
  width: 100%;
  height: 30px;
  background-color: #f3f3f3;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

#progress {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.5s;
}

#progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #c0c0c0;
  font-weight: normal;
  font-size: 14px;
  pointer-events: none; /* agar label tidak mengganggu interaksi */
}



label {
  margin-right: 10px;
}

select {
  margin-right: 20px;
  padding: 5px;
}

.card {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card:hover {
  background-color: #f9f9f9;
}

.card h3 {
  margin: 0;
  color: #007bff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card p {
  margin: 5px 0;
  color: #555;
}

.progress-status {
  font-weight: bold;
  color: #4caf50;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .thq-container {
    padding: 10px;
  }

  select {
    width: 100%;
    margin-bottom: 10px;
  }

  .card {
    padding: 10px;
  }

  #reset-progress,
  #toggle-target-mode {
    width: 100%;
    margin-bottom: 10px;
  }

  .filter-bar {
    flex-direction: column;
  }
}

/* Filter bar */
.filter-bar {
  position: sticky;
  top: 0;
  background-color: #fff;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #ccc;
}

/* Reset & Target Buttons */
#reset-progress {
  background: red;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  margin: 10px 0;
  cursor: pointer;
}

#toggle-target-mode {
  background: #f0f0f0;
  color: #333;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 10px 0;
  cursor: pointer;
}

/* Targeted Style */
.card.targeted {
  border-color: #2196f3;
  background-color: #e3f2fd;
}

/* Favorite */
.card .fav-btn {
  float: right;
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
}

.card.favorited .fav-btn {
  color: gold;
}

/* Target Checkbox */
.card .target-box {
  margin-right: 5px;
  cursor: pointer;
}

/* Habit Tracker */
.habit-tracker {
  margin-top: 10px;
  font-size: 12px;
}

.habit-tracker span {
  margin-right: 3px;
}
