* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.app-container {
    background-color: fuchsia;
    width: 100%;
    max-width: 450px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.todo-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

input {
    width: 75%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 1rem;
    color: #555;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.task-list {
    list-style: none;
    padding: 8px;
}

.task-list li {
    background-color: #555;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 7px;
    display: flex;
    color: white;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.task-list li:hover {
    background-color: #4CAF50;
    transform: scale(1.02);
}

.completed {
    text-decoration: line-through;
    color: #888;
}

.task-actions {
    display: flex;
    align-items: center;
}

.task-actions button {
    background-color: #e74c3c;
    border-radius: 5px;
    padding: 6px 12px;
    color: white;
    margin-left: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.task-actions button:hover {
    background-color: #c0392b;
}

.delete-btn:focus {
    outline: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .todo-header h1 {
    font-size: 1.5rem;
  }

  input {
    width: 100%;
    font-size: 0.9rem;
  }

  button {
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 0;
  }

  .app-container {
    width: 90%;
    padding: 15px;
  }

  .task-list li {
    font-size: 1rem;
    padding: 12px;
  }

  .task-actions button {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .todo-header h1 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  input {
    width: 100%;
    font-size: 0.85rem;
    padding: 8px;
  }

  button {
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .task-list li {
    font-size: 0.95rem;
    padding: 10px;
  }

  .task-actions button {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .app-container {
    padding: 10px;
  }
}
