@font-face {
  font-family: "Gilroy";
  src: url("font/Gilroy-Regular.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Gilroy Bold";
  src: url("font/Gilroy-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

body {
  background-color: #222;
  font-family: "Gilroy";
  margin: 0;
}

* {
  font-family: "Gilroy";
  list-style: none;
  text-decoration: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* REMOVE SPINNERS FROM NUMBER INPUT */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.budget-container {
  position: absolute;
  width: 360px;
  height: 100vh;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background-color: #2a0355;
}

.budget-container .app-title {
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.budget-container .app-title a {
  color: #fff;
}
.budget-container .app-title a b {
  font-family: "Gilroy Bold";
}

button {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #ffcc33;
  outline-offset: 3px;
}

.language-toggle {
  color: #1a0034;
  background-color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Gilroy Bold";
  padding: 6px 10px;
}

.budget-header {
}

.budget-header .balance {
  margin-top: 25px;
  margin-left: 20px;
}

.budget-header .balance .title {
  color: #fff;
  font-size: 1em;
  font-family: "Gilroy Bold";
}

.budget-header .balance .value {
  color: #fff;
  font-size: 2em;
  margin-top: 10px;
  font-family: "Gilroy Bold";
}

.budget-header .account {
  display: block;
  width: 310px;
  margin: 25px auto 0;
  line-height: 1.7em;
  text-align: center;
}

.budget-header .account .income,
.chart,
.outcome {
  height: 50px;
  display: inline-block;
  width: 100px;
  vertical-align: middle;
}

.budget-header .account .income .title {
  color: #fff;
  opacity: 0.5;
}
.budget-header .account .income .income-total {
  color: #fff;
  font-family: "Gilroy Bold";
}

.budget-header .account .outcome .title {
  color: #fff;
  opacity: 0.5;
}
.budget-header .account .outcome .outcome-total {
  color: #f0624d;
  font-family: "Gilroy Bold";
}

/**************   DASHBOARD    ***********/
.budget-dashboard {
  display: block;
  width: 360px;
  min-height: 470px;
  background-color: #fff;
  margin-top: 35px;
  border-radius: 30px 30px 0 0;
}

.budget-dashboard .dash-title {
  display: inline-block;
  color: #1a0034;
  font-size: 1.7em;
  margin-left: 20px;
  margin-top: 30px;
  font-family: "Gilroy Bold";
}

.toggle {
  display: block;
  margin-top: 30px;
  margin-left: 20px;
}

.toggle .first-tab,
.second-tab,
.third-tab {
  display: inline-block;
  cursor: pointer;
  font-size: 1.1em;
  color: #1a0034;
  font-family: "Gilroy Bold";
  opacity: 0.4;
  background: transparent;
  border: 0;
  padding: 4px 0;
}

.toggle .second-tab,
.third-tab {
  margin-left: 10px;
}

.focus {
  opacity: 1 !important;
}

.hide {
  display: none;
}

.budget-dashboard input {
  /* MAKE INPUT SELECTABLE */
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

.budget-dashboard label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.status-message {
  min-height: 20px;
  margin: 10px 20px 0;
  color: #1a0034;
  font-size: 0.95em;
}

.validation-error {
  display: block;
  color: #b00020;
  margin-left: 12px;
  margin-top: 4px;
  font-size: 0.85em;
}

/* ////////// ALL ///////////// */
.budget-dashboard #all {
  width: 360px;
  height: auto;
  position: relative;
}
.budget-dashboard #all ul {
  width: 360px;
  height: 270px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 20px;
  overflow-x: auto;
}

.budget-dashboard #all ul.list li {
  position: relative;
  font-size: 1em;
}

.budget-dashboard #all ul.list li * {
  display: inline-block;
  height: 30px;
  vertical-align: middle;
}

.budget-dashboard #all ul.list li .entry {
  width: 250px;
  height: auto;
  padding-left: 20px;
  margin-bottom: 10px;
  word-wrap: break-word;
  font-family: "Gilroy Bold";
}

.budget-dashboard #all ul.list li #edit {
  visibility: hidden;
}

.budget-dashboard #all ul.list li #delete {
  visibility: visible;
}

.budget-dashboard #all ul.list li.income {
}
.budget-dashboard #all ul.list li.expense {
  color: #f0624d;
}

/* //////// EXPENSE ////////// */
.budget-dashboard #expense {
  width: 360px;
  min-height: 339px;
  position: relative;
}

.budget-dashboard #expense .input {
  position: absolute;
  display: block;
  width: 360px;
  bottom: 0;
  border-top: 1px solid #ccc;
}

.budget-dashboard #expense .input * {
  display: inline-block;
  vertical-align: middle;
}

