/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f9fc;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  color: #2c3e50;
}

.subtitle {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Add section */
.add-section {
  margin-bottom: 20px;
}

#task-form {
  display: flex;
  gap: 10px;
}

#task-input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

#add-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #3498db;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#add-btn:hover {
  background: #2980b9;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.controls select,
.controls button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 0.9rem;
}

.controls button {
  background: #e74c3c;
  color: #fff;
  border: none;
}

.controls button:hover {
  background: #c0392b;
}

/* Progress bar */
.progress-wrap {
  margin-top: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.progress {
  background: #ecf0f1;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transition: width 0.3s ease;
}

/* Task list */
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: center;
  background: #fafafa;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.task-item:hover {
  transform: translateX(3px);
  background: #f1f1f1;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.task-checkbox {
  transform: scale(1.2);
  margin-right: 8px;
}

.task-content {
  flex: 1;
}

.task-title {
  margin: 0;
  font-size: 1rem;
}

.task-actions button {
  margin-left: 8px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.task-actions button:hover {
  transform: scale(1.2);
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #7f8c8d;
}
