/* General styles 

in priority order
p  element
.blah  = for sthyle class
#blah  = for style

CSS assigns a weight to different selectors:

Selector Type       Example                 Specificity Score
Element (Tag)       p {}                        1       Lowest Priority
Class, Pseudo-Class .button {} or :hover        10      <p class=xyz
ID Selector         #header {}                  100     <p id=xyz
Inline Style        <div style="color: red;">   1000    highest priority
!important  color: red !important;  Overrides all (except inline !important)



*/


/* Ensure the body fills the entire viewport */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: var(--fonts-fontFamily); /* use your global font */
 background-color: var(--colors-background3, #d2e6e2);
  -webkit-overflow-scrolling: touch; /* enables flick */
    overflow: visible !important;  /* don’t block global scroll */
}

*, *::before, *::after {
  box-sizing: inherit;
}

/*
* {
  outline: 1px solid red;
}
*/



#header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 89px; /* Set this to match your actual header height */
    background:  var(--colors-background1);  /* #4CAF50; */
    color: white;
    padding: 10px;
    z-index: 1000; /* Keep it above content */
    display: flex;
    align-items: center;
}


header h1 {
    margin: 0;
    z-index: 1000;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}


.hidden {
  display: none !important;
}


/* Ensure content does not go behind the header */
#content {
    display: flex;
    position: relative;
    flex: 1;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 75px;
    padding-bottom: 60px;  /* so it is higher than than the footer. */
    -webkit-overflow-scrolling: touch; /* removes stickiness alows flick*/
 background-color: var(--colors-background3, #d2e6e2);
    overflow-y: auto;
    padding-bottom: 150px;
}


/* Center the form-container within the viewport */
main {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: flex-start; /* Align items to the top */
    flex-direction: column; /* Stack items vertically */
    padding: 1rem 0; /* Minimal padding for spacing */
    margin: 0; /* Remove default margin */
    height: auto; /* Ensure height adjusts to content */
}

/* Form container styles  used in login */
.form-container {
    position: relative;
    top: 25px;
    margin: 0 auto; /* Center the form horizontally */
    background: #f4f4f4; /* Light gray background */
    padding: 20px; /* Space around content */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 100%; /* Full width */
    max-width: 500px; /* Limit maximum width */
    text-align: center; /* Center text inside the form */
}


.form-containerxx {
    margin-top: 0; /* Remove unnecessary margin above the form */
}


.hero {
    margin: 2rem auto;
    padding: 2rem;
    background: #f4f4f4;
    border-radius: 10px;
    max-width: 600px;
}

.hero h2 {
    margin: 0;
    color: #4CAF50;
}

.hero p {
    margin: 1rem 0;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background:  var(--colors-background1);  /* #4CAF50; */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.button:hover {
    background: #45a049;
}



/* Ensure footer remains at the bottom */
footer {
    background:  var(--colors-background1);  /* #4CAF50; */
    color: white;
    text-align: center;
    padding: 0px;
    position: fixed;
    bottom: 0;
    width: 100%;
    /*height: 50px; *//* Fixed footer height */
    /*line-height: 50px; */
    flex-shrink: 0;
}

footer#app-footer {
  background:  var(--colors-background1);  /* #4CAF50; */
  color: white;
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
  flex-shrink: 0;
  z-index: 1000;
}

/* Ensure footer content (not logs) is compact */
#footer-main {
  line-height: 1.4em;
}

/* Separate trace log visually */
#trace-log-wrapper {
  background: #111;
  color: #0f0;
  font-family: monospace;
  font-size: 12px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
  border-top: 1px solid #0f0;
  text-align: left;
}

/* Target the inner content only */
#trace-log-output .trace-log-entry {
  padding-bottom: 2px;
}



/* Logo container with white background */
.logo-container {
    top: -15px;
    left:  1px;
    position: absolute;
    background:   var(--colors-background1);/* #4CAF50;  /* green header footer color */
    width: 100%;
    height: 80px;
    padding: 1px; /* Adds space around the logo */
    padding-right: 10px; /* Adds space around the logo */
    border-radius: 5px; /* Optional: Rounds the corners */
    display: flex;
    align-items: center; /* Align the logo and text */
    gap: 10px;
}



