@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.2/font/bootstrap-icons.css");

:root {
  --box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
}

h3 {
  text-align: center;
  margin-bottom: 15px;
  text-decoration: underline solid #393e46 3px;
  font-size: 24px;
}

.outer-wrap {
  width: 100%;
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 30px;
}

.inner-wrap {
  max-width: 1200px;
  margin: auto;
}

.heading {
  margin: 30px auto;
  padding: 0px 20px;
}

.heading .title {
  font-size: 30px;
  color: #000000;
  font-weight: 500;
  text-align: center;
}

.heading .subtitle {
  font-size: 20px;
  color: #000000;
  font-weight: 300;
  text-align: center;
}

.transaction-control {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px auto;
}

.actions,
.stats {
  flex-grow: 1;
  background-color: #ffffff;
  padding: 20px;
  box-shadow: var(--box-shadow);
  border-radius: 5px;
  margin: 0px 10px;
}

.actions .add {
  display: flex;
  flex-direction: column;
  margin: 10px;
}

.actions .add input {
  font-size: 18px;
  padding: 5px;
  margin: 10px;
}

.actions .add input[type="submit"] {
  padding: 7px 15px;
  border-radius: 5px;
  border: 0px;
  background-color: #2666cf;
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

.stats p {
  background-color: #bed7ff;
  margin: 20px 10px;
  padding: 10px 20px;
  box-shadow: var(--box-shadow);
  font-size: 18px;
  border-radius: 2px;
  text-align: center;
}

.stats p.balance {
  background-color: #fff2dd92;
  border-right: 10px solid #f6c065;
}

.stats p.income {
  background-color: #e7fff1ad;
  border-right: 10px solid #16c77a;
}

.stats p.expense {
  background-color: #ffeef0bb;
  border-right: 10px solid #eb596e;
}

.stats p span {
  font-size: 18px;
}

.transaction-history {
  margin: 40px 10px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px 0px;
  box-shadow: var(--box-shadow);
}

.records {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
}

.records div {
  flex-grow: 1;
  padding: 10px;
}

.records li {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 10px;
  margin: 12px 0px;
  min-width: 250px;
  box-shadow: var(--box-shadow);
  font-size: 18px;
}

.records .income li {
  border-left: 10px solid #2ecc71;
}

.records .expense li {
  border-left: 10px solid #df5e5e;
}

.records li p:first-child {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.records span {
  font-size: 18px;
}

.records span#time {
  color: #717171;
  font-size: 12px;
}

.records i.delete {
  margin-left: 15px;
  color: #082032;
  cursor: pointer;
  font-size: 18px;
}

.records i.delete:hover {
  color: #b42b51;
}
