* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg,navy , navy 100%);
  min-height: 100vh;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

#title {
  color: white;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

main {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 30px;
}

section {
  margin-bottom: 30px;
}

section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5em;
}

#taskStats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: #34495e;
  font-size: 0.95em;
}

#taskStats strong {
  color: #2c3e50;
}

/* ============ FORM STYLING ============ */
form {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

label {
  color: #34495e;
  font-weight: 600;
  align-self: center;
}

input[type="text"] {
  flex: 1;
  min-width: 150px;
  padding: 12px 15px;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

button[type="submit"] {
  padding: 12px 30px;
  background: #f80757;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* ============ TASK LIST STYLING ============ */
ul {
  list-style: none;
}

.task-item {
  padding: 15px;
  margin: 10px 0;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.task-item:hover {
  background: #ecf0f1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left-color: #764ba2;
}

.task-text {
  color: #2c3e50;
  font-size: 1.1em;
  flex: 1;
  cursor: pointer;
}

/* ============ DELETE BUTTON STYLING ============ */
.delete-btn {
  padding: 8px 15px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.delete-btn:hover {
  background: #c0392b;
  transform: scale(1.05);
}

.delete-btn:active {
  transform: scale(0.98);
}

.completed {
  text-decoration: line-through;
  color: gray;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #34495e;
  font-size: 0.9em;
}

footer p {
  color: #131313;
}