/* Hamburger Menu Button */
.menu-toggle {
    display: none; /* Hidden by default for larger screens */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


.logo {
    height: 40px; 
    /* width: auto; 6-19-25 */
    max-width: 100%;
    /* height: auto; 6-19-25 */

}


/* Set the background color for the entire navigation bar */
nav {
    background-color:  var(--colors-background1);  /* #4CAF50; */ /* Green color matching the header */
}

/* Ensure the menu items have a consistent background */
nav ul {
    background-color: var(--colors-background1);  /* #4CAF50; */ /* Same as nav */
    padding: 1rem; /* Adds space around the menu items */
    margin: 0; /* Removes default margin */
    border-radius: 5px; /* Optional: Rounds the corners */
}
/*
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}
*/

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}


  /* Default style (for laptops and larger screens) */
  @media (min-width: 768px) {
    #title_InstrumentPassport {
      font-size: 2rem; /* around 32px */

    }
  }

  /* Smaller screens (phones) */
  @media (max-width: 767px) {
    #title_InstrumentPassport {
      font-size: 1.4rem; /* around 22px */
    }
  }

/* iOS-specific fix for status bar overlap */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-device-width: 1024px) {

   #content {
      top: 45px; /* Adjust this value to suit your layout */
    }

    .logo-container {
      top: 20px; /* Adjust this value to suit your layout */
    }

    #header {
      height: 125px;
    }
    .form-container { /* logoin form iphone */
        top: 95px;
      }
    }
}




@media screen and (orientation: landscape) and (max-device-width: 1024px) {
  #content {
      top: 0px; /* Adjust this value to suit your layout */
      left: 10px;
    }
    
   .logo-container {
      top: -15px; /* Adjust this value to suit your layout */
    }


  #header {
    height: 75px; /* You can reduce this further if needed */
  }

  footer#app-footer {
    padding: 0;
    height: 5px;
  }
}


/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show on smaller screens */
    }

    nav {
        display: none; /* Hide menu initially */
    }

    nav.show {
        display: block; /* Show menu when toggled */
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .hamburgerXXX {
        font-size: 1.5rem; /* Smaller icon for smaller screens */
        top: 5px; /* Adjust position */
        right: 5px; /* Adjust position */
    }


}

/* // END HEADER STYLE */


/* // Form styles start */




/* Style the table inside the form */
table {
    width: 100%;
    max-width: 400px; /* Limit the form's width */
    margin: 0 auto;
    border-collapse: collapse; /* Remove table borders */
}

th, td {
    padding: 6px 10px; /* Reduce padding */
    line-height: 1.2; /* Adjust line height */
    font-size: 14px; /* Adjust font size */
}

