* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
  }

  h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2rem;
  }

  .todo-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 600px;
  }

  .todo-controls input {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .todo-controls button {
    padding: 10px 12px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    min-width: 90px;
  }

  .add-btn {
    background-color: #28a745;
    color: #fff;
  }

  .add-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
  }

  .clear-btn {
    background-color: #dc3545;
    color: #fff;
  }

  .clear-btn:hover {
    background-color: #c82333;
    transform: scale(1.05);
  }

  ul {
    list-style: none;
    width: 100%;
    max-width: 600px;
  }

  li {
    background: #fff;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .todo-text {
    flex: 1;
    margin-right: 10px;
    font-size: 1rem;
    color: #555;
    word-break: break-word;
    padding: 5px;
  }

  .btn-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
  }

  .btn-edit, .btn-delete {
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
  }

  .btn-edit {
    background-color: #ffc107;
  }

  .btn-edit:hover {
    background-color: #e0a800;
  }

  .btn-delete {
    background-color: #e74c3c;
  }

  .btn-delete:hover {
    background-color: #c0392b;
  }



  @media only screen and  (max-width: 480px) {
    .todo-controls {
      flex-direction: column;
      align-items: stretch;
    }

    .todo-controls button {
      width: 100%;
    }

    li {
      flex-direction: column;
      align-items: flex-start;
    }

    .btn-group {
      width: 100%;
      justify-content: flex-end;
    }
  }