@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";
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a0034;
  color: #fff;
  padding: 15px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 400px;
  margin: 0 auto;
}

.cookie-title {
  font-family: "Gilroy Bold";
  font-size: 1.1em;
  margin-bottom: 8px;
}

.cookie-message {
  font-size: 0.9em;
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1.4;
}

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

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Gilroy Bold";
  font-size: 0.9em;
}

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

.cookie-btn.policy-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.privacy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.privacy-modal.show {
  display: flex;
}

.privacy-content {
  background-color: #fff;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.privacy-title {
  font-family: "Gilroy Bold";
  font-size: 1.3em;
  color: #1a0034;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
  padding: 0 10px;
}

.privacy-body {
  padding: 20px;
  color: #333;
}

.privacy-body h3 {
  font-family: "Gilroy Bold";
  color: #1a0034;
  margin-top: 20px;
  margin-bottom: 8px;
}

.privacy-body h3:first-child {
  margin-top: 0;
}

.privacy-body p {
  line-height: 1.5;
  opacity: 0.8;
  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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

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

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.language-switch .lang-btn {
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-family: "Gilroy Bold";
}

.language-switch .lang-btn.active {
  color: #2a0355;
  background: #fff;
}

.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: rgba(255, 255, 255, 0.7);
}
.budget-header .account .income .income-total {
  color: #fff;
  font-family: "Gilroy Bold";
}

.budget-header .account .outcome .title {
  color: rgba(255, 255, 255, 0.7);
}
.budget-header .account .outcome .outcome-total {
  color: #e55a4a;
  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: #4a2c6a;
  font-family: "Gilroy Bold";
  opacity: 0.7;
}

.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;
}

/* ////////// 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 {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 20px;
  cursor: pointer;
  background-image: url("icon/trash.png");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

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

/* //////// 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 {
  padding: 0;
  border: none;
  background: transparent;
}

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

.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: #c44536;
}

.budget-dashboard #expense ul.list li #edit {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 50px;
  cursor: pointer;
  background-image: url("icon/edit.png");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.budget-dashboard #expense ul.list li #delete {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 20px;
  cursor: pointer;
  background-image: url("icon/trash.png");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

/* /////// 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 #income ul.list li #edit {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 50px;
  cursor: pointer;
  background-image: url("icon/edit.png");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.budget-dashboard #income ul.list li #delete {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 20px;
  cursor: pointer;
  background-image: url("icon/trash.png");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