label {
    font-weight: bold;
    padding-right: 10px;
    font-size: 0.85em; /* Makes the font 85% of the default size */
    color: #333; /* Adjust color if needed */
    white-space: pre-line; 
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

button {
    padding: 10px 15px;
    background-color:  var(--colors-background1);  /* #4CAF50; */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* // Form styles end


// start styles for popup menu-toggle
*/


/* Optional: Adjust text alignment for the header title */
header h1 {
    margin: 0;
    padding-left: 10px; /* Add some padding for spacing */
}

/* Responsive design for smaller screens */

  #title_InstrumentPassport {
    position: absolute;
    max-width: 50%;
    top: 15px;
    left: 75px;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
    z-index: 1200;
    pointer-events: none;   /* allow clicks to pass through */
  }


.hamburgerXX {
    position: absolute; /* Position the button relative to the header */
    top: 10px; /* Distance from the top of the header */
    right: 10px; /* Distance from the right edge of the header */
    background: none; /* Remove default button background */
    border: none; /* Remove default button border */
    font-size: 2rem; /* Adjust the size of the icon */
    cursor: pointer; /* Change cursor to pointer */
    color: white; /* Icon color */
    z-index: 1000; /* Ensure it stays above other elements */

}


.logout-link-container {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: var(--fonts-fontSize3);
    cursor: pointer;
    color: white;
    z-index: 1000;
    outline: none;              /* remove default outline */
    box-shadow: none;           /* remove any default shadows */
    text-decoration: none; /* Optional: remove underline */
    color: white;


}
.logout-link-containerXX a {
    color: white;
}

.logout-link-container:hover {
  text-decoration: underline; /* Optional hover effect */
}

.registration-link-container {
  position: absolute;
  top: 20px;
  right: 90px;
  background: none;
  border: none;
  font-size: var(--fonts-fontSize3);
  cursor: pointer;
  color: white;
  z-index: 1000;
  outline: none;
  box-shadow: none;
  text-decoration: none; /* Optional: remove underline */
}
.registration-link-container:hover {
  text-decoration: underline; /* Optional hover effect */
}


.changepassword-link-container-profile {
  text-decoration: none; /* Optional: remove underline */
}
.changepassword-link-container-profile:hover {
  text-decoration: underline; /* Optional hover effect */
}

.hamburger {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    z-index: 1000;
    outline: none;              /* remove default outline */
    box-shadow: none;           /* remove any default shadows */
}

.hamburger:hover,
.hamburger:focus,
.hamburger:active {
    outline: none;
    box-shadow: none;
    background: none;           /* prevent highlight background on hover */
}

@media (max-width: 768px) {
    .hamburger {
        font-size: 1.5rem;
        top: 5px;
        right: 5px;
    }
}

.menu-popupxx {
    position: fixed;
    top: 0;
    right: 0; /* Align to the top-right corner */
    width: 100px; /* Adjust width for the menu */
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    color: blue; /* Default text color for the popup */
    padding: 2rem; /* Add padding inside the popup */
    z-index: 1000; /* Ensure it stays above other elements */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left inside the popup */
    justify-content: flex-start;
    /*gap: .5rem; /* Add spacing between menu items */
}



.menu-popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    background-color:  var(--colors-background1);  /* #4CAF50; */
    border-radius: 8px;
    /* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); */
    color: blue;
    padding: 2px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.menu-popup.hidden {
    display: none;
}


/* Menu item styles */
.menu-popup a {
    text-decoration: none; /* Remove underline from links */
    color: white; /* Ensure menu text is visible by default */
    font-size: 0rem; /* Adjust font size */
    font-weight: bold; /* Make text bold */
    padding: 0.5rem; /* Add padding for better clickability */
    border-radius: 4px; /* Slight rounding for buttons */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}


/* Menu item styles */
.menu-popupV1 a {
    text-decoration: none; /* Remove underline from links */
    color: black; /* White text color */
    font-size: 1rem; /* Adjust font size */
    font-weight: bold; /* Make text bold */
    padding: 0.5rem; /* Add padding for better clickability */
    border-radius: 4px; /* Slight rounding for buttons */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}


/* Hover effect for menu items */
.menu-popup a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Slight highlight effect */
    color: white; /* Keep text color visible when hovered */

}

.menu-container {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    width: 80%;
}


/* start menu items */

.menu-item {
    display: flex;
    flex-direction: column-reverse; /* 🔁 Put submenu above label */
    margin-bottom: 10px;
}

