html {
  font: 18px/1.45 'Quicksand', sans-serif, system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: inherit;
  line-height: inherit;
  background-color: #FFF2D0;
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
  height: auto !important;
  min-height: 100%; 
  height: auto !important; 
  overflow-y: auto !important; 
  overflow-x: hidden;
}


* {
  box-sizing: border-box;
}

.h5 {
  font-weight: 600;
  font-size: 1.15rem;
  color: #4f0b2c;
  margin-bottom: 0.6rem;
  margin-top: 1.4rem;
  font-family: 'Quicksand', sans-serif;
  display: block;
}

.h5:first-child {
  margin-top: 0.5rem;
}

.header-nav-container {
  width:100%;
  min-height: 450px;
  position:relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:20px 0;
  margin-bottom: 20px;
}

.header-nav-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(33, 37, 41, 0.5);
  z-index: 1;
}

/* navbar */
.navbar-custom {
  margin-top: 20px;
  left: 0;
  width: 90%;
  padding: 10px 10px;
  z-index: 100;
  background: transparent;
}

.nav-container {
  width: 100%;
  max-width: 100vw;
  height: 60px;
  box-sizing: border-box;
}


.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* link list*/
.nav-list {
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}


/* link */
.nav-custom-link {
  padding: 0.5rem 1rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* 4. Hover */
.nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transform: translateY(-3px);
  /
}

/* 2. Masthead  */
header.masthead {
  width: 90%;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
}


/* 4. words over the layer */
header.masthead .site-heading { 
  height: auto !important;
  min-height: 100px;
  padding: 20px 0;
  z-index: 2;
}


/* 5. Main title ans second title */
header.masthead h1 { 
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  z-index: 2;
}

header.masthead .subheading {
  font-family: 'Quicksand', sans-serif t;
  font-size: 1rem;
  font-weight: 300;
  display: block;
  margin-top: 20px;
}

.my-container {
  width: 90%;
  /* keep distance with edge*/
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media (min-width: 992px) {
  .my-container {
    padding: 0 3rem;
    /*  big screen with bigger vision */
  }
}

.content-row {
  display: flex;
  justify-content: center;
  /*Horizontal Alignment*/
  width: 100%;
}

.main-column {
  width: 90%;
  /* 90% width on phone*/
  max-width: 800px;
  /* key! will not be overextended*/
  padding: 0 1rem;
  /* replace gx-4 */
}

@media (min-width: 992px) {
  .main-column {
    width: 70%;
  }
}






footer {
  padding: 3rem 0;
  text-align: center;
}




.list-inline {

  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}

.list-inline-item:not(:last-child) {
  margin-right: 0.5rem;
}

.text-center {
  text-align: center !important;
}

.text-muted {
  color: #a38b8b !important;
  font-size: 0.875rem;
  font-family: 'Quicksand', sans-serif;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;
  margin-bottom: 2rem;
}

.input-container form {
  width: 100%;
  text-align: left;
}

.target-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;

}

.button-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}


/* Main Modal Overlay: Centered using Flexbox */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(122, 74, 74, 0.4);
  /* Softer brown-red overlay to reduce aggression */
  /* Glass effect for the background */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
}

/* Modal Content Box: Sweet Strawberry Cream Style */
.modal-content {
  display: block;
  background: #FFF2D0;
  /* Creamy Yellow from your palette */
  border: 3px solid #FFB2B2;
  /* Soft Pink border */
  border-radius: 24px;
  padding: 30px;
  /* Carved texture effect */
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.5),
    0 15px 35px rgba(122, 74, 74, 0.2);
  color: #7a4a4a;
  /* Deep Berry Brown for text readability */
  max-width: 800px;
  text-align: center;
}

#closeModal {
  flex: 0 1 auto;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #FFB2B2;
  /* Matches the theme */
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#closeModal:hover {
  background: #E36A6A;
  /* Darker strawberry on hover */
}

/* Left & Right Columns Layout */
.modal-columns {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 20px;
  margin-top: 20px;
}

