/* ====================== Header Sticky ====================== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}

/* ====================== Navbar ====================== */
.navbar {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 20px 40px 28px;
}

.navbar-box {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #B8C1D8;
  border-radius: 100px;
  overflow: hidden;
  cursor: pointer !important;

  span {
    width: 0.5px;
    height: 70%;
    background: #B8C1D8;
    border-radius: 2px;
  }

  .navbar-box-item {
    p {
      text-align: center;
    }
  }

  .navbar-box-item-search {
    width: auto;
    height: 100%;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    button {
      width: 40px;
      height: 40px;
      background-color: #fff;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        filter: invert(1);
      }

      img:hover {
        cursor: pointer;
      }
    }
  }
}

/* ====================== Navbar Box Item ====================== */
.navbar-box-item {
  width: 25%;
  height: 100%;
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;

  &:hover {
    cursor: pointer;
  }

  > .navbar-box-item-content {
    width: 100%;
    height: 100%;
    font-size: 12px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 8px 28px;
    overflow: hidden;
    gap: 18px;

    .hidden-date-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto; 
}


    img{
      filter: invert(1);
    }
    p {
      padding: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .input-value {
      font-size: 12px;
      color: white;
    }
  }
}

/* ====================== Mobile Navbar ====================== */
.navbar.computer {
  display: none;
}

.navbar.mobile {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

/* ====================== Mobile Dates ====================== */
.mobile-dates {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  position: relative;

  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.mobile-dates::-webkit-scrollbar {
  display: none;
}

/* ====================== Mobile Date Tag ====================== */
.date-tag {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.date-label {
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.date-value {
  color: #000;
  font-size: 12px;
  font-weight: 600;
}

/* ====================== Media Queries ====================== */
@media (min-width: 720px) {
  .navbar.computer {
    display: flex;
  }

  .navbar.mobile {
    display: none;
  }

  .navbar-box {
    width: 60%;
  }

  .navbar-box-item-content > p,
  .navbar-box-item-content > input {
    font-size: 16px;
  }
}
