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

body {
  background: linear-gradient(to right, #74ebd5, #acb6e5);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.container {
  background: white;
  padding: 30px 25px;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.balance-card {
  text-align: center;
  margin-bottom: 25px;
}

.summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 10px;
}

.summary-box {
  flex: 1;
  background: #f1f1f1;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.income {
  border-left: 5px solid green;
}
.expense {
  border-left: 5px solid red;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

input, select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

button {
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

.list {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 20px;
}

.list li {
  background: #f7f7f7;
  border-right: 5px solid;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plus {
  border-color: green;
  color: green;
}

.minus {
  border-color: red;
  color: red;
}

li button {
  background: none;
  border: none;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  margin-left: 12px;
}
li small {
  display: block;
  font-size: 0.75rem;
  color: gray;
  margin-top: 4px;
}
.filters {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filters label {
  font-weight: bold;
}
.filters select {
  padding: 5px;
  font-size: 1rem;
}
