/* ACCOUNTS -- All User Communication Boxes (Register, Login, Reset-Pwd etc) */
.accounts-box {
    position: fixed;
    width: 350px;
    left: 50%;
    margin-left: -175px; /* Negative half of width. */
}


/* APPEARANCE OF SVG ITEMS */
/* To modify SVG icons */
.custom-icon {
    margin-right: 0.5em;
}

.custom-icon-button {
    margin-right: 0.1em;
    vertical-align: -17%;
}

/* for a combination of svg and href to ensure the space is not underlined */
.no-underline-link {
    text-decoration: none;
}

.underline-link {
    text-decoration: underline;
}

/* LIST_VIEW <--> LIST_VIEW_COVER */
/* Toggle views between list_view and List_view_cover */
.view-toggle-button {
    font-size: 2.5em;
    line-height: 1;
    vertical-align: middle;
}

/* CONTROL ACTION BUTTONS TOP RIGHT */
/* Control buttons at top right of page, always visible for "save", "cancel", etc */
.fixed-top-control-buttons {
    position: fixed;
    top: 90px; /* Distance from the top */
    right: 5px; /* Distance from the right */
    z-index: 1050; /* Ensure it's above other content */
    transition: top 1s ease-in-out; /* Smooth movement */
}

/* NAVIGATION BUTTONS BOTTOM */
/* Navigation buttons at bottom of page */
/* LARGE SCREEN */
.nav-container {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    background-color: transparent;
    opacity: 0.9;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 0.75rem;
    transition: opacity 0.3s ease-in-out;
}
/* SMALL SCREEN */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        bottom: 12px;
    }
}

    /* Styling for icons */
    .btn-icon {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      font-size: 1.25rem;
      width: 1.5em;
      height: 1.5em;
      vertical-align: middle;
    }
    
    /* Mobile screen: only show icons */
    @media (max-width: 767.98px) {
      .btn-text {
        display: none;
      }
      .btn-icon {
        display: inline-block;
      }
      .nav-container .btn {
        padding: 0.375rem 0.5rem;
        min-width: 2.5rem;
      }
    }
    
    /* Desktop screen: show icon and text */
    @media (min-width: 768px) {
      .btn-text {
        display: inline;
        margin-left: 0.25rem;
      }
      .btn-icon {
        display: inline-block;
      }
    }

.nav-container:hover {
    opacity: 1;
}

.offcanvas-nav-container {
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 0.75rem;
}

/* TOAST MESSAGES */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.toast-placement .toast {
  pointer-events: auto;
  min-width: 250px;
  max-width: 350px;
  margin-top: 0.5rem;
}

/* PAGINATION */
/* PAGINATION for bottom of books-all____.html:  FIRST - FORWARD - page number - BACKWARD - LAST */
.pagination {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.side {
    flex: 1;
    display: flex;
    gap: 10px;
}

.left-side {
    justify-content: flex-end;
}

.right-side {
    justify-content: flex-start;
}

.center {
    flex: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    min-width: 8rem;
}

.page-number {
    background-color: lightgray;
    opacity: 0.85;
    color: black;   /* #333; */
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-block;
    align-items: center;
    height: 28px;
    line-height: 28px;
    min-width: 7.5rem;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Changes cursor when hovering over the page number */
#editable-page-number {
    cursor: text;
    /* outline: none; */
}

.spacer {
    width: 30px; /* Same width as the buttons */
    height: 30px;
    visibility: hidden;
}

/* Navigation button styling */
.forw-backw {
    background-color: lightgray;
    opacity: 0.9;
    color: black;
    font-size: 1rem;
    text-decoration: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.forw-backw:hover {
    background-color: darkgrey;
    color: black;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.15);
}

.forw-backw.disabled {
    color: white;
    transform: none;
    cursor: default;
    pointer-events: none;
}
