* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  padding: 4rem 0;
}

h1 {
  text-align: center;

  font-size: 2.5rem;
  font-weight: 700;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subTitle {
  text-align: center;
  margin: 0;
  font-weight: 700;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.taskContainer,
.searchBar {
  width: 100%;
}

.taskContent {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;
  width: 100%;
  overflow: auto;
}

.searchBar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 24px;
}

.searchBarContainer {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.searchBarContainer:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background: white;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  padding: 16px;
  color: #64748b;
  background: transparent;
  border: none;
  font-size: 20px;
}

#input {
  flex: 1;
  padding: 16px 16px 16px 0;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #1e293b;
  outline: none;
}

#input::placeholder {
  color: #94a3b8;
}

.addButton {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.addButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.addButton:active {
  transform: translateY(0);
}

.taskItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  gap: 20px;

  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.taskItem:hover {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.taskItem input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
  cursor: pointer;
}

.taskContent h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 4px;
}

.taskContent p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.deleteTask {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deleteTask:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

.deleteAllContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}

.filterTasks {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filterTasks p {
  font-weight: 500;
  color: #64748b;
  margin-right: 8px;
}

.filter {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.deleteAll {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deleteAll:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-1px);
}

.hidden {
  display: none;
}

input {
  outline: none;
}

/* TASK INPUT INTERFACE */

.taskInputInterface {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  background-color: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  border-radius: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.taskInputInterface h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  text-align: center;
}

.taskTitle,
.taskDescription {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.taskTitle p,
.taskDescription p {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.titleInput,
.descriptionInput {
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
}

.titleInput:focus,
.descriptionInput:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.descriptionInput {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.addTask {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.addTask:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.closeButton {
  padding: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #64748b;
}

.closeButton:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* .closeButton .material-symbols-outlined {
  padding: 0;
  font-size: 20px !important;
} */

/* Responsive Design */

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .taskInputInterface {
    width: 90%;
  }
  .container {
    padding: 24px;
    border-radius: 20px;
  }

  .searchBar {
    flex-direction: column;
    gap: 12px;
  }

  .addButton {
    width: 100%;
  }

  .deleteAllContainer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .filterTasks {
    justify-content: center;
    flex-wrap: wrap;
  }

  .taskItem {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .filterTasks {
    flex-direction: column;
    align-items: center;
  }

  .filterTasks p {
    margin-bottom: 8px;
  }
  .material-symbols-outlined {
    font-size: 15px !important;
  }
}
