@font-face {
  font-family: 'vazir';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font/dist/Vazir.woff2')
    format('woff2');
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'vazir', sans-serif;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  position: relative;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
input {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background-color: #f1f1f1;
  font-size: 16px;
  text-align: center;
}
button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background-color: #0072ff;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
button:hover {
  background-color: #005ddd;
}
ul {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
li {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  transition: background 0.3s;
}
li.done {
  background-color: #d1ffd1;
  text-decoration: line-through;
}
li h3 {
  margin: 0;
  font-size: 14px;
  color: #555;
}
li p {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0.95;
  z-index: 1000;
  animation: fadeIn 0.5s;
}
.toast.error {
  background-color: #ff4d4d;
}
.toast.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}
i {
  font-size: 18px;
  cursor: pointer;
}
button.done-btn {
  background-color: #28a745;
  color: white;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  input,
  button {
    font-size: 14px;
  }
}
