@import url("https://fonts.googleapis.com/css?family=Muli&display=swap");

* {
  box-sizing: border-box;
}

body {
  background-color: #333;
  font-family: "Muli", sans-serif;
  color: #fff;
}

.pageContainer {
  width: 100%;
  margin: 0;
}

/* ---- GENERAL ---- */

.grid {
  display: grid;
  column-gap: 25px;
  row-gap: 25px;
}

.grid--2-cols {
  grid-template-columns: 1fr 10%;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.textarea {
  resize: none;
  font-size: 25px;
  background-color: transparent;
  border: 3px solid #fff;
  border-radius: 10px;
}

.goalItem {
  display: block;
  margin: 5pxpx;
}

.btn {
  background-color: #222;
  font-size: 20px;
  padding: 10px 10px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
}

/* ---- TOAST NOTIFICATIONS ---- */

#toasts {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.toast {
  background-color: #555;
  border-radius: 10px;
  padding: 1rem 2rem;
  margin: 0.5rem;
}

.toast.info {
  color: #fff;
}
.toast.success {
  color: #2f9600;
}
.toast.warning {
  color: #ff7b00;
}
.toast.error {
  color: #c82d2d;
}

/* ---- GOAL BAR ---- */

/* -- GOAL HEADER -- */

.goalBarTop {
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  gap: 10px;
}

.goalBarTopSettings {
  display: none;
  flex-direction: row;
  margin-bottom: 5px;
  gap: 10px;
}

.goalBarTop label {
  color: #b6b6b6;
}

.goalBarTop input {
  background-color: transparent;
  font-size: 20px;
  border: none;
  color: #fff;
  border-bottom: 3px solid #fff;
}

.settingsBtn {
  height: 40px;
  color: #555;
  font-size: 18px;
  border-radius: 15px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.statisticsBtn {
  height: 40px;
  color: #555;
  font-size: 18px;
  border-radius: 15px;
  margin-right: 5px;
  padding-top: 8px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 8px;
}

.goalTitle {
  font-size: 30px;
}

#targetAmountInput {
  width: 120px;
}

#preCompletedInput {
  width: 160px;
}

/* -- BAR -- */

.goalBarContainer {
  min-height: 100px;
  width: 100%;
  height: 25%;
  overflow: hidden;
  background-color: #555;
  border: #222 5px solid;
  display: flex;
  flex-direction: row;
}

.previousProgress {
  height: 100%;
  transition: width 1s ease;
}

.currentProgress {
  height: 100%;
  transition: width 1s ease;
}

.pastDue {
  height: 100%;
  transition: width 1s ease;
}

.remainingProgress {
  background-color: #555;
  height: 100%;
}

/* -- ADD PROGRESS -- */

.todaysProgressContainer {
  overflow: hidden;
}

.todaysProgressContainer label {
  color: #b6b6b6;
}

.todaysProgressInput:focus,
.todaysProgressInput {
  width: 100%;
  background-color: transparent;
  color: #fff;
  text-align: center;
  font-size: 60px;
  border: none;
  border-bottom: 3px solid #fff;
}

.progressButtons {
  display: flex;
  flex-direction: column;
  align-items: end;
}

/* -- GOAL BAR BOTTOM -- */

.goalBarBottom {
  display: none;
  flex-direction: row;
  margin-top: 5px;
  margin-bottom: 5px;
  gap: 10px;
}

.deleteBtn {
  color: #c82d2d;
}

.goalBarBottom label {
  color: #b6b6b6;
}

.goalBarBottom input {
  background-color: transparent;
  border: none;
  height: 35px;
  border-radius: 5px;
}

/* ---- EDIT MODE ---- */

.goalTitle.editMode {
  display: none;
}

.settingsBtn.editMode {
  color: #ff7b00;
}

.goalBarTopSettings.editMode {
  display: flex;
}

.goalBarBottom.editMode {
  display: flex;
}

.estPerDayAmount {
  margin-left: auto;
  text-align: center;
  line-height: 1.2;
}

/* ---- ADD GOAL BAR ---- */

.addGoalBtn {
  color: #2f9600;
}

/* ---- STATISTICS MODE ---- */

.statisticsBtn.statMode {
  color: #0077ff;
}

.goalBarBottomStats {
  display: none;
  flex-direction: row;
  margin-top: 5px;
  margin-bottom: 5px;
  gap: 15px;
}

.goalBarBottomStats.statMode {
  display: flex;
}

.flex-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-left: auto;
}

.stat-title {
  color: #b6b6b6;
}

.stat-info {
  font-size: 30px;
  font-weight: bold;
}

.stat-info span {
  font-weight: normal;
}

.daysSaved {
  margin-left: auto;
  text-align: center;
  line-height: 1.2;
}

/* ---- HOVER STAT ---- */

#hoverStat {
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  top: 100px;
  position: fixed;
  background-color: #222;
  border-radius: 10px;
  padding: 5px 10px;
  margin: 5px;
  transition: visibility 0s, opacity 0.5s ease-in-out;
  transform: translateX(-50%);
}
