body {
  font-family: 'Segoe UI', sans-serif;
  background: #1f2a44;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: white;
}

.container {
  background: #2c3a5d;
  padding: 25px;
  border-radius: 15px;
  width: 420px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

h2 {
  text-align: center;
  margin-bottom: 15px;
}

.top {
  display: flex;
  gap: 10px;
}

input, select {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

#add {
  background: #7ed957;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

ul {
  margin-top: 15px;
  padding: 0;
}

li {
  list-style: none;
  background: #3a4a6a;
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-text {
  flex: 1;
  margin-left: 5px;
  font-size: 14px;
}

/* badges */
.badge {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
}

.low { background: #4caf50; }
.medium { background: #ff9800; }
.high { background: #f44336; }

/* buttons */
button {
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.edit {
  background: #2196f3;
  color: white;
}

.delete {
  background: #e53935;
  color: white;
}

button:hover {
  opacity: 0.85;
}

li:hover {
  transform: scale(1.02);
  transition: 0.2s;
}

/* emoji */
.emoji-bar {
  margin-top: 8px;
  text-align: center;
}

.emoji-bar span {
  cursor: pointer;
  font-size: 18px;
  margin: 5px;
  transition: 0.2s;
}

.emoji-bar span:hover {
  transform: scale(1.3);
}

#progress {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}