/* Shared Styles for Columns: Sunken Frosted Effect */
.modal-left,
.modal-right {
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  /* Milk white frosted look */
  height: 100%;
  overflow-y: auto;
  padding: 15px;
  border-radius: 16px;
  box-shadow: inset 2px 2px 5px rgba(122, 74, 74, 0.1);
  border: 1px solid #FFB2B2;
}

.modal-left h3,
.modal-right h3 {
  margin-top: 0;
  font-size: 18px;
  color: #E36A6A;
  /* Strawberry Red for titles */
}

.modal-left ul,
.modal-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 150px;
  height: 80%;
}

/* Empty State Placeholder text via CSS */
#buylater:empty::before {
  content: "Add a target to stay motivated at work.";
  color: #FFB2B2;
  font-size: 0.9em;
  font-style: italic;
}

#buythismonth,
#buylater {
  min-height: 300px;
  width: 100%;
  display: block;
  padding: 20px;
}

/* Drag & Drop Highlight */
.drop-highlight {
  background: #FFFBF1 !important;
  /* Lighter cream when hovering */
  border: 2px dashed #E36A6A;
  transition: 0.2s;
}

.modal-button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Trash Bin Style */
.modal-bin {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
  background-image: url('../assets/img/bin_close.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80% 80%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#bin.drop-highlight {
  background-image: url('../assets/img/bin_open.png') !important;
  border: none !important;
  transform: scale(1.2);
}

/* Strawberry Action Button */
.btn-pink {
  position: relative;
  padding: 10px 20px;
  margin: 4px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #ff947f;
  border: 2px dashed #ffffff;
  font-size: 1.1rem;
  font-family: 'Quicksand', sans-serif;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 600;
  transition: 0.25s ease;
  cursor: pointer;
  box-shadow: 0 4px 0 #fff2af;
  /* Simple 3D effect */
  white-space: nowrap;
  height: fit-content;
  z-index: 50;
}

.btn-pink:hover {
  background: #fff2af;
  color: rgb(128, 67, 67);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #ff947f;
}

.btn-pink:active {
  transform: translateY(2px);
  box-shadow: none;
}

.disabled-btn {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Input Styles: Soft Berry Cream theme */
.pink-input {
  display: block;
  min-width: 250px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid #FFB2B2;
  background: #FFFBF1;
  padding: 10px 14px;
  font-size: 1.1rem;
  font-family: 'Quicksand', sans-serif;
  line-height: 1.5;
  color: #7a4a4a;
  caret-color: #E36A6A;

}

.pink-input:focus {
  outline: none;
  border-color: #E36A6A;
  background: white;
  box-shadow: 0 0 8px rgba(227, 106, 106, 0.3);
}

.pink-input::-webkit-outer-spin-button,
.pink-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/*firefox*/
input[type=number] {
  -moz-appearance: textfield;
}

.form-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  /*Keep in one line*/
  gap: 15px;
  width: 100%;
}

.table-container {
  background-color: rgba(255, 251, 241, 0.5);
  ;
  color: #7a4a4a;
  border-radius: 16px;
  border: 2px solid #FFB2B2;
  font-family: 'Quicksand', sans-serif;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(227, 106, 106, 0.1);
  backdrop-filter: blur(5px);

}

.table-container:hover {
  border-color: #E36A6A;
  box-shadow: 0 15px 35px rgba(227, 106, 106, 0.15);
}

.table-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  /* space between every lines */
}

.table-container th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 12px;
  border-bottom: 2px solid #FFB2B2;
}

.my-big-checkbox {
  transform: scale(1.5);
  margin: 10px;
  cursor: pointer;
}

.selected {
  border: 2px dashed #ff498f;
  background-color: rgba(255, 255, 255, 0.721);
  border-radius: 8px;
  cursor: 'pointer';
  padding: '10px';

}

