
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to right, #2c3e50, #4ca1af);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

#container {
  background: white;
  width: 400px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in-out;
}

h3 {
  text-align: center;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 10px;
}

input, select, button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input, select {
  background: #f0f0f0;
}

input:focus, select:focus {
  outline: none;
  box-shadow: 0px 0px 10px rgba(76, 161, 175, 0.5);
}

button {
  background: #27ae60;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #219150;
  transform: scale(1.05);
}

#transaction-list {
  margin-top: 15px;
  list-style-type: none;
  max-height: 200px;
  overflow-y: auto;
}

#transaction-list li {
  background: white;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(10px);
  opacity: 0;
  animation: slideUp 0.5s ease-in-out forwards;
}

.plus {
  color: green;
  border-left: 5px solid green;
}

.minus {
  color: red;
  border-left: 5px solid red;
}

.income, .expense, h2 {
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  font-weight: 600;
  border-radius: 6px;
}

.income {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.expense {
  background: rgba(231, 76, 60, 0.2);
  color: #c0392b;
}

h2 {
  background: rgba(52, 152, 219, 0.2);
  color: #2980b9;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide-up Animation */
@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.delete{
  background-color: rgb(150, 27, 27);
  color: white;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
}