.budget-dashboard #expense .input input#expense-title-input {
  height: 40px;
  width: 150px;
  padding-left: 10px;
  font-size: 1.2em;
  font-family: "Gilroy";
  margin: 5px;
  margin-left: 10px;
  border-radius: 10px 0 0 10px;
  border: none;
}

.budget-dashboard #expense .input input#expense-amount-input {
  height: 40px;
  width: 110px;
  padding-left: 10px;
  font-size: 1.2em;
  font-family: "Gilroy";
  margin: 5px;
  margin-left: -10px;
  border-radius: 0 10px 10px 0;
  border: none;
}

.budget-dashboard #expense .input .add-expense,
.budget-dashboard #income .input .add-income {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.budget-dashboard #expense .input .add-expense img,
.budget-dashboard #income .input .add-income img {
  width: 40px;
  height: 40px;
}

.budget-dashboard #expense ul {
  width: 360px;
  min-height: 285px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 20px;
  overflow-x: auto;
}

.budget-dashboard #expense ul.list li {
  position: relative;
  font-size: 1em;
}

.budget-dashboard #expense ul.list li * {
  display: inline-block;
  height: 30px;
  vertical-align: middle;
}

.budget-dashboard #expense ul.list li .entry {
  width: 250px;
  height: auto;
  padding-left: 20px;
  margin-bottom: 10px;
  word-wrap: break-word;
  font-family: "Gilroy Bold";
  color: #f0624d;
}

.budget-dashboard .entry-action {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-indent: -999px;
  background-color: transparent;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.budget-dashboard .edit-entry {
  right: 50px;
  background-image: url("icon/edit.png");
}

.budget-dashboard .delete-entry {
  right: 20px;
  background-image: url("icon/trash.png");
}

/* /////// INCOME //////// */
.budget-dashboard #income {
  width: 360px;
  min-height: 339px;
  position: relative;
}

.budget-dashboard #income .input {
  position: absolute;
  display: block;
  width: 360px;
  bottom: 0;
  border-top: 1px solid #ccc;
}

.budget-dashboard #income .input * {
  display: inline-block;
  vertical-align: middle;
}

.budget-dashboard #income .input input#income-title-input {
  height: 40px;
  width: 150px;
  padding-left: 10px;
  font-size: 1.2em;
  font-family: "Gilroy";
  margin: 5px;
  margin-left: 10px;
  border-radius: 10px 0 0 10px;
  border: none;
}

.budget-dashboard #income .input input#income-amount-input {
  height: 40px;
  width: 110px;
  padding-left: 10px;
  font-size: 1.2em;
  font-family: "Gilroy";
  margin: 5px;
  margin-left: -10px;
  border-radius: 0 10px 10px 0;
  border: none;
}

.budget-dashboard #income .input .add-income img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.budget-dashboard #income ul {
  width: 360px;
  height: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 20px;
  overflow-x: auto;
}

.budget-dashboard #income ul.list li {
  position: relative;
  font-size: 1em;
}

.budget-dashboard #income ul.list li * {
  display: inline-block;
  height: 30px;
  vertical-align: middle;
}

.budget-dashboard #income ul.list li .entry {
  width: 250px;
  height: auto;
  padding-left: 20px;
  margin-bottom: 10px;
  word-wrap: break-word;
  font-family: "Gilroy Bold";
}

.budget-dashboard #all ul.list li .edit-entry {
  display: none;
}

.privacy-link {
  display: inline-block;
  margin: 12px 20px 24px;
  color: #1a0034;
  font-family: "Gilroy Bold";
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(320px, calc(100vw - 40px));
  background: #fff;
  color: #1a0034;
  border: 2px solid #1a0034;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  padding: 16px;
  z-index: 10;
}

.cookie-banner p {
  margin: 0 0 12px;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 12px;
  font-family: "Gilroy Bold";
}

.cookie-accept {
  background-color: #1a0034;
  color: #fff;
}

.cookie-reject {
  background-color: #eee;
  color: #1a0034;
}

.privacy-page {
  min-height: 100vh;
  background-color: #fff;
  color: #1a0034;
  padding: 40px 20px;
}

.privacy-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.privacy-content a {
  color: #1a0034;
  font-family: "Gilroy Bold";
  text-decoration: underline;
}

@media (max-width: 420px) {
  .budget-container,
  .budget-dashboard,
  .budget-dashboard #all,
  .budget-dashboard #all ul,
  .budget-dashboard #expense,
  .budget-dashboard #expense .input,
  .budget-dashboard #expense ul,
  .budget-dashboard #income,
  .budget-dashboard #income .input,
  .budget-dashboard #income ul {
    width: 100vw;
  }
}
