body {
  margin: 0;
  background: #f4f4f4;
}
.app-title {
  margin: 0;
  color: #00a2ad;
  margin-top: 35px; /* 👈 exactly 35px from top */
  margin-top: 22px;
  text-align: center;
  font-size: 60px;
  font-weight: 500;
  font-family: "BBH Bogle", sans-serif;
}

.tabs-container {
  position: relative;
  height: 50px;
  margin-top: 24px;
  margin-bottom: 53px;
}
/* Base pill style */

.tab {
  position: absolute;
  padding: 8px 20px;
  border: 4px solid #00a2ad;
  border-radius: 5px;

  font-size: 39px;
  font-family: "BBH Bogle", sans-serif;

  cursor: pointer;
  user-select: none;

  background: #ffffff;
  color: #00a2ad;

  /* raised look */
  box-shadow: -3px 10px 0 #008c95;

  /* 👇 unified press system */
  --press-y: 0px;
  transform: translateY(var(--press-y));

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Exact positioning rules */
.tab-left {
  left: 300px;
}

.tab-right {
  right: 300px;
}

.tab-center {
  left: 50%;
  transform: translateX(-50%) translateY(var(--press-y));
}

.all-entries-list {
  margin-top: 32px;

  /* 👇 exact constraints */
  margin-left: 300px;
  margin-right: 300px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card style */
.each-entry {
  padding: 20px 24px;
  border-radius: 16px;

  background: #fff;
}

/* Entry title */
.entry-name {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 6px;
  font-family: "Gabarito", sans-serif;
}

/* Entry date */
.entry-date {
  font-size: 25px;
  font-family: "Gabarito", sans-serif;
}
.fab {
  position: fixed;
  bottom: 119px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #00a2ad;
  border: none;
  cursor: pointer;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 👇 raised look */

  box-shadow: -3px 10px 0 #008c95;

  /* 👇 unified press system */
  --press-y: 0px;
  transform: translateX(-50%) translateY(var(--press-y));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease,
    box-shadow 0.15s ease;
}

/* Hidden state */
.fab.hidden {
  transform: translate(-50%, 220px);
  opacity: 0;
  pointer-events: none;
}
.fab:active {
  --press-y: 10px;
  box-shadow: 0 0 0 transparent;
}

/* PLUS SIGN */
.plus {
  position: relative;
  width: 70px; /* horizontal length */
  height: 8px; /* thickness */
  background: #fff;
  border-radius: 4px;
}

.plus::after {
  content: "";
  position: absolute;
  width: 8px; /* thickness */
  height: 70px; /* vertical length */
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
}

/* Black background overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8); /* 80% opacity */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* White modal box */
.entry-modal {
  position: relative;
  width: 697px;
  height: 697px;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-sizing: border-box;
}

/* Field layout */
.field {
  margin-bottom: 32px;
}

.field label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 12px 8px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #000;
  outline: none;
}
/* Shared */
.date-boxes {
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.date-box {
  width: 31px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 400;
  font-family: "BBH Bogle", sans-serif;
}

/* Spacing */
.space-9 {
  margin-right: 9px;
}
.space-13 {
  margin-right: 13px;
}

/* START DATE */
/* START DATE */
.start-date .date-box {
  background: #d9d9d9;
  border: 2px solid #d9d9d9; /* 🔥 this was missing */
}

/* DUE DATE */
.due-date .date-box {
  background: transparent;
  border: 2px solid #414040;
}

/* Hidden native input */

.hidden-date-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.due-date-wrapper {
  position: relative;
  display: inline-block;
  height: 35px;
}

.date-separator {
  margin: 0 8px;
  font-size: 18px;
  font-weight: 300;
  color: #000;
}

.field label {
  display: block;
  font-family: "BBH Bogle", sans-serif;
  font-size: 29px; /* change as needed */
  font-weight: 500;
  color: #000000;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
#entryName {
  font-family: "Gabarito", sans-serif;
  /* or Figma font */
  font-size: 39px; /* adjust */
  font-weight: 400;
  color: #000;
  background: transparent;
  transition: background 0.25s ease;
}
/* Grey background when empty */
#entryName.empty {
  background: #e0e0e0;
  border-radius: 6px;
}
.category-pills {
  display: flex;
  gap: 16px;
  align-items: center;
}

.category-pill {
  padding: 10px 28px;
  font-size: 30px;
  font-family: "BBH Bogle", sans-serif;
  border: 2px solid #00a2ad;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

/* Selected state */
.category-pill.active {
  background: #00a2ad;
  color: #fff;
}

/* Hover feedback */
.category-pill:hover {
  background: #00a2ad;
  color: #fff;
}

/* Wrapper to position DONE relative to card */
.done-pill-wrapper {
  position: absolute;
  bottom: 46px; /* 👈 exactly 46px from card edge */
  left: 50%;
  transform: translateX(-50%);
}

/* DONE pill base */
.done-pill {
  padding: 10px 36px;
  font-size: 30px;
  font-family: "BBH Bogle", sans-serif;
  border-radius: 5px;
  border: 2px solid #d9d9d9;
  background: #d9d9d9;
  color: #030303;
  opacity: 0.2;
  cursor: not-allowed;
  user-select: none;
  transition: all 0.3s ease;
}

/* Enabled state */
.done-pill.enabled {
  background: transparent;
  border-color: #00a2ad;
  color: #000;
  opacity: 1;
  cursor: pointer;
}
/* Active tab state */
.tab.active {
  background: #00a2ad;
  color: #ffffff;

  /* 👇 pressed down */
  --press-y: 6px;
  box-shadow: 0 0 0 transparent;
}

.each-entry.completed {
  opacity: 0.5;
}

.each-entry.completed .entry-name {
  text-decoration: line-through;
}

/* Modal close (X) button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;

  background: transparent;
  border: none;

  font-size: 36px;
  font-weight: 400;
  line-height: 1;

  color: #000;
  cursor: pointer;

  font-family: "Gabarito", sans-serif;
}

.modal-close:hover {
  opacity: 0.6;
}
.each-entry {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Checkmark */
.entry-check {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  font-size: 32px;
  color: #00a2ad;
  opacity: 0;
  transition: all 0.35s ease;
}

/* Completed animation */
.each-entry.completed {
  transform: translateX(18px);
}

.each-entry.completed .entry-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.install-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;

  font-family: "BBH Bogle", sans-serif;
  font-size: 20px;

  background: #fff;
  color: #014656;
  border-radius: 5px;
  border-color: #014656;
  border-width: 3px;
  border-style: solid;
  box-shadow: -3px 8px 0 #014656;
  cursor: pointer;
  z-index: 9999;

  transition: transform 0.15s ease, opacity 0.15s ease;
  letter-spacing: 1px;
}

.install-pill:active {
  transform: translateX(-50%) translateY(4px);
  box-shadow: none;
}

.install-pill.hidden {
  opacity: 0;
  pointer-events: none;
}
.clear-pill {
  position: fixed;
  top: 24px;
  left: 24px;
  padding: 12px 28px;

  font-family: "BBH Bogle", sans-serif;
  font-size: 20px;

  background: #fff;
  color: #014656;
  border-radius: 5px;
  border: 2px solid #014656;
  box-shadow: -3px 8px 0 #014656;
  cursor: pointer;
  z-index: 9999;

  transition: transform 0.15s ease, opacity 0.15s ease;
  letter-spacing: 1px;
}

.clear-pill:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Hidden state */
.clear-pill.hidden {
  opacity: 0;
  pointer-events: none;
}
/* 🔒 Hide floating UI when modal is open */
body.modal-open .fab,
body.modal-open .install-pill,
body.modal-open .clear-pill {
  opacity: 0;
  pointer-events: none;
}


@media (max-width: 768px) {
  /* mobile styles go here */

  .clear-pill {
    position: static;
    font-size: 14px;
    padding: 6px 14px;
    box-shadow: -2px 5px 0 #014656;
  }
  .app-title {
    font-size: 36px;
    margin-top: 16px;
  }
  .tabs-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    height: auto;
    margin: 20px 12px;
    flex-wrap: wrap;
  }

  .tab {
    position: static;
    font-size: 20px;
    padding: 6px 14px;
    border-width: 2px;
    box-shadow: -2px 6px 0 #008c95;
  }

  .tab-center {
    transform: translateY(var(--press-y));
  }
  .all-entries-list {
    margin: 16px;
  }

  .entry-name {
    font-size: 20px;
  }

  .entry-date {
    font-size: 16px;
  }
  .each-entry {
    touch-action: pan-y;
  }
  .install-pill {
    bottom: 104px; /* sits above FAB */
    font-size: 16px;
    padding: 10px 22px;
    box-shadow: -2px 6px 0 #014656;
  }

  .fab {
    width: 64px;
    height: 64px;
    bottom: 24px;
  }

  .plus {
    width: 36px;
    height: 6px;
  }

  .plus::after {
    width: 6px;
    height: 36px;
  }

  .entry-modal {
    width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 100px; /* 👈 space for DONE */
  }

  .field label {
    font-size: 18px;
  }

  #entryName {
    font-size: 22px;
  }

  .category-pill {
    font-size: 18px;
    padding: 6px 18px;
  }

  .done-pill {
    font-size: 20px;
    padding: 8px 28px;
  }
  
}
/* ===============================
   SWIPE BACKGROUND TEXT
   =============================== */

.entry-container {
  position: relative;
  overflow: hidden;
}

/* Background base */
.entry-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  display: flex;
  align-items: center;
  font-family: "BBH Bogle", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* DELETE (left side) */
.bg-delete {
  left: 0;
  justify-content: flex-start;
  padding-left: 16px;
  color: #454343;
}

/* DONE (right side) */
.bg-done {
  right: 0;
  justify-content: flex-end;
  padding-right: 16px;
  color: #00a2ad;
  
}
/* ===============================
   INFO BUTTON (TOP RIGHT)
   =============================== */

.info-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #00a2ad;
  background: transparent;
  color: #00a2ad;
  font-family: "Gabarito", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2000;
  opacity: 0.7;
}

.info-btn:hover {
  opacity: 1;
}

/* ===============================
   INFO POPUP
   =============================== */

.info-popup {
  position: fixed;
  top: 52px;
  right: 14px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Gabarito", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #00a2ad;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.info-popup p {
  margin: 4px 0;
  opacity: 5;
}

.info-popup b {
  font-weight: 600;
}

/* utility */
.hidden {
  display: none;
}
