* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

.app {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  margin-bottom: 6px;
  font-size: 36px;
}

header p {
  color: #666;
}

.card {
  background: white;
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

h2 {
  margin-top: 0;
}

input,
select,
button {
  width: 100%;
  padding: 12px;
  margin: 8px 0 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

button {
  background: #222;
  color: white;
  cursor: pointer;
  border: none;
}

button:hover {
  background: #444;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

.form-row button {
  width: 120px;
}

.checkbox-list label {
  display: block;
  margin: 8px 0;
}

.checkbox-list input {
  width: auto;
  margin-right: 8px;
}

ul {
  padding-left: 0;
  list-style: none;
}

li {
  margin-bottom: 10px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.small-delete-btn {
  width: auto;
  padding: 6px 10px;
  margin: 0;
  background: #c0392b;
  font-size: 13px;
  flex-shrink: 0;
}

.small-delete-btn:hover {
  background: #a93226;
}

.balance-positive {
  color: green;
  font-weight: bold;
}

.balance-negative {
  color: red;
  font-weight: bold;
}