* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #000430;
  --secondaryBackground: #171c48;
  --text: #fff;
  --purple: #828dff;
  --teal: #24feee;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: sans-serif;
}

/* AUTH */
#auth-box {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#auth-box input {
  width: 250px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* CONTAINER */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 120px auto 0;
  max-width: 500px;
}

/* TOP BAR */
.top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.logout-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* STATS */
.stats-container {
  padding: 30px;
  border-radius: 20px;
  border: 2px solid var(--purple);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#progressBar {
  width: 100%;
  height: 10px;
  background: var(--secondaryBackground);
  border-radius: 5px;
  margin-top: 20px;
}

#progress {
  height: 10px;
  background: var(--teal);
  border-radius: 10px;
  transition: 0.3s;
}

#numbers {
  width: 100px;
  height: 100px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

/* FORM */
form {
  margin-top: 40px;
  width: 100%;
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 14px;
  background: var(--secondaryBackground);
  border: 1px solid var(--purple);
  border-radius: 10px;
  color: white;
}

/* ONLY + BUTTON */
#newTask {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 28px;
  border: none;
  cursor: pointer;
}

/* TASK LIST */
#task-list {
  width: 100%;
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.taskItem {
  background: var(--secondaryBackground);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task {
  display: flex;
  gap: 10px;
  align-items: center;
}

.completed p {
  text-decoration: line-through;
  color: var(--teal);
}

/* ICONS */
.icons {
  display: flex;
  gap: 8px;
}

.icons button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icons .edit-btn {
  background: #4f6cff;
}

.icons .delete-btn {
  background: #ef4444;
}
