/* Reset i bazowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f2f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2rem;
  color: #4a90e2;
}

/* Search input */
#search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px auto;
  display: block;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s;
}

#search:focus {
  border-color: #4a90e2;
  outline: none;
}

/* Todo list */
#todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Single task */
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-item span {
  cursor: pointer;
}

.task-item mark {
  background-color: #ffeb3b;
  color: #000;
}

/* Delete button */
.task-item button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.task-item button:hover {
  background-color: #c0392b;
}

/* Add task section */
#add-task-section {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

#add-task-section input[type="text"],
#add-task-section input[type="date"] {
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #ddd;
  font-size: 1rem;
  transition: border-color 0.3s;
}

#add-task-section input:focus {
  border-color: #4a90e2;
  outline: none;
}

#add-task-section button {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#add-task-section button:hover {
  background-color: #357ab8;
}

/* Footer */
footer {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
  color: #777;
}
