@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f9;
  color: #333;
}

header {
  /* background-color: #007bff; */
  background-color: #212121;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 32px;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.add-task,
.task-list {
  flex: 1;
  min-width: 300px;
}

.add-task {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.add-task h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

.form-group textarea {
  resize: vertical;
}

textarea:focus {
  border-color: #0034f1;
  outline: none;
}

input:focus {
  border-color: #0034f1;
  outline: none;
}

.add-task-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #007bff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-task-btn:hover {
  background-color: #0056b3;
}

.task-list {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.task-list h2 {
  margin-bottom: 20px;
  font-size: 26px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.1px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 7px;
  transition: all ease-in-out 0.3s;
  margin-bottom: 10px;
}

.task-item:hover {
  color: white;
  background-color: #4f4f4f;
  .task-desc {
    color: #c8c8c8;
  }
}

.task-info {
  flex: 1;
}

.task-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: -3px;
}

.task-desc {
  margin: 5px 0;
  color: #505050;
  font-weight: 600;
  font-size: 16px;
}

.task-date {
  font-size: 14px;
  color: #007bff;
  font-weight: 600;
}

.task-actions {
  display: flex;
  gap: 10px;
}

.edit-btn,
.delete-btn {
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.edit-btn {
  background-color: #ffc107;
  color: #fff;
}

.edit-btn:hover {
  background-color: #e0a800;
}

.delete-btn {
  background-color: #dc3545;
  color: #fff;
}

.delete-btn:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 20px;
  }

  header h1 {
    font-size: 24px;
  }

  .add-task,
  .task-list {
    padding: 20px;
  }

  .task-name {
    font-size: 18px;
  }

  .task-desc,
  .task-date {
    font-size: 14px;
  }

  .edit-btn,
  .delete-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.footer-text {
  text-align: center;
  margin-top: 70px;
  font-weight: 600;
  letter-spacing: 1.2px;
  cursor: pointer;
  margin-top: 95px;
  user-select: none;
}

.footer-text span {
  text-align: center;
  color: #007bff;
}