.menu-label {
    font-weight: bold;
    padding: 8px;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chevron {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.chevron::before {
    content: "▸";
}
.chevron.rotate::before {
    content: "▾";
}

.menu-subitems {
    display: none;
    padding-left: 10px;
    border-left: 2px solid #ddd;
    margin-bottom: 4px;
}

.menu-subitems.open {
    display: block;
}

.menu-subitem {
    padding: 4px 0;
    cursor: pointer;
}

/* end menu  items */

.menu-itemXXXXX {
    margin: 1rem 0;
    font-size: 14px;
    cursor: pointer;
}

.menu-itemXXX:hover {
    color: #4CAF50;
    text-decoration: underline;
}


/* Optional: Close button for the menu */
.menu-popup .close-menu {
    align-self: flex-end; /* Align close button to the top-right of the popup */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/*
// end styles for popup menu-toggle

/// user info in headre flex-start
*/
#user-info-container {
  position: absolute; /* Allows precise positioning */
  bottom: -20px; /* Position relative to the bottom of the header */
  right: 1px; /* Align to the right edge */
  max-height: 40px;
  /*max-width: 100%; */
  background: var(--colors-background2); /* fallback: #4CAF50; green header/footer color */
  color: var(--colors-fontColor2) !important; /* fallback: #4CAF50; green header/footer color */
  font-size: var(--fonts-fontSize3);
  
  padding: 10px; /* Add padding for spacing */
  border-radius: 5px; /* Rounded corners */
  text-align: center; /* Center-align the content inside */
    z-index: 1000;  /* has to be higher than the breadcrumb container in order for the instrument dropdown to display*/ 
  display: flex; /* Align child elements in a row */
  align-items: center; /* Vertically center items */
  gap: 10px; /* Space between elements */
}

/* Adjust the link inside the container */
#user-info-container a {
    /* color: white; /* Match the text color */
    /*text-decoration: none; /* Remove underline */
    /*font-weight: bold; /* Make it stand out */

    color: inherit; /* Match the text color uses the user-info-container */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make it stand out */
    font-size: 0.85em; /* Adjust the size (smaller than default) */
    padding-left: 10px; /* Adds space to the left */
}

/* Add hover effect for the link */
#user-info-container a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Language selection styles */



#language-select {
    background-color: transparent; /* Match background with container */
    color: inherit; /* Match text color */
    border: 1px solid white; /* Subtle border to match the container */
    border-radius: 3px; /* Smaller rounded corners */
    font-family: var(--fonts-fontFamily); /* use your global font */
    font-size: var(--fonts-fontSize3);
    /*font-size: 0.60em; /* Smaller font size */
    padding: 3px 8px; /* Reduced padding for a more compact look */
    width: auto; /* Adjust width dynamically */
    height: 25px; /* Smaller height */
    appearance: none; /* Remove default dropdown arrow */
    cursor: pointer; /* Indicate interactivity */
    
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='white'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
    
    padding-right: 20px; /* Ensure space for dropdown arrow */
}

/* Ensure options inside the dropdown are readable */
#language-select option {
    background-color: #333; /* Dark background for contrast */
    color: white;
    font-size: 0.75em; /* Smaller font */
}

/* Hover and focus styles */
#language-select:hover, 
#language-select:focus {
    border-color: lightgray; /* Slight highlight on focus */
}

/* Adjust the flag icon next to the dropdown */
.language-container {
    display: flex;
    align-items: center;
    gap: 3px; /* Smaller space between flag and select */
}

/* Flag size adjustment */
#language-flag {
    width: 16px; /* Smaller flag */
    height: 12px;
    border-radius: 2px; /* Rounded edges */
    object-fit: cover;
}

/* language selection styles */

/*  breadcrumb style */


#breadcrumb-containerXXX {
    position: absolute; /* Allows precise positioning */
    bottom: -40px; /* Position 10px from the bottom of the header */
    left: 1px; /* Align to the right edge */
    width: 100%;
    /* background-color: rgba(0, 0, 0, 0.8); /* Optional: Add a background for better visibility */
    background:   var(--colors-background0);/* #4CAF50;  /* green header footer color */
    color:  var(--colors-fontColor2);
    font-size:  var(--colors-fontSize5);

    /* font-size: 0.7rem; */
    color:  var(--colors-fontColor2); /* Ensure text is visible */
    padding: 10px; /* Add padding for spacing */
    border-radius: 5px; /* Optional: Rounded corners */
    /* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Optional: Add subtle shadow */
    text-align: center; /* Center-align the content inside */
    z-index: 900; /* Ensure it appears above other elements */
    display: flex; /* Makes child elements align in a row */
    align-items: center; /* Vertically centers items */
    gap: 10px; /* Space between elements */
}

/* user info end*/


/* Ensure dataDisplay remains below the header */
#dataDisplay {
    position: relative;
    margin-top: 10px;
    padding-top: 10px;
    top: 35px;
    width: 95%;
    display: flex;
    flex-direction: column;
    overflow: visible;

}





