@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Jost', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url('./images/background.jpg') no-repeat center center / cover;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
}

.todo-app {
  width: 100%;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.todo-app h1 {
  font-size: 2rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(to right, #e2cbd1, #e09467);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-area {
  width: 100%;
  display: flex;
  gap: 10px;
}

.input-area input {
  flex: 1;
  padding: 12px 18px;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(5px);
}

.input-area input::placeholder {
  color: #dddddd;
}

.input-area button {
  padding: 10px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(255, 111, 145, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.input-area button:hover {
  background: #ff6f91;
  transform: scale(1.1);
}

.todos-container {
  width: 100%;
}

#task-list {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

#task-list li:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Checkbox Styling */
input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ff6f91;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background-color: transparent;
}

input[type="checkbox"]:checked {
  background-color: #ff6f91;
  border-color: #ff6f91;
}

input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}

input[type="checkbox"]:checked::after {
  display: block;
}

/* Task Text */
#task-list li span {
  color: #fff;
  font-size: 1rem;
  margin-left: 12px;
  font-weight: 600;
}

/* Button Group */
#task-list li button {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
}

#task-list li button:nth-child(1) {
  color: #ffc3a0;
}

#task-list li button:nth-child(1):hover {
  color: #ff9f80;
  transform: scale(1.2);
}

#task-list li button:nth-child(2) {
  color: #ff6f91;
}

#task-list li button:nth-child(2):hover {
  color: #ff3c6d;
  transform: scale(1.2);
}

#task-list::-webkit-scrollbar {
  width: 6px;
}

#task-list::-webkit-scrollbar-thumb {
  background: rgba(255, 111, 145, 0.6);
  border-radius: 5px;
}

.empty-image {
  width: 100%;
  max-width: 250px;
  opacity: 0.8;
  display: block;
  margin: 0 auto 20px;
}

@media (max-width: 500px) {
  .todo-app {
    padding: 1.5rem;
  }

  .input-area {
    flex-direction: column;
  }

  .input-area input {
    width: 100%;
  }

  .input-area button {
    margin-left: 0;
    margin-top: 10px;
    border-radius: 12px;
    width: 100%;
  }

  #task-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
