/* header layout */
.header {
  min-height: 4.375rem;
  border-bottom: 1px solid #ccc;
  padding: 0.75rem clamp(1rem, 4vw, 3.125rem);
  margin: 0 0 1.25rem 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 4vw, 3.125rem);
}

.account-button {
  cursor: pointer;
}

/* logo */
.logo {
  color: #0000FF;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  line-height: 1.1;
  flex-shrink: 0;
}

.templogo {
  color: #0000FF;
}

/* search area */
.SEARCH {
  display: flex;
  flex: 1 1 18rem;
  min-width: min(100%, 16rem);
}

.SEARCH input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.5rem;
  border: 1px solid #ccc;
  padding: 0.5rem 0.625rem;
  border-radius: 0;
  outline: none;
}

#searchInput:focus::placeholder {
  opacity: 0;
}

.SEARCH button {
  flex: 0 0 auto;
  min-width: 3.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #0000FF;
  background: #0000FF;
  color: white;
  cursor: pointer;
}




/* log in and sign up */

#login {
  border: none;
  background: none;
  text-decoration: none;
}

a {
  text-decoration: none;
}

#signup {
  background: #0000FF;
  color: white;
  border: none;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
}

#logout {
  color: black;
  border: none;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  border-radius: 0.5rem;

}

.BIG {
  padding-top: 0.8rem;
  padding-left: 1rem;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 1 auto;
  margin-left: auto;
}




/* Css for My Account at the top Right Corner */
.account-wrapper {
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;

  font-size: 0.9375rem;
  font-weight: 400;
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
}

.account-dropdown {
  border-width: 0 1px 1px 1px;
  border-style: solid;
  border-color: darkgrey;
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  min-width: 12rem;
  max-width: calc(100vw - 2rem);
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.dropdown-item {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.hidden {
  display: none;
}


/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.modal-box {
  position: relative;
  width: min(calc(100% - 2rem), 26.25rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin: clamp(1rem, 12vh, 9.375rem) auto;
  background: white;
  border-radius: 0.875rem;
  padding: clamp(1rem, 4vw, 1.5625rem);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  margin-top: 1.25rem;
}

.modal-body select {
  width: 100%;
  padding: 0.625rem;
  margin-top: 0.5rem;
}

.modal-footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

.cancel-btn {
  padding: 0.5rem 0.875rem;
}

.save-btn {
  padding: 0.5rem 0.875rem;
  background: #0b8ea1;
  color: white;
  border: none;
  border-radius: 6px;
}


.account-icon {
  width: 1.375rem;
  height: 1.375rem;
  /* display: block;
  opacity: 0.75; */
  transform: translateY(5px);
}

.account-text {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.account-arrow {
  font-size: 0.75rem;
  margin-left: 0.125rem;
  transform: translateY(-1px);
  cursor: pointer;
}


.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;

  width: 100%;
  padding: 0.875rem 1rem;

  border: none;
  background: none;
  text-align: left;
  font-size: 1rem;
}

.spe-icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.CH {
  margin-left: 0.375rem;
}

@media (max-width: 48rem) {
  .header {
    align-items: stretch;
  }

  .SEARCH {
    flex-basis: 100%;
    order: 3;
  }

  .buttons {
    margin-left: 0;
  }
}

@media (max-width: 30rem) {
  .header {
    flex-direction: column;
  }

  .buttons,
  .SEARCH {
    width: 100%;
  }

  .buttons {
    justify-content: space-between;
  }
}
