* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  /* A very soft gray background, not pure white */
  background-color: #f4f7f6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.container {
  width: 450px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  /* A soft, realistic drop shadow instead of a glowing box shadow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input {
  padding: 12px 15px;
  margin-bottom: 25px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fafbfc;
  transition: border-color 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #3498db;
  background-color: #ffffff;
}

#add-btn {
  padding: 15px;
  background-color: #3498db; /* Professional Blue */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 30px;
  transition: background-color 0.2s;
}

#add-btn:hover {
  background-color: #2980b9;
}

#total-amount {
  font-size: 1.5rem;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

/* Make the dynamic items look like individual cards */
.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  /* Add a little color accent on the left side */
  border-left: 4px solid #3498db;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.expense-item button {
  background-color: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expense-item button:hover {
  background-color: #e74c3c;
  color: white;
}