li.ban{
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/*prevent turning the words to blue, even double click or crazy click*/
li {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


@media screen and (max-width: 768px) {
  body {
    font-size: 16px !important;
  }

  header.masthead .container,
  header.masthead .site-heading {
    font-size: 0.8rem;
   }

    .navbar-brand {
      display: none !important;
    }

    .nav-container {
      width: 100%;
      padding: 0;
    }

    .nav-list {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      width: 100%;
      padding: 0;
    }

    .nav-item {
      flex: 1 1 0;
      min-width: 0;
      border-right: 1px solid #eee;
    }

    .nav-item:last-child {
      border-right: none;
    }

    .nav-custom-link {
      line-height: 1.2;
      font-size: 11px;
      padding: 12px 2px;
      width: 100%;
      min-height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
      word-break: break-word;
      text-overflow: clip;
      white-space: normal;
    }

    .my-container {
      width: 100%;
      padding: 0 0.5rem;
      flex-direction: column;
    }

    .content-row {
      width: 100%;
    }

    .main-column {
      width: 100%;
      padding: 0 0.5rem;
      max-width: none;
    }

    .form-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-wrap: wrap;
      /*Keep in one line*/
      gap: 15px;
      width: 100%;
    }

    .navbar-custom {
      margin: 0;
      left: 0;
      width: 100vw;
      padding-bottom: 10px;
    }

    header.masthead h1 {
      font-weight: 500;
      font-size: 2rem;
      margin: 0;
      letter-spacing: 1px;
    }

    .modal-content {
      width: 95%;
      max-width: 500px;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      border-radius: 15px;
      overflow: hidden;
    }

    .modal-left,
    .modal-right {
      max-height: 50vh;
    }

    .modal-left h3,
    .modal-right h3 {
      font-size: 12px;
    }

    .modal-button {
      padding: 10px 10px;
    }

    .btn-pink.modalButton {
      font-size: 12px;
      line-height: 1;

    }

    .btn-pink.modalButton:active {
      transform: translateY(1px);
      box-shadow: none;
    }

  }

@media screen and (min-width: 769px) and (max-width: 1024px) {

  /* 1. Reset Body Font for better readability */
  body {
    font-size: 18px !important;
    /* Slightly larger for tablet */
  }

  /* 2. Restore the Navbar Brand (Since iPad has more space) */
  .navbar-brand {
    display: block !important;
    /* Bring it back */
    font-size: 1rem;
    padding-left: 0.5rem;
  }

  /* 3. Adjust Navigation layout */
  .nav-container {
    width: 95%;
    margin: 0 auto;
  }

  .nav-custom-link {
    font-size: 14px;
    /* Increase from mobile's 11px */
    padding: 15px 10px;
    letter-spacing: 0.5px;
  }

  /* 4. Layout Structure: Moving from 1 column back towards Desktop look */
  .my-container {
    flex-direction: row;
    /* If the screen is wide enough, use row */
    padding: 0 2rem;
    flex-wrap: wrap;
    /* Prevent overflow */
  }

  .main-column {
    width: 90%;
    /* Center the content with more breathing room */
    margin: 0 auto;
  }

  /* 5. Form Layout: More horizontal space */
  .form-container {
    flex-direction: row;
    /* Align inputs in a line if space allows */
    justify-content: center;
    gap: 20px;
  }

  /* 6. Masthead Scaling */
  header.masthead h1 {
    font-size: 3rem;
    /* Bigger title for bigger screens */
  }

  /* 7. Modal Optimization for Tablet */
  .modal-content {
    width: 80%;
    /* Don't need to be 95% wide like mobile */
    max-width: 700px;
    /* Allow more horizontal space for charts/lists */
    flex-direction: row;
    /* Side-by-side layout for Modal Left and Right */
  }

  .modal-left,
  .modal-right {
    flex: 1;
    /* Split modal 50/50 */
    max-height: 70vh;
    /* More height available than mobile */
    padding: 20px;
  }

  .modal-left h3,
  .modal-right h3 {
    font-size: 16px;
    /* Larger headers */
  }

  .btn-pink.modalButton {
    font-size: 14px;
    padding: 12px 20px;
  }
}


