@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #121212, #1f1f1f);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 500px;
  margin-top: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.title {
  margin-bottom: 20px;
  font-size: 28px;
  color: #ff4c8b;
  letter-spacing: 1px;
}

.add-btn {
  background-color: #ff4c8b;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn:hover {
  background-color: #ff6fa7;
}

.task-list {
  list-style: none;
  margin-top: 25px;
}

.task-item {
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
  padding: 15px;
  border-radius: 14px;
  text-align: left;
  position: relative;
  transition: background 0.3s ease;
}

.task-item.done {
  background: rgba(0, 255, 100, 0.15);
  border-left: 4px solid #00ff6a;
}

.task-item h3 {
  margin-bottom: 6px;
  color: #fff;
}

.task-item p {
  font-size: 14px;
  color: #ccc;
}

.priority {
  font-size: 13px;
  font-weight: 600;
  color: #ff4c8b;
}

.options {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #aaa;
}

.option-menu {
  display: none;
  position: absolute;
  right: 10px;
  top: 35px;
  background: #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.option-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 8px 15px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.option-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 14px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.popup-content h2 {
  color: #ff4c8b;
  margin-bottom: 15px;
}

.popup-content input,
.popup-content textarea,
.popup-content select {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: white;
}

.popup-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.popup-actions button {
  padding: 8px 15px;
  border: none;
  border-radius: 10px;
  background: #ff4c8b;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.popup-actions button:hover {
  background: #ff6fa7;
}

footer {
  margin-top: auto;
  padding: 15px;
  text-align: center;
  color: #888;
  font-size: 15px;
}