#attributeForm {  /* id */
    width: 100%; /* Ensure it stretches */
    max-width: 1000px; /* Adjust as needed */
    margin: 0 auto; /* Center it */
}


.attribute-name {  /*  class of style   */
    margin-top: 5px; /* Adjust as needed */
    margin-bottom: 5px; /* Adjust as needed */
    padding: 0; /* Ensure there's no extra padding */
    line-height: 1.2; /* Adjust line spacing */
}



/* Attribute Categories Main Container */
#attributeCategoriesContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Left Section: Dropdown and Add Link */
.category-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Right Section: Selected Categories List */
.selected-categories {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Individual Category Item */
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Checkbox Styling */
.category-item input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Link Styling */
.add-attribute-categories {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.add-attribute-categories:hover {
    text-decoration: underline;
}

/* Category Selection Dropdown */
.category-selection select {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}



/* Container for Attribute Categories */
#attributeCategoriesContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Attribute Selection (Left) */
.category-selection {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Selected Categories (Right) */
#selectedCategories {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Individual Category Item */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
}

/* Green Plus Icon for Adding Categories */
.add-icon {
    color: green;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

/* Red Delete Icon for Removing Categories */
.delete-icon {
    color: red;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}


.registration-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 75px;
    max-width: 100%;
    width: 95%;
}


/* styles for info in footer  */
#device-info {
  position: absolute;
  bottom: 7px;
  left: 1rem;
  font-size: 0.7rem;
  line-height: 1rem;
  margin: 0;
  color: var(--colors-fontColor2) !important;#666;
}

#version-number {
  position: absolute;
  bottom: 22px;
  left: 1rem;
  font-size: 0.7rem;
  line-height: 1rem;
  margin: 0;
  color: var(--colors-fontColor2) !important;#666;
}

#refresh-btn {
  position: absolute;
  bottom: 5px;
  left: 10px;
  font-size: 0.7em;
  padding: 3px 6px;
}


#trace-log {
  background: #111;
  color: #0f0;
  font-family: monospace;
  font-size: 12px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
  border-top: 1px solid #0f0;
  text-align: left;
}


#header_errorMessage {
    position: absolute;
    top: 80px;
    left: 95px;
    font-size: 10px;
    color: white;
    background-color: red;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 5px;
    font-weight: bold;
    display: none;
    z-index: 1000; /* Optional: ensures it floats above other elements */
}

.change-password-form {
  width: 100%;
  position: relative;
  top:45px;

  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}



.password-wrapper {
    display: flex;
}


#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white; /* or var(--background-color) */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#splash-logo {
  width: 180px;
  max-width: 60vw;
  animation: splashPop 1s ease-in-out;
}

@keyframes splashPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* ChatGPT Help Window */

#chatgpt-help-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background:  var(--colors-background1); /*#4CAF50; */
  color: white;
  border-radius: 50%;
  font-size: 24px;
  padding: 12px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

#chatgpt-help-button:hover {
  background: #388E3C;
}



.session-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* semi-transparent backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* on top of everything */
}

.session-warning > div {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 400px;
}
.session-warning button {
  margin: 10px;
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
}

/* twofactor.css */
.blur-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.3); /* dim the background a little */
  z-index: 999; /* below the popup */
}

.twofactor-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#forsearchEngine {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

#user-roles {
  background: transparent;
  color: var(--colors-fontColor2) !important;
    font-size: var(--fonts-fontSize3);    
}
#user-role-selector {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--colors-fontColor2) !important;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 2px 6px;
  font-size: var(--fonts-fontSize3);    
  height: 22px;
}

#user-role-selector select {
}



/* iOS Safari portrait viewport fix  trying to stop stickyness in portrait.*/
@supports (-webkit-touch-callout: none) {
  @media screen and (orientation: portrait) {
    html, body, #standardFrame {
      height: -webkit-fill-available !important;
    }
  }
}



