* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #111827, #2563eb);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 550px;
}

.todo-app {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  color: #111827;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 14px;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.input-section input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
}

.input-section input:focus {
  border-color: #2563eb;
}

.input-section button {
  border: none;
  padding: 12px 18px;
  background: #f59e0b;
  color: #111827;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
}

.message {
  min-height: 20px;
  text-align: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
}

.filter-btn.active {
  background: #2563eb;
  color: white;
}

.task-count {
  color: #374151;
  font-size: 14px;
}

#taskList {
  list-style: none;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: #f3f4f6;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

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

.task-content {
  flex: 1;
}

.task-text {
  color: #111827;
  word-break: break-word;
  display: block;
  margin-bottom: 6px;
}

.task-text.completed {
  text-decoration: line-through;
  color: #6b7280;
}

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

.action-btn {
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
}

.edit-btn {
  background: #f59e0b;
  color: #111827;
}

.delete-btn {
  background: #ef4444;
}

.empty-state {
  text-align: center;
  background: #f3f4f6;
  padding: 20px;
  border-radius: 12px;
  color: #6b7280;
}

