/* filepath: public_html/tasks-v1/css/styles.css */
body {
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

div,
header,
footer,
section,
.container {
  border-color: #333;
  border-style: solid;
  border-width: 1px;
}

header {
  background: #007bff;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
}

.container {
  max-width: 768px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

#task-input-section,
#task-list-section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#task-form input[type="text"] {
  width: calc(100% - 80px);
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

#task-form button {
  padding: 10px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#task-form button:hover {
  background: #0056b3;
}

.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item.task-completed span {
  text-decoration: line-through;
  color: #aaa;
}

.list-group-item-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.list-group-item span {
  flex-grow: 1;
  cursor: pointer;
}

.list-group-item button {
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  background: #333;
  color: #0804fb;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #task-form input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
  }

  #task-form button {
    width: 100%;
  }

  .list-group-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-group-item button {
    margin-top: 10px;
    margin-left: 0;
  }
}