.instrument-view-selector {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.instrument-icon-btn {
  background: none;
  padding: 1px 1px;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--accent-color, #555);
  transition: transform 0.2s ease;
}

.instrument-icon-btn:hover {
  transform: scale(1.15);
}

.instrument-dropdown {
  position: absolute;
  top: 36px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 10000;
}

.instrument-dropdown.hidden {
  display: none;
}

.instrument-dropdown .dropdown-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.instrument-dropdown .dropdown-item:hover {
  background-color: #f0f0f0;
}



/* Base popup shell (shared across all popups) */
.popup-containerXX {
  position: fixed;
  inset: 0;
  z-index: 900;
}

.popup-overlayXX {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 901;
}

.popup-modalXX {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--colors-background0, #fff);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  padding: 1rem 1.5rem;
  z-index: 902;
}

/* ✨ Modern Breadcrumb Bar */
#breadcrumb-container {
position: absolute;    
    bottom: -40px; /* Position 10px from the bottom of the header */
    left: 1px; /* Align to the right edge */

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--colors-background2, #e7f4e4);
  color: var(--colors-fontColor2, #2a2a2a);
  padding: 0.4rem 1rem;
  margin: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.05);
  border-radius: 0;
}

#breadcrumb-container a {
  color: var(--colors-fontColor2, #3a3a3a);
  text-decoration: none;
  padding: 0.1rem 0.25rem;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

#breadcrumb-container a:hover {
  background: rgba(26,90,26,0.12);
  color: #184b18;
}

#breadcrumb-container span {
  color: #6b7280;
  font-size: 0.9rem;
  user-select: none;
}

@media (max-width: 640px) {
  #breadcrumb-container {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
  }
  #breadcrumb-container a { padding: 0.1rem 0.2rem; }
}


.home-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills the frame, crops as needed */
  object-position: center 35%; /* vertical focus point */
  filter: brightness(0.7);   /* keep your warm tone */
}



.field-label-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 14px;
  font-weight: bold;
  border-radius: 50%;
  border: 1px solid #666;
  color: #333;
  cursor: pointer;
  font-size: 12px;
  background: #f8f8f8;
}

.tooltip-box {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  background: #333;
  color: white;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  z-index: 100;
  display: none;
}

.tooltip-box.visible {
  display: block;
}

#user-role-selector-label{
 color: var(--colors-fontColor2) !important;
 font-weight: normal;
}

#user-role-selector {

     background-color: transparent; /* Match background with container */
    color: inherit; /* Match text color */
    border: 1px solid white; /* Subtle border to match the container */
    border-radius: 3px; /* Smaller rounded corners */
    font-family: var(--fonts-fontFamily); /* use your global font */
    font-size: var(--fonts-fontSize3);
    /*font-size: 0.60em; /* Smaller font size */
    padding: 3px 8px; /* Reduced padding for a more compact look */
    width: auto; /* Adjust width dynamically */
    height: 25px; /* Smaller height */
    appearance: none; /* Remove default dropdown arrow */
    cursor: pointer; /* Indicate interactivity */
    
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='white'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
    
    padding-right: 20px; /* Ensure space for dropdown arrow */
}
#user-role-selectorxx {
    background:   var(--colors-background0);/* #4CAF50;  /* green header footer color */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: var(--fonts-fontSize3);
  font-family: inherit;
  color: var(--colors-fontColor2) !important; /* fallback: #4CAF50; green header/footer color */
  cursor: pointer;
}

#user-role-selector:focus {
  outline: none;
  border-color: #18761c; /* your brand green */
  box-shadow: 0 0 3px #a4e0a6;
}



/* ✅ Corrected Android-specific layout tweaks */
@media screen and (max-device-width: 768px) {

    body.android #title_InstrumentPassport {
        top: 40px;

    }

    body.android #content {
        top: 55px; /* Adjust for Android’s smaller status bar inset */
    }

    body.android #breadcrumb-container {
        bottom: -50px;
    }

    body.android .logout-link-container {
        top: 30px;
    }

    body.android .hamburger {
        top: 30px;
    }

    body.android .logo-container {
        height: 120px;
    }

    body.android #header {
        height: 140px;
    }

    body.android .form-container {
        top: 75px;
    }
}

