* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2f2f2;
  padding: 20px;
}

.container {
  max-width: 500px;
  background: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}

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

.totals {
  text-align: center;
  margin-bottom: 20px;
}

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

input[type="text"],
input[type="number"] {
  padding: 10px;
  font-size: 16px;
  width: 100%;
}

.form-actions {
  display: flex;
  justify-content: space-between;
}

button {
  padding: 10px;
  background: #4CAF50;
  color: white;
  border: none;
  width: 48%;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #45a049;
}

.filters {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

ul {
  list-style: none;
  margin-top: 20px;
}

li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  margin: 5px 0;
  border-left: 5px solid;
  background-color: #f9f9f9;
}

.income {
  border-color: green;
}

.expense {
  border-color: red;
}

li span {
  flex: 1;
  margin: 0 10px;
}

li button {
  background: none;
  border: none;
  color: red;
  font-size: 18px;
  margin-left: 5px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
  }

  button {
    width: 100%;
    margin-bottom: 10px;
  }
}
