body {
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 500px;
  background: #fff;
  margin: 40px auto;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  padding: 28px 22px 22px 22px;
}

h1 {
  text-align: center;
  margin-bottom: 16px;
  color: #3a7bd5;
  letter-spacing: 1px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

input, textarea, button {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 1em;
}

input[type="file"] {
  padding: 2px;
}

button {
  background: linear-gradient(90deg, #3a7bd5 0%, #00d2ff 100%);
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

button:hover {
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
}

#todoList {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f6fbff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(58,123,213,0.08);
  padding: 14px 12px;
  position: relative;
}

.task-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #eaeaea;
  flex-shrink: 0;
}

.task-details {
  flex: 1;
}

.task-title {
  font-size: 1.13em;
  font-weight: 600;
  margin-bottom: 3px;
  color: #3a7bd5;
}

.task-meta {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 2px;
}

.task-notes {
  font-size: 0.93em;
  color: #666;
  margin-top: 4px;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: #e63946;
}

@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    padding: 12px 4vw;
  }
  .task-card {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .task-img {
    width: 100%;
    height: 130px;
  }
  .task-card.completed {
  opacity: 0.55;
  text-decoration: line-through;
  background: #e0e0e0;
}

.complete-btn {
  position: absolute;
  top: 10px;
  right: 46px;
  background: #51cf66;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.complete-btn:hover {
  background: #2b9348;
}

}


