:root {
  --box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 30px 10px;
  min-height: 100vh;
  color: #333;
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 400px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

h4 {
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 600;
}

#balance {
  font-size: 28px;
  margin: 5px 0 20px;
  font-weight: bold;
}

.inc-exp-container {
  background: #fff;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 20px;
  border-radius: 6px;
}

.inc-exp-container > div {
  flex: 1;
  text-align: center;
}

.inc-exp-container > div:first-of-type {
  border-right: 1px solid #bbb;
}

.inc-exp-container h4 {
  margin-bottom: 8px;
}

.money {
  font-size: 18px;
  font-weight: bold;
}

.money.plus {
  color: #2ecc71; /* green */
}

.money.minus {
  color: #e74c3c; /* red */
}

/* History section */
h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  background: #fff;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin: 8px 0;
  border-radius: 4px;
  font-size: 15px;
}

.list li.plus {
  border-right: 5px solid #2ecc71;
}

.list li.minus {
  border-right: 5px solid #e74c3c;
}

.delete-btn {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 1px 6px;
  padding-bottom: 3px;
  border-radius: 10%;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0;
}

.delete-btn:hover {
  opacity: 1;
}

/* Form */
.form-control {
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #dedede;
  border-radius: 4px;
  font-size: 16px;
}

.btn {
  cursor: pointer;
  background-color: #880db8;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 16px;
}

.btn:hover {
  background-color: #671789;
}
