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

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  padding: 32px;
}

h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 24px;
}

#summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  flex: 1;
}

.metric p:first-child {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.metric p:last-child {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

#form-container {
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

#form-container input,
#form-container select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  flex: 1;
}

#form-container input:focus,
#form-container select:focus {
  outline: none;
  border-color: #333;
}

#add-btn {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
}

#add-btn:hover {
  background-color: #555;
}

#tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-item {
  background-color: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tx-item .tx-desc {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.tx-item .tx-amount {
  font-size: 15px;
  font-weight: bold;
}

.tx-item .tx-amount.income {
  color: #1a9e75;
}

.tx-item .tx-amount.expense {
  color: #d85a30;
}

.tx-delete {
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
}

.tx-delete:hover {
  color: #d85a30;
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }

  h1 {
    font-size: 22px;
  }

  #summary {
    flex-direction: column;
  }

  #form-container {
    flex-direction: column;
  }

  #form-container input,
  #form-container select,
  #add-btn {
    width: 100%;
  }
}