/* Make the body take at least the full height of the viewport */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  /* Main content should expand to fill available space */
  main {
    flex: 1;
  }
  
  /* Footer stays at the bottom */
  footer {
    background-color: #042e3d; /* Adjust to match your design */
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
  }

  .responsive-image {
    max-width: 100%; /* Ensures image never exceeds container width */
    height: auto; /* Keeps the aspect ratio */
    display: block; /* Prevents extra spacing below image */
    margin: 0 auto; /* Centers the image */
  }
  

  /* Header background colour */
.nav-wrapper {
    background-color: #042e3d !important; /* Example: Green, replace with your desired colour */
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between; /* Ensures space between logo & menu */
  }
  
  /* Footer background colour */
  .page-footer {
    background-color: #042e3d !important; /* Example: Dark green, replace with your desired colour */
  }

  /* Center the form */
form {
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Error message styling */
  .red-text {
    margin-top: 20px;
    font-size: 1.2rem;
  }
  #serial_results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 2px);
    display: block; /* Ensure the dropdown is visible */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    list-style: none; /* Remove bullets */
    opacity: 100%;
  }
  
  #serial_results .serial-item {
    padding: 8px 12px;
    cursor: pointer;
  }
  
  #serial_results .serial-item:hover {
    background-color: #f2f2f2;
  }
  div.dataTables_length label select {
    display:block;
  }
  #buildprofileModal {
    width: 90%;
    height: 90%;
    max-height: none;
  }
  
  #buildprofileModal.fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #profileContainer {
    display: flex;
    height: 100%; /* Ensures it uses the available height */
}

#profilePanel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px); /* Adjust for modal padding */
    overflow-y: auto; /* Enables scrolling if needed */
}
#profileItems {
  flex-grow: 1; /* Make it fill the entire height */
  overflow-y: auto; /* Enable scrolling if needed */
  min-height: 100%; /* Ensure it stretches */
}
H3 {
  font-size: 1.125rem
}
H5 {
  font-size: 1rem;
}


/* Brand Logo */
.brand-logo {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  max-width: 50% !important; /* Ensures logo text does not take too much space */
  font-size: clamp(14px, 2vw, 22px) !important; /* Ensures consistent scaling */
  flex-grow: 0 !important;
}

/* Logo Image */
.brand-logo img {
  height: 40px !important;
  max-width: 100% !important;
  margin-right: 8px !important;
}

/* NAVIGATION MENU */
#nav-mobile {
  display: flex;
  gap: 10px;
}

/* Force smaller font size earlier */
@media screen and (max-width: 1500px) {
  #nav-mobile {
    font-size: 14px; /* Slightly reduce nav font size before collapsing */
  }
  .brand-logo {
    font-size: 18px !important;
    max-width: 45% !important;
  }
}

/* COLLAPSE MENU AT 1410px */
@media screen and (max-width: 1440px) {
  #nav-mobile {
    display: none !important; /* Hides desktop menu */
  }

  /* Show the Materialize mobile menu */
  .sidenav-trigger {
    display: block !important;
  }
}
.draggable-item {
  padding: 5px;
  background: #eee;
  cursor: grab;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  text-align: center;
}

.drop-zone {
  border: 2px dashed #ccc;
  padding: 10px;
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.context-menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}




  