* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter";
  font-weight: 400;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--main-bg-color);
}

body::-webkit-scrollbar {
  display: none;
}

.d_none {
  display: none !important;
}

button {
  cursor: pointer;
  outline: none;
}

h1 {
  font-weight: 700;
  font-size: 61px;
}

h2 {
  font-weight: 600;
  font-size: 64px;
  margin: 0;
}

h3 {
  font-weight: 700;
  font-size: 27px;
}

h4 {
  font-weight: 400;
  font-size: 27px;
}

h5 {
  font-weight: 700;
  font-size: 20px;
}

h6 {
  font-weight: 400;
  font-size: 20px;
}

.font_700_16 {
  font-weight: 700;
  font-size: 16px;
}

.font_700_21 {
  font-weight: 700;
  font-size: 21px;
}

.btn-dark,
.btn-white {
  border: solid 1px var(--main-color);
  border-radius: 8px;
  padding: 10px 12px;
  transition: ease-in-out 125ms;
}

.btn-dark {
  color: white;
  background: var(--main-color);
}

.btn-white {
  background: white;
  color: var(--main-color);
}

.btn-dark:hover {
  background: var(--light-blue);
  border: solid 1px var(--light-blue);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.btn-dark:active {
  background: var(--main-color-dark);
}

.btn-white:hover {
  border: solid 1px var(--light-blue);
  color: var(--light-blue);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

a {
  text-align: center;
  color: var(--color-icon);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--light-blue);
  font-weight: 700;
}

.marginTop8 {
  margin-top: 8px;
}

.marginTop16 {
  margin-top: 16px;
}

.marginTop24 {
  margin-top: 24px;
}

.input {
  border: solid 1px var(--color-placeholder);
  border-radius: 10px;
  padding: 12px 21px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px 22px;
  font-size: 20px;
  font-weight: 400;
  cursor: text;
  outline: none;
  background-color: white;
  width: 100%;
}

.input::placeholder {
  color: var(--color-placeholder);
  font-size: 20px;
  font-weight: 400;
}

.input:focus {
  border-color: var(--light-blue);
}

.input-error {
  border-color: var(--input-error);
}

.checkBoxContainer {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  border-radius: 43px;
  margin-right: 12px;
  width: fit-content;
  height: 24px;
}

.checkBoxInput {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

/* Optional: show visible outline when focused with keyboard */
.checkBoxInput:focus-within + .checkBoxIcon {
  outline: 1px solid var(--board-column);
  outline-offset: 1px;
  background-color: var(--bottom-gradient);
  border-radius: 0;
}

.checkBoxIcon {
  width: 24px;
  height: 24px;
  background-image: url("../assets/svg/checkbox.svg");
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.2s ease, background-color 0.2s ease;
  border-radius: 50%;
}

/* Remove or narrow down this */
.checkBoxContainer:hover {
  .checkBoxIcon {
    background-color: var(--bottom-gradient);
  }
}

/* When checked, swap to filled checkbox */
.checkBoxInput:checked + .checkBoxIcon {
  background-image: url("../assets/svg/checked.svg");
}

.task-added-message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 326px;
  height: 74px;
  transform: translate(-50%, 100vh); /* start off-screen */
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-color: var(--main-color);
  color: white;
  font-size: 20px;
  font-weight: 400;
  border-radius: 20px;
  z-index: 3000;
  text-align: center;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  * {
    font-size: 16px;
  }

  h1 {
    font-size: 47px;
  }

  h2 {
    font-size: 47px;
  }

  h4 {
    font-size: 20px;
  }

  h6 {
    font-size: 16px;
  }

  .input {
    padding: 10px 21px;
    font-size: 16px;
  }

  .input::placeholder {
    font-size: 16px;
  }
}

@media (max-width: 450px) {
  h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  h3 {
    font-size: 24px;
  }
}

.date-input-wrapper {
  position: relative;
  width: 100%;
}

.custom-calendar-overlay {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px;
  min-width: 280px;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-week div {
  font: 600 11px/1 sans-serif;
  color: #666;
  text-align: center;
}

.cal-day {
  height: 32px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #2a3647;
  cursor: pointer;
  font: 400 13px/32px sans-serif;
}

.cal-day:hover {
  background: #f0f0f0;
}

.cal-day.today {
  background: #29abe2;
  color: #fff;
  font-weight: 600;
}

.cal-today {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #29abe2;
  background: #fff;
  color: #29abe2;
  border-radius: 4px;
  cursor: pointer;
}

.cal-today:hover {
  background: #29abe2;
  color: #fff;
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.cal-title {
  font-weight: 600;
  font-size: 16px;
  color: #2a3647;
}

.cal-nav-group {
  display: flex;
  gap: 4px;
}

.cal-nav {
  width: 28px;
  height: 28px;
  border: none;
  background: #f0f0f0;
  color: #2a3647;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.cal-nav:hover {
  background: #29abe2;
  color: #fff;
}

.cal-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
