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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f1f1f1;
}

/* Todo Container */

.todo-container {
  width: 100%;
  max-width: 550px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
}

/* Todo Header */

.todo-header {
  text-align: center;
  margin-bottom: 10px;
}

.todo-header h1 {
  color: #222;
  margin-bottom: 10px;
}

.todo-header p {
  color: #222;
  font-size: 1.1rem;
}

/* Todo Input Container */

.todo-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 30px 0px 30px 0px;
}

/* Todo input Field */
.todo-input-container input {
  flex: 1;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px;
  outline: none;
  background-color: aliceblue;
}

.todo-input-container input:focus {
  border: 1px solid blue;
}

/* Todo add Butto */
.todo-input-container button {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border: none;
  color: #ffffff;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
}

.todo-input-container button:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}

/* Todo filter Buttons */
.todo-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.todo-filter-btn {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: linear-gradient(135deg, #a0e9fd, #70cfff);
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: black;
}

.clear-completed {
  color: red;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #d9b3ff, #9a66ff);
}

.todo-items {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: black;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Todo List Items */

.todoList {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  background: rgba(100, 181, 246, 0.25);
  padding: 18px;
  border-radius: 12px;
}

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

.remove-todo {
  width: 30px;
  height: 30px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.remove-todo:hover {
  transform: scale(1.02);
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
}

.textValue[contentEditable="true"] {
  border: 2px solid red;
  padding: 5px;
}

.edit-todo {
  width: 30px;
  height: 30px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.edit-todo:hover {
  transform: scale(1.02);
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
}

.todo-items::-webkit-scrollbar {
  width: 8px;
}

.todo-items::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.todo-items::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.todo-items::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media (max-width: 500px) {
  .clear-completed span {
    display: none;
  }

  .todo-input-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .todo-input-container input {
    width: 100%;
  }
  .todo-input-container button {
    width: 100%;
  }
}
