/** @format */

@font-face {
  font-family: halfordsFont;
  src: url("/font/AGOldFace-Bold.otf");
}
* {
  height: auto;
  font-family: halfordsFont;
}
:host {
  --content-padding: 15px;
}
.mobile-only {
  display: none;
  @media screen and (max-width: 680px) {
    display: block;
  }
}

.desktop-only {
  display: block;
  @media screen and (max-width: 680px) {
    display: none;
  }
}

.underline {
  text-decoration: underline;
}
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination button {
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
  outline: 1px solid #494a4f;
  border-radius: 1px;
  border: none;
}
.submit-btn {
  padding: 5px 10px;
}
.edit-btn {
  padding: 5px 10px;
  border: 1px solid white;
  border-radius: 5px;
}

.hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.pagination button.active {
  background-color: #007bff;
  color: white;
}

#pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
}
#pagination a {
  color: rgb(255, 255, 255);
  float: left;
  padding: 9px 9px;
  margin: 3px;
  text-decoration: none;
  cursor: pointer;
}
#pagination a.active {
  border-radius: 50%;
  background-color: #4c4a4a;
  color: whitesmoke;
}

#pageNumbersContainer {
  display: flex;
  flex-wrap: wrap;
}
#pageNumbers {
  display: flex;
  padding: 2px;
}

input[type="number"] {
  width: 40px;
  height: 25px;
  border: 1px solid lightgray;
  text-align: center;
  margin: 5px;
  background-color: inherit;
  border-radius: 5px;
  outline: none;
}
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#goToPage {
  display: flex;
  align-items: center;
  margin-left: 10px;
  margin-right: 10px;
}

#entriesDisplayDiv {
  display: flex;
}
#entriesDisplayDiv span {
  margin-left: 5px;
  margin-right: 5px;
}

#logoutButton {
  position: absolute;
  /* keep top right */
  text-align: right;
  top: 0px;
  right: 15px;
  font-size: larger;
  font-family: halfordsFont;
}
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .page-header {
    padding: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header p {
    font-size: 0.875rem;
  }
}
.brand-logo {
  position: relative;
  top: 8px;
  left: 10px;
}
.brand-name {
  position: fixed;
  background-color: #1a1a1a;
  display: block;
  height: 50px;
  margin-left: 0px;
  top: 0;
  width: 100%;
  padding: var(--content-padding);
  box-shadow: 0px 5px 12px 6px #1a1a1a;
}
.content {
  padding: var(--content-padding);
}
.page {
  font-family: halfordsFont;
  color: #ff9919;
  background-color: #464646;
  font-size: 16px; /* Increased text to enable scrolling */
  @media screen and (max-width: 680px) {
    margin-left: 0px;
  }
}

.body,
.main {
  margin-top: 5px;
  font-family: halfordsFont;
  color: #ff9919;
  margin-left: 280px; /* Same width as the sidebar + left position in px */
  font-size: 18px; /* Increased text to enable scrolling */
  padding: 0px 10px;
  @media screen and (max-width: 680px) {
    margin-left: 0px;
  }
}
.halfordsLogo {
  position: relative;
  left: 5rem;
  top: 5rem;
  max-width: 55%;
  height: auto;
}
.main-content {
  min-height: calc(100vh - 200px); /* Adjust based on header + footer height */
  padding-bottom: 6rem; /* Space for footer */
  width: auto;
  margin-top: 60px;
}
@media only screen and (max-width: 640px) {
  .main-content {
    margin-top: 0;
  }
  .body {
    margin-top: 70px;
  }
}
.text-red {
  color: #ff0000;
}
.underline {
  text-decoration: underline;
}

@media only screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

  .loginButtons {
    /* stack ontop*/
    display: none;
  }
  #logoutButton {
    display: none;
  }
}
#searchBar {
  font-family: halfordsFont, "FontAwesome";
}
#searchBar input {
  padding: 3px;
  padding-left: 5px;
}
form input {
  padding: 3px;
  padding-left: 5px;
}

@media screen and (max-width: 600px) {
  #loginButtons {
    /* stack ontop*/
    display: none;
  }
}
input {
  background-color: inherit;
  border: 1px solid white;
  border-radius: 5px;
  margin: 5px;
}
.orangeButton {
  background-color: #ff9919;
  color: rgb(255, 255, 255);
  border-radius: 5px;
  padding: 12px 16px 12px 16px;
}

.loginContainer {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 60%;
  padding: 10px;
}

@media only screen and (max-width: 600px) {
  .loginContainer {
    left: 50%;
    width: 80%;
  }
  .halfordsLogo {
    display: none;
  }
}
#container {
  background-color: #333333;
  -webkit-box-shadow: 0px 0px 50px 25px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 0px 50px 25px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 50px 25px rgba(0, 0, 0, 0.75);
}
.loginErrorMessage {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.signupContainer {
  /** center horizontally **/
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  /** centre vertically*/

  justify-content: center;
  display: flex;
  /**make it responsive*/
  width: 80%;
  padding: 10px;
}
#userManageTable select {
  width: 100%;
  background-color: inherit;
  border: white 1px solid;
}
.mobile-Bar {
  margin-top: 15px;
}
.icon-bar {
  width: 100%; /* Full-width */
  background-color: #555; /* Dark-grey background */
  overflow: auto; /* Overflow due to float */
}

.icon-bar a {
  float: left; /* Float links side by side */
  text-align: center; /* Center-align text */
  width: 20%; /* Equal width (5 icons with 20% width each = 100%) */
  padding: 12px 0; /* Some top and bottom padding */
  transition: all 0.3s ease; /* Add transition for hover effects */
  color: white; /* White text color */
  font-size: 36px; /* Increased font size */
}

.icon-bar a:hover {
  background-color: #000; /* Add a hover color */
}

@media screen and (min-width: 600px) {
  .mobile-Bar {
    display: none;
  }
}
@media screen and (max-width: 600px) {
  .sidenav {
    display: none;
  }
}
.sidenav {
  width: 140px;
  position: fixed;
  z-index: 1;
  top: 80px;
  left: 10px;
  background: #242424;
  overflow-x: hidden;
  padding: 8px 0;
}

.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 18px;
  display: block;
}

.sidenav a:hover {
  color: #c97901;
}

.dropdown-btn {
  padding-left: 15px;
  cursor: pointer;
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}
