/* General Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #03112b, #a7aeb9);
  color: #fff;
  text-align: center;
}

h1, h2 {
  margin: 20px 0;
  text-transform: uppercase;
}

.container {
  max-width: 800px;
  margin: 50px auto;
  background: rgba(59, 57, 149, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.form input, 
.form select, 
.form button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: calc(33% - 10px);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.form button {
  background: #4caf50;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form button:hover {
  background: #45a049;
}

/* Expense List Styles */
#expense-list li {
  position: relative; /* Enable positioning for child elements */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  padding-right: 80px; /* Add space to the right for buttons */
}

#expense-list li .edit-expense,
#expense-list li .delete-expense {
  position: absolute;
  top: 10px; /* Align both buttons to the same vertical position */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#expense-list li .edit-expense {
  right: 50px; /* Position the edit button to the left of the delete button */
  background: #596064;
  color: #fff;
}

#expense-list li .edit-expense:hover {
  background: #5b29b9;
}

#expense-list li .delete-expense {
  right: 10px; /* Align the delete button to the far right */
  background: #d99c95;
  color: #fff;
}

#expense-list li .delete-expense:hover {
  background: #c0392b;
}



/* Total Expenses */
#total-expenses {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Chart Section */
canvas {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  color:rgb(249, 244, 244);
}

#expense-list li .edit-expense {
  background: #596064;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  
}

#expense-list li .edit-expense:hover {
  background: #5b29b9;
}


/* Responsive Design */
@media (max-width: 600px) {
  .form input, 
  .form select, 
  .form button {
      width: 100%;
  }
}
