@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

body {
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  font-family: "Inter", sans-serif;
}
.app-container {
  padding: 1rem;
  margin: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.todo-box {
  border-radius: 1rem;
  padding: 1rem;
  width: 85%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.5rem;
  height: 400px;
}

.left-box,
.right-box {
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.right-box {
  gap: 2.5rem;
}
.left-box {
  overflow-y: auto;
}
.empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #6b7280;
  margin-top: 50px;
}
.empty-state p {
  text-align: center;
  font-size: 1.2rem;
}
#taskDisplay {
  list-style: none;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}
#taskForm {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
#taskInput {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
#taskInput:focus {
  outline: none;
  border-color: #6b7280;
}
.add-task-btn {
  width: 10%;
  /* width: 3rem; */
  height: 3rem;
  padding: 1rem;
  background-color: #a1a3a9;
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-task-btn:hover {
  background-color: #6b7280;
  transition: background-color 0.5s ease;
}

.filter-btn {
  flex: 1;
  padding: 0.75rem;
  background-color: white;
  border: 2px solid #a1a3a9;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active {
  background-color: #e5e7eb !important;
  transition: background-color 0.5s ease;
}

.filter-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

#all-task-btn {
  width: 40%;
  padding: 1rem;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  cursor: pointer;
  font-size: medium;
  font-weight: bold;
}
#completed-task-btn {
  width: 80%;
  padding: 1rem;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  cursor: pointer;
  font-size: medium;
  font-weight: bold;
}
#pending-task-btn {
  width: 80%;
  padding: 1rem;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  cursor: pointer;
  font-size: medium;
  font-weight: bold;
}
#completed-task-btn:hover {
  background-color: #e5e7eb;
  transition: background-color 0.5s ease;
}
#pending-task-btn:hover {
  background-color: #e5e7eb;
  transition: background-color 0.5s ease;
}

/* JS styles */

#taskList {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: calc(100% - 40px);
  max-width: 100%;
  list-style: none;
}

/* Scrollbar styling */
#taskList::-webkit-scrollbar {
  width: 5px;
}
#taskList::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.taskItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  background-color: #e5e7eb;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 15px;
  box-sizing: border-box;
}
.task {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.filter-btn {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.task-btn {
  cursor: pointer;
  border: none;
  background-color: transparent;
  font-size: 18px;
  color: #6b7280;
}
.task-btn .task-text {
  flex: 1;
  margin-right: 15px;
  word-break: break-word;
  padding: 6px 0;
  font-size: 26px;
  line-height: 1.5;
}
.completed p {
  text-decoration: line-through;
  color: #6b7280;
}
