* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: currentColor;
}

body {
  background-color: beige;
  font-family: Arial, sans-serif;
}
.container {
  margin-top: 100px;
  padding: 30px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.title {
  font-size: 30px;
  text-align: center;
  font-weight: bold;
  text-decoration: underline;
  color: rgb(70, 47, 18);
}

/* Контейнер для іконки та інпуту */
.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Іконка всередині інпуту */
.input-container i {
  position: absolute;
  left: 20px;
  top: 23.5px;
  color: rgb(70, 47, 18);
  font-size: 20px;
}

.form-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.form-input {
  padding: 15px 15px 15px 45px;
  border-radius: 10px;
  border: none;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.3);
  color: rgb(70, 47, 18);
  font-size: 30px;
  background-color: bisque;
}

::placeholder {
  color: rgb(70, 47, 18);
  font-size: 20px;
}
.form-btn {
  padding: 10px;
  font-size: 25px;
  color: antiquewhite;
  border-radius: 10px;
  border: none;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  background-color: rgb(125, 99, 67);
  &&:hover {
    cursor: pointer;
    color: rgb(70, 47, 18);
    background-color: aquamarine;
  }
}

#theme-toggle {
  padding: 10px 15px;
  font-size: 24px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  background-color: rgb(158, 132, 100);
  color: rgb(70, 47, 18);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#theme-toggle:hover {
  cursor: pointer;
  background-color: aquamarine;
}
/* Темна тема */
.dark-theme {
  background-color: #2e1f0f;
  color: #f5deb3;
}

.dark-theme .title {
  color: #e0c9a6;
}

.dark-theme .form-input .input-container i {
  background-color: #4a2e19;
  color: #f5deb3;
  box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.1);
}

.dark-theme ::placeholder {
  color: #d1a477;
}

.dark-theme .form-btn {
  background-color: #4a2e19;
  color: #f5deb3;
  box-shadow: 4px 4px 10px rgba(255, 255, 255, 0.1);
}

.dark-theme .form-btn:hover {
  background-color: #694d40;
  color: #fff2d7;
}

.dark-theme #theme-toggle {
  background-color: #5e4033;
}

.dark-theme #theme-toggle:hover {
  background-color: #694d40;
}

/* Стилізація списку */
ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Стилізація завдань */
li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #ffedd5; /* Світлий фон */
  padding: 10px 15px;
  margin-top: 8px;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.dark-theme li {
  background-color: #4a2e19;
  color: #f5deb3;
}
.dark-theme li:hover {
  background-color: #694d40;
}

/* Ефект при наведенні */
li:hover {
  background: #fed7aa;
}

/* Стиль для виконаних завдань */
.completed {
  text-decoration: line-through;
  color: #6b7280;
  opacity: 0.7;
}

/* Кнопки дій */
button {
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin-left: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  transition: 0.2s;
}

/* Кнопка виконання */
.complete {
  background-color: #34d399;
}

/* Кнопка редагування */
.edit {
  background-color: #fbbf24;
}

/* Кнопка видалення */
.delete {
  background-color: #ea9393;
}

/* Анімація кнопок */
button:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Загальні стилі для підказки */
.tooltip {
  position: relative;
  cursor: pointer;
}

/* Додаємо текст підказки */
.tooltip::after {
  content: attr(data-tooltip); /* Отримує текст із атрибуту */
  position: absolute;
  background-color: #694d40;
  color: #fff2d7;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 5px;
}

/* Показуємо підказку при наведенні */
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  background-color: #4a2e19;
  color: #f5deb3;
}

/* Адаптація під мобільні та планшети */
@media (max-width: 768px) {
  .title {
    font-size: 30px;
  }

  .container {
    padding: 20px;
  }

  .form-content {
    flex-direction: column;
    gap: 15px;
  }

  .form-input {
    width: 100%;
    font-size: 10px;
  }

  .form-btn {
    width: 100%;
  }

  li {
    flex-direction: column;
    gap: 10px;
  }

  button {
    font-size: 14px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  /* .title {
    font-size: 20px;
  } */

  .container {
    padding: 15px;
  }

  .form-input {
    font-size: 16px;
    padding: 10px 15px 10px 40px;
  }

  .form-btn {
    font-size: 16px;
  }

  #theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  button {
    font-size: 14px;
  }
}
