
body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, purple, blue);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  backdrop-filter: blur(10px);
}

h1 {
  margin-bottom: 20px;
  color: #4b0082; 
  font-size: 1.6rem;
}


.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  border-color: purple;
}


button {
  background: linear-gradient(135deg, purple, blue);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 14px;
}

button:hover {
  background: linear-gradient(135deg, #5e17eb, #2e86de);
  transform: scale(1.05);
}

#update-btn {
  background: linear-gradient(135deg, #860202, #f70404);
}

#update-btn:hover {
  background: linear-gradient(135deg, #592001, #fa2525);
}


ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: rgba(254, 254, 255, 0.9);
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 15px;
}

li:hover {
  background: rgb(71, 119, 252);
  color: white;
  transform: scale(1.02);
}


li button {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  padding: 5px;
  border-radius: 8px;
  transition: 0.3s;
}

li button svg {
  width: 18px;
  height: 18px;
  fill: #4b0082;
  transition: 0.3s;
}

li button:hover svg {
  fill: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  h1 {
    font-size: 1.4rem;
  }

  input {
    font-size: 14px;
  }

  button {
    font-size: 13px;
    padding: 8px 12px;
  }

  li {
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .input-section {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  li {
    flex-direction: column;
    align-items: flex-start;
  }

  li .actions {
    margin-top: 8px;
  }
}
