/*
 * Variables
 */

:root {
  --primary: #0AA1FF;
  --primaryHover: #0089DE;
  --secondary: #E6E8EC;
  --secondaryHover: #CBCBCB;
  --white: #FFF;
  --whiteHover: #E6E6E6;
  --dark: #12263A;
  --darkHover: #4E4E4E;
  --green: #27C400;
  --greenHover: #35B216;
  --yellow: #ffc423;
  --yellowHover: #cf9a15;
  --red: #FF3239;
  --redHover: #E13D42;
  --visited: #832FCD;
  --visitedHover: #6210AE;
}

/*
 * Base structure
 */

html, body {
  min-height: 100vh;
  height: 100%;
  overflow: auto;
  accent-color: var(--visited);
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-image: url("../resources/nis_top.png");
  background-repeat: repeat-x;
  font: 15px "Inter", sans-serif;
  margin: 0;
}


@media screen and (max-width: 1280px) and (max-height: 720px) {
  body {
    zoom: 0.6;
  }
}

@media screen and (max-width: 1920px) and (max-height: 1080px) {
  body {
    zoom: 0.8;
  }
}

.viewport {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #F0F1F4;
}

/*
 * Header
 */

.navbar {
  position: sticky;
  display: flex;
  height: 65px;
  width: 100%;
  top: 0;
  left: 0;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.navbar-left {
  display: flex;
  height: 100%;
  width: 800px;
  justify-content: left;
  align-items: center;
  padding: 0 20px;
}

.navbar-right {
  display: flex;
  flex-grow: 1;
  height: 100%;
  background-color: var(--dark);
  color: var(--white);
  justify-content: right;
}

.navbar-info {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 250px;
  padding: 5px 5px 5px 15px;

}

.infobarImg {
  height: 90%;
  width: auto;
  object-fit: contain;
}

#nisLogo {
  display: flex;
  width: fit-content;
  height: 40px;
  align-items: center;
  padding: 5px 10px 5px 20px;
  border-radius: 30px 0 0 30px;
}

#nisTitle {
  display: flex;
  width: fit-content;
  height: 40px;
  align-items: center;
  padding: 5px 10px 5px 5px;
  border-radius: 0 30px 30px 0;
  margin-left: 5px;
}

#usernameInfo {
  margin: 0;
  padding: 5px 5px 5px 10px;
  border-radius: 20px 0 0 20px;
}

#logoutButton {
  padding: 5px 10px 5px 5px;
  border-radius: 0 20px 20px 0;
  margin-left: 5px;
}

.connectLine {
  flex-grow: 1;
  color: var(--white);
  background-color: var(--white);
  border: none;
  height: 2px;
}

.connectionIcon {
  display: flex;
  padding: 7px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

/*
 * Sidebar
 */

.sidebar {
  position: sticky;
  top: 0;
  width: 250px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  background-color: var(--white);
  border-right: 1px solid #eee;
  padding-top: 10px;
}

.sidebarItem {
  position: relative;
  display: flex;
  height: 30px;
  padding: 10px 20px;
  margin-right: 10px;
  margin-left: 10px;
  cursor: pointer;
  align-items: center;
  border-radius: 80px;
}

.sidebarSymbol {
  margin-right: 10px;
}

.sidebarText {
  font-weight: bold;
  white-space: nowrap;
  padding-right: 2px;
  margin: 0;
}

.sidebarBottom {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  padding: 20px 0;
  border-top: 1px solid rgb(212, 209, 209);
}

/*
 * Global add-ons
 */

h1 {
  font-size: revert;
  font-weight: revert;
  margin: revert;
  padding: revert;
}

h2 {
  font-size: revert;
  font-weight: revert;
  margin: revert;
  padding: revert;
}

h3 {
  font-size: revert;
  font-weight: revert;
  margin: revert;
  padding: revert;
}

h4 {
  font-size: revert;
  font-weight: revert;
  margin: revert;
  padding: revert;
}

a {
  text-decoration: none;
  color: inherit;
}

textarea {
  display: flex;
  resize: none;
  width: 100%;
  outline: none;
}

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/MaterialSymbolsOutlined.woff2) format('woff2');
}

.select {
  width: 100%;
  min-width: 10px;
  max-width: 30ch;
  border: 1px solid black;
  border-radius: 0.25em;
  padding: 0.25em 0.5em;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1.1;
  background-color: var(--white);
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
  display: grid;
  grid-template-areas: "select";
  align-items: center;
}

.select::after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: black;
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  grid-area: select;
  justify-self: end;
}

.circle {
  border-radius: 50%
}

.square {
  aspect-ratio: 1/1;
}

.list {
  overflow: auto;
  height: 100%;
}

.inputWrapper {
  position: relative;
  display: flex;
  width: 50%;
}

.inputWrapperWide {
  position: relative;
  display: flex;
  width: 90%;
}

.inputWrapperNarrow {
  position: relative;
  display: flex;
  width: 30%;
}

.inputWrapperUltraNarrow {
  position: relative;
  display: flex;
  width: 20%;
}



.input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #FFF;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease, background-color 0.3s ease;
  outline: none;
}

.input:focus {
  border-color: var(--visited);
  background-color: #fff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input::placeholder {
  color: #999;
  font-style: italic;
}

.input.error {
  border-color: var(--red);
}

.input.shake {
  animation: shake 0.3s ease-in-out;
}

.inputErrorTooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--red);
  color: var(--white);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  margin-top: 5px;
  white-space: nowrap;
  z-index: 100;
}

.copyableInput {
  --height: 36px;

  display: flex;
  width: fit-content;
}

.copyableInput input {
  flex-grow: 1;
  width: 40ch;
  padding: 0 8px;
  font-size: 14px;
  border: 1px solid var(--secondaryHover);
  border-right: none;
  outline: none;
}

.copyableInput input:hover {
  background: var(--secondary)
}

.copyableInput button {
  flex-shrink: 0;
  width: var(--height);
  height: var(--height);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border: 1px solid var(--secondaryHover);
}

.dropdownBtn {
  position: relative;
  display: inline-block;
}

.dropdownBtn .dropdownContent {
  display: none;
  position: absolute;
  left: -100px;
  min-width: 160px;
  z-index: 1;
  border: 1px solid var(--secondaryHover);
  border-radius: 10px;
  overflow: hidden;
}

.dropdownBtn .dropdownContent.show {
  display: block;
}

.dropdownBtn .dropdownContent button {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  border: none;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.material-symbols-outlined {
  font-variation-settings:
          'FILL' 0,
          'wght' 300,
          'GRAD' 10,
          'opsz' 20;
  font-family: 'Material Icons', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.material-symbols-filled {
  font-variation-settings:
          'FILL' 1,
          'wght' 300,
          'GRAD' 10,
          'opsz' 20;
  font-family: 'Material Icons', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.primary {
  background-color: var(--primary);
  color: white;
}

.primaryBtn {
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.primaryBtn:hover {
  background-color: var(--primaryHover) !important;
  z-index: 1;
}

.secondary {
  background-color: var(--secondary);
  color: black;
}

.secondaryBtn {
  background-color: var(--secondary);
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.secondaryBtn:hover {
  background-color: var(--secondaryHover) !important;
  z-index: 1;
}

.white {
  background-color: var(--white);
  color: black;
}

.whiteBtn {
  background-color: var(--white);
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.whiteBtn:hover {
  background-color: var(--whiteHover) !important;
  z-index: 1;
}

.red {
  background-color: var(--red);
  color: white;
}

.redBtn {
  background-color: var(--red);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.redBtn:hover {
  background-color: var(--redHover) !important;
  z-index: 1;
}

.yellow {
  background-color: var(--yellow);
  color: black;
}

.yellowBtn {
  background-color: var(--yellow);
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.yellowBtn:hover {
  background-color: var(--yellowHover) !important;
  z-index: 1;
}

.green {
  background-color: var(--green);
  color: white;
}

.greenBtn {
  background-color: var(--green);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.greenBtn:hover {
  background-color: var(--greenHover) !important;
  z-index: 1;
}

.visited {
  background-color: var(--visited);
  color: white;
}

.visitedBtn {
  background-color: var(--visited);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.visitedBtn:hover {
  background-color: var(--visitedHover) !important;
  z-index: 1;
}

.bordered {
  border: 2px solid black;
}

.borderedBottom {
  border-bottom: 2px solid black;
}

.borderedInput {
  border: 1px solid rgb(212, 212, 212);
  border-radius: 4px;
}

.curved {
  border-radius: 30px;
}

.curvedRight {
  border-radius: 0 30px 30px 0;
}

.curvedLeft {
  border-radius: 30px 0 0 30px;
}

.centered {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.centeredText {
  text-align: center;
}

.shadowed {
  -webkit-box-shadow: 4px 4px 12px 0 rgba(232, 232, 232, 1);
  -moz-box-shadow: 4px 4px 12px 0 rgba(232, 232, 232, 1);
  box-shadow: 4px 4px 12px 0 rgba(232, 232, 232, 1);
}

.genericContainer {
  height: 80%;
  width: 50%;
  min-width: 500px;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
  margin: 2%;
  border: 1px solid black;
  overflow: hidden;
}

.genericHeader {
  font-size: max(1.5vh, 15px);
  padding-bottom: 15px;
  border-bottom: 1px solid rgb(212, 212, 212);
}

.genericSubHeader {
  font-size: 1.4vh;
  padding-bottom: 15px;
}

.wide {
  width: 80%;
}

.btnGroup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.circleBtn {
  border-radius: 50%;
  aspect-ratio: 1/1;
  padding: 5px;
}

.genericBtn {
  padding: 5px 15px;
}

/*
 * Dropup Menu
 */

.dropupMenu {
  position: absolute;
  bottom: 110px;
  right: 15px;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

.dropupMenu button {
  padding: 10px 20px;
  width: 100%;
  text-align: right;
  transition: background-color 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
 * Switch
 */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  color: transparent;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .2s;
  transition: .2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .2s;
  transition: .2s;
}

input:checked + .slider {
  background-color: var(--visited);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--visited);
}

input:disabled + .slider {
  opacity: 0.3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*
 * Modal
 */

.nis-modal {
  display: flex;
  position: fixed;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.6);
}

.nis-modal-content {
  display: flex;
  flex-direction: column;
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  height: fit-content;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 8px;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.modal-inner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-settings-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: space-around;
  padding: 20px;
  box-sizing: border-box;
}

.modal-settings-row {
  display: flex;
  width: 100%;
  padding: 15px 0;
  box-sizing: border-box;
}

.modal-setting {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
  height: 130px;
  box-sizing: border-box;
}

.modal-setting-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 7px;
  right: 20px;

}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.button {
  width: 50%;
  padding: 10px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.modal-input {
  width: 40%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #FFF;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease, background-color 0.3s ease;
  outline: none;
}

.modal-input:focus {
  border-color: var(--visited);
  background-color: #fff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-input::placeholder {
  color: #999;
  font-style: italic;
}

/*
 * Grid
 */

.outerDiv {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 40px 40px 40px 40px;
  overflow: auto;
  width: 100%;
  max-width: 1500px;
}

.row {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
}

.column {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 2 1 auto;
}

/*
 * Tooltip
 */

.tooltip {
  position: relative;
  display: flex;
  padding: 0 5px;
  align-items: center;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 120%;
  transform: translateY(-50%);
  font-size: 14px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--primary) transparent transparent;
}

.tooltipLeft {
  position: relative;
  display: flex;
  padding: 0 5px;
  align-items: center;
  z-index: 1;
}

.tooltipLeft .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 120%;
  transform: translateY(-50%);
  font-size: 14px;
}

.tooltipLeft:hover .tooltip-text {
  visibility: visible;
}

.tooltipLeft .tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary);
}

/*
 * Form
 */

.formInput {
  position: relative;
  width: 100%;
  max-width: 280px;
  border-radius: 3px;
  overflow: hidden;
}

.formInput .formInputLabel {
  position: absolute;
  top: 20px;
  left: 12px;
  text-align: center;
  align-content: center;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
  transform-origin: 0 0;
  transform: translate3d(0, 0, 0);
  transition: all .2s ease;
  pointer-events: none;
}

.formInput .formInputFocusBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}

.formInput input {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 0;
  font-family: inherit;
  padding: 16px 12px 0 12px;
  height: 56px;
  font-size: 16px;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  color: #000;
  transition: all .15s ease;
}

.formInput input:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.formInput input:not(:placeholder-shown) + .formInputLabel {
  color: rgba(0, 0, 0, 0.5);
  transform: translate3d(0, -12px, 0) scale(0.75);
}

.formInput input:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.formInput input:focus + .formInputLabel {
  color: var(--primary);
  transform: translate3d(0, -12px, 0) scale(0.75);
}

.formInput input:focus + .formInputLabel + .formInputFocusBg {
  transform: scaleX(1);
  transition: all .1s ease;
}

.largeFormInput {
  height: 100%;
}

.largeFormInput input {
  height: 100%;
}

.formSelect {
  position: relative;
  margin: auto 20px;
  width: 70%;
  max-width: 280px;
  border-radius: 3px;
}

.formSelect .formSelectLabel {
  position: absolute;
  top: 20px;
  left: 12px;
  text-align: center;
  align-content: center;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
  transform-origin: 0 0;
  transform: translate3d(0, 0, 0);
  transition: all .2s ease;
  pointer-events: none;
}

.formSelect .formSelectFocusBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}

.formSelect .chosen-container {
  width: 100% !important; /* Force chosen container to inherit width */
  height: fit-content;
}

.formSelect .chosen-container .chosen-drop {
  top: 105%;
}

.formSelect .chosen-container .chosen-results li.highlighted {
  background-color: var(--visited);
  background-image: none;
}

.formSelect .chosen-container .chosen-choices {
  border: none;
  background: rgba(0, 0, 0, 0.02) none;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  min-height: 100%;
  align-content: center;
  padding: 25px 5px 5px 5px;
  transition: all .15s ease;
}

.formSelect .chosen-container .chosen-choices:hover {
  background: rgba(0, 0, 0, 0.04) none;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.formSelect .chosen-container .chosen-choices:focus-within {
  background: rgba(0, 0, 0, 0.05) none;
  border: none;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.formSelect .chosen-container-multi .chosen-choices li.search-choice {
  padding: 3px 5px 3px 5px;
  background-color: white;
  background-image: none;
  width: fit-content;
  font-size: 14px;
  justify-content: space-between;
  display: flex;

  align-items: center;
  line-height: revert;
  border-radius: 40px;
}

.formSelect .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  margin-left: 5px;
  font-size: 14px;
  position: revert;
}

.formSelectLabel.active {
  color: rgba(0, 0, 0, 0.5);
  transform: translate3d(0, -12px, 0) scale(0.75);
}

.formSelect .chosen-container-active + .formSelectLabel {
  color: var(--primary);
  transform: translate3d(0, -12px, 0) scale(0.75);
}

.formSelect .chosen-container-active + .formSelectLabel + .formSelectFocusBg {
  transform: scaleX(1);
  transition: all .1s ease;
}

/* Hide dropdown only for the specific chosen instance */
#optionPlatesLabel .chosen-container .chosen-drop {
  display: none !important;
}

#optionPlatesLabel .chosen-container .chosen-single div {
  display: none !important;
}


.form {
  display: flex;
  flex-direction: column;
}

.formRow {
  display: flex;
  flex-direction: row;
  margin: 20px 0;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.formCheckbox {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

/*
 * Login Page
 */

.login-container {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 350px;
  height: fit-content;
  margin: auto;
  padding: 20px;
  text-align: center;
}

.logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.input-field {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid var(--secondary);
  border-radius: 5px;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: var(--visited);
  outline: none;
}

.input-field.error {
  border-color: var(--red);
}

.error-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--red);
  color: var(--white);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  margin-top: 5px;
  white-space: nowrap;
  z-index: 100;
}

.input-wrapper.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

.login-button {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: var(--primaryHover);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-wrapper label {
  font-size: 14px;
  color: #3f4042;
}

/*
 * Large Thumbnail
 */

.largeThumbContainer {
  float: left;
  width: 100%;
}

.largeThumbImgContainer {
  display: flex;
  width: 90%;
  margin-right: 0;
  position: relative;
  max-height: 90%;
}

.largeThumbImg {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin: auto 0 auto auto;
  border-top: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-radius: 0 5px 5px 0;
}

.largeThumbImgLink {
  max-height: 100%;
}

.largeThumbHeader {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  background-color: white;
  color: black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  height: 100px;
  border-radius: 0 0 5px 0;
  margin: 0 2px 2px 0;
}

.largeThumbHeaderInfo {
  margin: 10px;
}

.largeThumbHeaderMargins {
  margin: auto;
  white-space: nowrap;
}

.largeThumbLaneName {
  width: 80%;
  top: 55%;
  margin-bottom: 10px;
}

.largeThumbTimeInfo {
  margin-left: auto;
}

.largeThumbButtonContainer {
  position: absolute;
  top: 100px;
  display: inline-flex;
  background-color: white;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-top: 5px;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  margin: 0 10px 10px auto;
  border-radius: 0 0 5px 0;
}

.largeThumbButton {
  padding: 5px 5px;
  border-radius: 10px;
  margin-left: 5px;
  margin-top: 0;
  border: none;
  text-align: center;
  position: relative;
}

.largeThumbButtonIcon {
  font-size:30px !important
}

.largeThumbInfo {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  bottom: 0;
  left: 0;
  background-color: white;
  color: black;
  border-right: 2px solid black;
  border-top: 2px solid black;
  max-width: 40%;
  border-radius: 0 5px 0 0;
  margin: 2px 2px 2px 0;
  z-index: 5;
}

.largeThumbConfidence {
  display: flex;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin: 4px;
  right: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.largeThumbPlateField {
  width: 140px;
  text-decoration: none;
  border-style: solid;
  border-color: black;
  border-width: 3px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lucida Console", Monaco, monospace !important;
  font-size: 1.3em !important;
  background-color: white;
  padding: 5px 0;
  float: left;
  margin: 10px;
}

/*
 * Thumbnail
 */

.laneInfoContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid rgb(212, 212, 212);
  border-radius: 4px;
  -webkit-box-shadow: 4px 4px 12px 0 rgba(232, 232, 232, 1);
  -moz-box-shadow: 4px 4px 12px 0 rgba(232, 232, 232, 1);
  box-shadow: 4px 4px 12px 0 rgba(232, 232, 232, 1);
  float: left;
  max-width: 820px;
}

.laneInfoSidebySide {
  width: 46%;
  margin-left: 30px;
  margin-top: 30px;
}

.laneInfoFillsContainer {
  width: 98%;
  margin: 30px;
}

.thumbContainerMargins {
  margin: 10px;
}

.thumbHeaderMargins {
  margin: 10px 10px 0;
}

.thumbInfoContainerInner {
  float: right;
  right: -50%;
  position: relative;
}

.thumbInfoContainerOuter {
  float: right;
  right: 50%;
  position: relative;
}

.thumbInfoLeft {
  overflow: hidden;
}

.thumbInfoRight {
  float: right;
  width: 100px;
}

.thumbInfoFieldNameCol {
  float: left;
  width: 100px;
}

.thumbInfoFieldValCol {
  float: left;
}

.thumbImgContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 800px;
  height: 460px;
  margin: 10px;
  border-top: 1px solid rgb(212, 212, 212);
  border-bottom: 1px solid rgb(212, 212, 212);
  padding-top: 5px;
  padding-bottom: 5px;
}

.thumbImgLink {
  position: relative;
  overflow: hidden;
  display: inline-block;
  height: fit-content;
  width: 100%;
}

.thumbImg {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.thumbTabsImagePadding {
  padding: 5px !important;
}

.thumbTabsLinkSize {
  padding: 0.1em 1em !important;
}

.thumbHeader {
  display: flex;
  position: relative;
}

.thumbLaneName {
  position: absolute;
  display: inline-block;
  width: 80%;
  top: 55%;
  transform: translateY(-50%);
}

.thumbTimeInfo {
  display: inline-block;
  margin-left: auto;
  text-align: right;
}

.thumbOriginalPlate {
  display: flex;
  align-items: center;
  height: 55px;
}

.thumbOriginalPlateText {
  font: 15px inter, sans-serif;
}

.thumbButtonContainer {
  display: inline-flex;
  margin: 0 10px 10px auto;
}

.thumbButton {
  width: 55px;
  padding: 10px 10px;
  border-radius: 10px;
  margin-left: 10px;
  margin-top: 0;
  border: none;
  text-align: center;
  position: relative;
}

.thumbButtonIcon {
  color: black;
  font-size:30px !important
}

.thumbConfidence {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  border-radius: 50%;
  height: 55px;
  margin: 0 10px 10px 5px;
  text-align: center;
  position: relative;
}

.thumbConfidenceNumber {
  font: 25px inter, sans-serif;
  color: black;
}

.plateDisplaySolid {
  color: black;
}

.plateDisplayEdit {
  color: red;
}

.plateField {
  text-decoration: none;
  border-style: solid;
  border-color: black;
  border-width: 3px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lucida Console", Monaco, monospace !important;
  font-size: 1.5em !important;
  background-color: white;
  padding: 5px 0;
}

.thumbInfoCommon {
  float: left;
  margin: 10px;
}

.thumbInfoOptions {
  position: absolute;
  width: 240px !important;
  margin-top: 3px !important;
}

.confirmPlateLabel {
  width: 30%;
  font-size: 2.5ex;
  float: left;
  padding: 5px 0;
  margin: 10px 0;
}

/*
 * Thumbnail Carousel
 */

.thumbCarouselContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.thumbCarouselImageContainer {
  position: relative;
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbCarouselNav {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 12px 12px 0 0;
  z-index: 10;
}

.thumbCarouselBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px 8px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
  user-select: none;
  z-index: 10;
}

.thumbCarouselBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.thumbCarouselBtn:active {
  transform: translateY(-50%) scale(0.95);
}

.thumbCarouselPrev {
  left: 5px;
}

.thumbCarouselNext {
  right: 5px;
}

.thumbCarouselCounter {
  font-size: 12px;
  font-weight: bold;
  color: white;
  min-width: 40px;
  text-align: center;
}

.largeThumbCarouselContainer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.largeThumbCarouselImageContainer {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.largeThumbCarouselNav {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 12px 12px 0 0;
  z-index: 10;
  gap: 12px;
}

.largeThumbCarouselBtn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.1s;
  user-select: none;
}

.largeThumbCarouselBtn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.largeThumbCarouselBtn:active {
  transform: scale(0.95);
}

.largeThumbCarouselCounter {
  font-size: 14px;
  font-weight: bold;
  color: white;
  min-width: 60px;
  text-align: center;
}

/*
 * Custom Image Modal (replaces jQuery lightbox)
 */

.image-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.image-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-modal-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 100001;
}

.image-modal-close:hover,
.image-modal-close:focus {
  color: #bbb;
}

.image-modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.image-modal-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.1s;
  user-select: none;
}

.image-modal-btn:hover {
  background-color: var(--primaryHover);
}

.image-modal-btn:active {
  transform: scale(0.95);
}

.image-modal-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.image-modal-counter {
  font-size: 18px;
  font-weight: bold;
  color: white;
  min-width: 100px;
  text-align: center;
}

/*
 * Events Page
 */

.eventsDiv {
  display: flex;
  height: calc(100% - 80px);
  width: 100%;
  margin: 40px 40px 40px 40px;
}

.eventsLeftDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: 100%;
  width: 400px;
  border: 2px solid black;
  overflow: hidden;
}

.eventsRightDiv {
  float: right;
  height: 100%;
  width: 100%;
}

.eventsTable {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
}

.eventsTable::-webkit-scrollbar {
  display: none;
}

.eventsList {
  flex: 1 1 auto;
}

.eventOpenFilter {
  display: flex;
  margin-right: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  border-radius: 40px;
  padding: 0 5px;
}

.numEventsSelectContainer {
  display: flex;
  position: absolute;
  background-color: white;
  height: 50px;
  width: 35%;
  bottom: 0;
  border-right: 2px solid black;
  border-top: 2px solid black;
}

.numEventsSelect {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  height: 70%;
  font-size: 15px;
  line-height: 1.0;
}

.numEventsSelectLabel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
}

.eventsToTopBtn {
  position: absolute;
  border-radius: 50%;
  bottom: 5%;
  right: 5%;
  border: 2px solid black;
  padding: 5px;
}

.up-symbol {
  font-size: 50px !important;
}

.event {
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid black;
}

.eventLeft {
  display: flex;
  width: 50%;
  height: 100%;
}

.eventRight {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: fit-content;
  align-items: flex-end;
}

.eventPlateField {
  width: 140px;
  text-decoration: none;
  border-style: solid;
  border-color: black;
  border-width: 2px;
  border-radius: 10px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lucida Console", Monaco, monospace !important;
  font-size: 1.3em !important;
  background-color: white;
  padding: 5px 0;
  float: left;
  margin-left: auto;
}

.eventLaneName {
  margin: 10px;
  text-align: right;
}

.eventTimeInfo {
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: right;
}

.eventText {
  margin: 0;
}

.noEvents {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.noEventsSad {
  font-size: 100px !important;
  font-variation-settings:'FILL' 0,
  'wght' 100,
  'GRAD' 10,
  'opsz' 24;
}

.noEventsText {
  font-size: large;
  text-align: center;
  margin: 10px 20px 0 20px;
}

.stolenIndicator {
  margin-left: auto;
  font-size: 50px !important;
}

/*
 * Live Lanes Page
 */

.liveLanesContainer {
  display: flex;
  min-height: 100%;
  height: fit-content;
  padding: 0 0 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

/*
 * Onsite Page
 */

.onsiteTitleContainer {
  width: 95%;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.onsiteTitle {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0 20px 20px;
}

.onsiteSettingsBtn {
  font-size: 50px !important;
  margin-right: 10px;
  align-self: end;
  width: fit-content;
  border-radius: 30%;
}

.onsitePlateField {
  width: 140px;
  text-decoration: none;
  border-style: solid;
  border-color: black;
  border-width: 2px;
  border-radius: 10px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lucida Console", Monaco, monospace !important;
  font-size: 1.5em !important;
  background-color: white;
  padding: 5px 0;
  float: left;
}

.onsite {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
}

.onsiteEntered {
  margin: 0;
  font-size: 24px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.onsiteTimeInfo {
  margin: 0;
  text-align: right;
}

.onsiteButtonDiv {
  position: absolute;
  bottom: 5%;
  left: 5%;
  display: flex;
  flex-direction: column;
}

.onsiteAddBtn {
  padding: 5px;
}

.onsiteToTopBtn {
  bottom: 10%;
  left: 5%;
  padding: 5px;
  margin-bottom: 5px;
}

.onsiteUnknown {
  margin:20px 20px 10px 20px;
  text-align: justify;
  font-weight: bold;
}

.onsiteTTLInfo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

/*
 * Reports Page
 */

.reportTemplateHeader {
  margin: 20px;
}

.reportSavedTemplate {
  height: 5%;
}

.reportOptionsContainer {
  display: flex;
  justify-content: space-around;
  margin: 30px 30px 0 30px;
  width: 100%;
  height: calc(100% - 30px);
  box-sizing: border-box;
}

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

.reportOptionRow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 50px;
  box-sizing: border-box;
}

.reportExtraOptionsOuterContainer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
  margin: 30px;
  width: calc(100% - 60px);
  box-sizing: border-box;
}

.reportExtraOptionsInnerContainer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.reportExtraOptionGroup {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  height: 100%;
}

.reportExtraOption {
  display: flex;
  justify-content: center;
  align-items: center;
}

.reportExtraOptionLabel {
  text-align: center;
  margin-left: 5px;
}

.reportButtonContainer {
  display: flex;
  box-sizing: border-box;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.reportButton {
  padding: 10px 10px;
  margin: 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

/*
 * Config Menu
 */

.tile {
  display: flex;
  flex-grow: 1;
  margin: 10px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tileSymbol {
  font-size: 25vmin !important;
  margin: 0;
}

.tileLabel {
  font-size: 4vmin;
  margin: 0;
  font-weight: 500;
}

/*
 * User Config
 */

.userSymbol {
  font-size: 25vmin !important;
  margin: 0;
}

.userLabel {
  font-size: 4vmin;
  margin: 0;
  font-weight: 500;
}

.userTile {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  perspective: 10000px; /* Enables the 3D effect */
}

.addUser {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s; /* Smooth animation */
}

.addUserFront,
.addUserBack {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px 0 0 10px;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hides the back when facing front */
}

.addUserBack {
  background: var(--white);
  transform: rotateY(180deg); /* Initially flipped */
}

.userTile.flipped .addUser {
  transform: rotateY(180deg); /* Flip the card */
}

.cancelBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #d9534f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cancelBtn:hover {
  background-color: #c9302c;
}

.userList {
  border: solid 2px black;
  border-radius: 0 10px 10px 0;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto;
}

.userListItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: solid 1px black;
  background-color: var(--white);
  font-size: 2vmin;
}

.userListSymbolLeft {
  font-size: 2vw !important;
  margin: 10px 0;
  padding-left: 10px;
}

.userListSymbolRight {
  font-size: 2vw !important;
  margin: 10px 0;
  padding-right: 10px;
}

.userAvatarSymbol {
  font-size: 3vw !important;
  margin: 10px 0;
}

.userOption {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 40%;
  margin: 10px;
}

.userButtonRow {
  display: flex;
  justify-content: space-around;
  width: 50%;
}


.divider {
  border-left: 1px solid #000;
  height: 60%;
}

/*
 * Lane Config Page
 */
.laneButtonDiv {
  position: absolute;
  bottom: 5%;
  left: 5%;
  display: flex;
  flex-direction: column;
}

.laneAddBtn {
  padding: 5px;
}

.laneToTopBtn {
  bottom: 10%;
  left: 5%;
  padding: 5px;
  margin-bottom: 5px;
}

.laneDiv {
  display: flex;
  width: 80%;
  min-width: 800px;
}

.laneLeftDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding-right: 20px;

  height: 100%;
  width: 40%;
  overflow: hidden;
}
.centerDiv {
  align-items: center;
  display: flex;
  justify-content: center;
}

.fullCenterDiv {
  align-items: center ;
  display: flex;
  justify-content: start;
  box-sizing: border-box;
  width: 100%;
  padding:2px;
}

.laneRightDiv {
  float: right;
  height: 100%;
  width: 100%;
  padding-left: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 2px solid;
}
.laneList {
  flex: 1 1 auto;
  margin: 5px;
}

.laneListTag {
  height: 30px;
  align-items: center;
  width: 20%;
  flex: 0 1 auto;
  margin: 2px;
  font-size: .8vw;
  padding: 1px;
}

.laneInfo {
  flex: 1 1 auto;
  padding: 5px;
  margin: 5px;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
}

.laneConfigModalText {
  width:50%;
  text-align: start;
}

.laneTriggerFields {
  width:100%;
}

.laneInfoInnerDiv {
  flex: 1 1 auto;
  padding: 5px;
  margin: 5px;
  width: auto;
}
.laneInfoTextBlock {
  margin-top: 5px;
  padding: 2px;
  height: 30px;
  border-bottom: 1px solid;
}

.laneStatsTextBlock {
  margin-top: 5px;
  padding: 2px;
  height: 40px;
}
.laneStatsTextBox {
  float: right;
  display: grid;
  font-size: medium;
  margin: 0;
  padding: 6px;
  font-weight: lighter;
  border: 2px solid var(--dark);
  border-radius: 20%;
}
.laneStatsTitleText {
  float:left;
  font-size: large;
  display: grid;
  margin-right: 30px;
}

.laneListText {
  margin-left: 10px;
}

.laneListItem {
  flex: 1 1 auto;
}

.laneConfigText {
  float: right;
  display: grid;
  font-size: medium;
  margin: 0;
  font-weight: lighter;

}
.laneInfoBlock {
  width: 80%;
}

.laneConfigTitleText {
  float:left;
  font-size: large;
  display: grid;
}

.laneTable {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin:5px;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
}

.laneTableRow {
  display: flex;
  height: auto;
  align-items: center;
  max-height: 50px;
  border-bottom: 1px solid var(--dark);
}

.laneTableSortButton {
  margin:2px;
  border-radius: 10%;
}
.laneTableSortButtonIcon {
  padding:10px;
  font-variation-settings: 'opsz' 20;
}

.laneRemoveItem{
  max-width: 40px;
  max-height: 40px;
  margin: 20px;
}
.laneStatsButton {
  padding: 10px;
  margin:5px;
  cursor: pointer;
  font-size: large;
  border-radius: 5px;
}

.laneEditButton {
  width: 40px;
  float: right;
  margin:10px
}
.laneAddButtonDiv {
  position: absolute;
  bottom: 5%;
  right: 5%;
  display: flex;
  flex-direction: column;
}
.laneButton {
  padding: 10px;
  position: absolute;
  right: 0;
  max-width: 4%;
}

.laneAddButton {
  position: absolute;
  right: 10px;
  bottom: 0;
}


/*
* Park Layout Page
*/

.parkLayoutDiv {
  display: flex;
  width: 95%;
  min-width: 800px;
  height: 90%
}

.parkLayoutGraphicDiv {
  float: right;
  height: 100%;
  width: 100%;
  max-height: 90%;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
}

.parkTopDiv {
  position: relative;
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  height: 45%;
  width: 95%;
  overflow: hidden;
}

.parkBottomDiv{
  position: relative;
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  margin-top:5px;
  height: 50%;
  width: 95%;
}

.parkLayoutInfoDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: 100%;
  width: 70%;
  overflow: hidden;
}

.parkSiteInfoDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 20px;
  height: 90%;
  margin: 5px;
  width: 50%;
}
.parkLaneInfoDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 20px;
  height: 100%;
  margin: 5px;
  width: 40%;
}
.parkParkInfoDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 20px;
  height: 100%;
  margin: 5px;
  width: 50%;
}

.parkSiteSelectDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 20px;
  height: 90%;
  margin: 5px;
  width: 40%;
  overflow: hidden;
}

.parkInfoTableBlock {
  height: auto;
  max-height: 150px;
  width:100%;
  overflow: hidden;
  display: flex;
  padding: 1px;
  flex-direction: column;
}

.parkListItem {
  flex: 1 1 auto;
}

.parkList {
  flex: 1 1 auto;
  margin: 5px;
}

.parkTable {
  display: block;
  height: 40%;
  margin:4px;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
}

.parkLayoutTableRow {
  display: flex;
  height: auto;
  align-items: center;
  max-height: 50px;
  border-bottom: 1px solid var(--dark);
}

.parkTableRow {
  display: flex;
  float: left;
  position: relative;
  width: fit-content;
  height: 30px;
  align-items: center;
  max-height: 30px;
  border: 1px solid var(--dark);
  margin: 2px;
  padding: 2px 5px;

}

.parkInfoTextBlock {
  width:100%;
  overflow: auto;
  display: block;
}

.parkInfoTitleText {
  float:left;
  display: flex;
  max-height: 35px;
  margin: 3px;
  width: 30%;

}
.parkInfoText {
  float: right;
  display: flex;
  font-size: small;
  font-weight: lighter;
  width:70%;
  margin-right: 30%;
  margin-top: 0;
  margin-bottom: 0;
}
.parkTextItalicised {
  font-style: italic;
  margin-left: 10px;
}

.parkInfoTitle {
  float: right;
  display: flex;
  font-size: small;
  font-weight: lighter;
  margin-top: 0;
  margin-bottom: 0;
}

.parkInfoBubbleText {
  margin-right: 10px;
}

.parkHeaderDivRight {
  max-width: 65%;
  float: right;
  display: inline;

}

.parkRemoveItem {
  max-width: 25px;
  max-height: 35px;
  margin: 10px;
}
.parkListIcon {
  max-width: 25px;
  max-height: 35px;
  margin: 5px;
  padding:2px;
}

.parkListText {
  max-width: 80%;
}

.parkTableText {
  margin-left: 10px;
}

.parkAddButton {
  position: absolute;
  right: 10px;
  bottom: 5px;
}
.parkInfoBlock {
  width: 100%;
  height: 80%;
}

.parkEditButton {
  width: 30px;
  float: right;
  margin-left:10px
}

.parkDeleteButton {
  width: 30px;
  float: right;
  margin-left:10px
}

.parkInfoInnerDiv {
  flex: 1 1 auto;
  padding: 5px;
  margin: 5px;
  width: auto;
}
.parkInfoDivScrollBox {
  max-height: 100%;
  overflow-y: scroll;
}

.parkInfoDivBox {
  height: 90%;
}

.parkSelectParkDiv {
  width: 37%;
  display: inline-block;
  padding-left: 2px;
  padding-right: 2px;
}
.parkSelectParkDivText {
  width: auto;
  padding-left: 2px;
  padding-right: 2px;
  display: inline-block;
}

.parkVisitedBorder {
  border-color: var(--visited);
}

.parkInlineDiv {
  display: inline-flex;
  align-content: space-between;
}

.parkSliderText {
  margin: 5px;
}

.parkModalText {
  width:50%;
  padding:2px;
  text-align: start;
}

.parkTransitSelectModalText {
  width: 30%;
  text-align: start;
}

.parkTransitSelectModalSelectFields {
  width: 70%;
  text-align: start;
}

.layout-info-container {
  display: inline-block;
  vertical-align: top;
  margin-top: 20px;
  margin-left: 20px;
  margin-bottom: 20px;
  border: 1px solid rgb(212, 212, 212);
  border-radius: 4px;
  padding: 10px;
}

/*
 * Database Config Page
 */

.databaseTitleLeft {
  font-size: 24px;
  position: absolute;
  top: 1%;
  left: 1%;
}

.databaseTitleRight {
  font-size: 24px;
  position: absolute;
  top: 1%;
  right: 1%;
}

.databaseColumn {
  position: relative;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  font-size: 1.4vh;
  padding: 60px;
}

.databaseTile {
  background-color: white;
  margin: 50px;
  border-radius: 20px;
  position: relative;
}

.databaseBtnContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 80%;
  width:150%;
  max-width: 100px;
  background-color: var(--dark);
  border-radius: 30px;
}

.databaseBtn {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
}

.databaseBtnIcon {
  font-size: 3.5vmin !important;
}

.databaseApplyBtn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20%;
}

.databaseCancelBtn {
  position: absolute;
  right: 22%;
  bottom: 10px;
  width: 20%;
}

.databaseStatusContainer {
  display: flex;
  flex-direction: column;
}

.databaseStatus {
  width: 10vh;
  margin-top: 20px;
  margin-bottom: -10px;
}

.databaseLabel {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.databaseSettingsBtnContainer {
  position: absolute;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/*
 * Email Config Page
 */

.emailContainer {
  display: flex;
  padding: 0;
  min-width: 70vh;
}

.emailListContainer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 200px;
  max-width: 300px;
  border-right: 1px solid black;
  padding: 15px;
  overflow: auto;
}

.emailSavedContainer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 15px;
}

.emailCheckbox {
  flex-direction: initial;
  gap: 5px;
}

.emailAddContainer {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
  align-items: center;
}

.emailBtnContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}

.emailEditContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  align-items: center;
}

.emailEditBtnContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.emailSearch {
  padding: 10px 16px;
}

.emailAddBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60%;
}

.email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  transition: border 0.3s ease, background-color 0.3s ease;
}

.email:hover {
  background-color: var(--whiteHover);
}

.emailDeleteBtn {
  padding: 5px;
}

/*
* Log Page
*/

.log {
  display: flex;
  flex-direction: column;
  height: 85%;
  overflow: auto;
}

.logDownloadBtn {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.warningText {
  color: orange;
}

.severeText {
  color: red;
}

/*
 * Misreads Page
 */

.misreadContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  max-height: 90%;
  overflow: auto;
  justify-content: flex-start;
}

.misreadSearch {
  height: 10px;
  margin: 10px 0;
}

.misreadAddBtn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 50px !important;
}

.misread {
  display: flex;
  height: 3.5vh;
  width: fit-content;
  position: relative;
  box-sizing: border-box;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: #000 1px solid;
  border-radius: 15px;
}

.misreadPlate {
  width: 8vh;
  height: 2.5vh;
  box-sizing: border-box;
  font-size: 1.5vh !important;
}

.misreadArrow {
  font-size: 3vh !important;
}

.misreadDeleteBtn {
  position: absolute;
  top: -5px;
  right: -8px;
}

.misreadPlateField {
  width: 140px;
  text-decoration: none;
  border-style: solid;
  border-color: black;
  border-width: 2px;
  border-radius: 10px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lucida Console", Monaco, monospace !important;
  font-size: 1.5em !important;
  background-color: white;
  padding: 5px 0;
}

.misreadModalContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
 * Notification Lists Page
 */

.notificationsListContainer {
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
  max-width: 1500px;
}

.notificationListSearchContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.notificationListSearchBar {
  margin: 5px 5px 0;
}

.notificationListSearchResults {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 75%;
  padding: 10px;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  overflow: auto;
}

.searchResult {
  display: flex;
  padding: 0 50px;
  border: 1px solid black;
  border-radius: 40px;
}

.notificationsListsContentContainer {
  display: flex;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 1500px;
}

.listXLoadBtn {
  font-size: 35px !important;
  padding: 2px;
}

.notificationListsNotesContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.notificationListsNotes {
  height: 100%;
  resize: none;
  border: 1px solid black;
  border-radius: 10px;
  overflow: auto;
  font-family: "Helvetica", Monaco, monospace !important;
  font-size: 1.2em !important;
  background-color: white;
  padding: 5px;
}

/*
 * Notifications Page
 */

.notificationsContainer {
  display: flex;
  padding: 0;
  width: 100%;
  max-width: 1500px;
}

.notificationsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.notificationSearch {
  padding: 5px 16px;
}

.notificationsInnerContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 300px;
  overflow: hidden;
  border-right: 1px solid black
}

.notificationAddBtn {
  position: absolute;
  right: 15px;
  bottom: 50px;
  width: 50px;
  font-size: 40px !important;
}

.notificationsOptionsContainer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 200px;
  max-width: 700px;
  overflow: hidden;
}

.notificationsOptionsList {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 90%;
}

.notificationsOptions {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.notificationHeader {
  margin-left: 5px;
  margin-bottom: 0;
}

.notificationsItemEntry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  border-bottom: 1px solid var(--dark);
}

.notificationMessageInfo {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.notificationMessageBox {
  display: flex;
  height: 50%;
  box-sizing: border-box;
  margin: 10px;
}

.notificationOptionsBtnContainer {
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(10px, auto, 50px);
}

/*
 * Plugin Menu Page
 */

.pluginMenu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  justify-content: flex-start;
}

.pluginItem {
  display: flex;
  flex-direction: column;
  min-width: 400px;
  min-height: 500px;
  aspect-ratio: 4/5;
  width: 20%;
  height: 20%;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
  margin: 2%;
  border: 1px solid black;
  justify-content: center;
}

.pluginInfo {
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 90%;
  width: 100%;
  justify-content: left;
  padding: 10px;

}

.pluginButton {
  display: flex;
  justify-content: right;
}

/*
 * General Config Page
 */

.generalSettingContainer {
  height: 40%;
  width: 80%;
  min-width: 500px;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
  margin: 2%;
  border: 1px solid black;
}

.generalSettingSubContainer {
  height: 90%;
  width: 100%;
  min-width: 500px;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.generalSettingLeftContainer {
  width: 50%;

  float: left;
  padding:15px;
  border-right: black 1px solid;

}

.generalSettingRightContainer {
  width: 50%;
  float: right;
  padding:15px;
  border-left: black 1px solid;


}

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

.generalConfigInput {
  width: 80%;
  height: 80%;
  padding: 2px 6px;
  font-size: 16px;
  background-color: #FFF;
  outline: none;
}

.backButtonDiv {
  width: 100%;
  height: 50px;
}
.backButtonBtn {
  float: right;
  width: fit-content;
}

.noBorderInput {
  border: none;
  box-shadow: none;
  margin-top: 8px;
  margin-right: 10px;
  background-color: white;
  transition: none;
}
.noBorderInput:focus{
  box-shadow: none;
}

.ui-spinner {
  height: auto;
  border-radius: 8px;
}

.ui-spinner-up:after {
  content: "▲";
  display: block;
  text-align: center;
  font-size: 10px;
}
.ui-spinner-down:after {
  content: "▼";
  display: block;
  text-align: center;
  font-size: 10px;
}

/*
 * API Keys Page
 */

.apiKeyTableWrapper {
  height: 100%;
  overflow: scroll;
  margin-top: 10px;
  padding: 0 10px;
}

.apiKeyTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.apiKeyTable thead th {
  border: none;
  padding: 30px;
  font-size: 14px;
  background-color: var(--dark);
  color: var(--white);
  text-align: left;
}

.apiKeyTable tbody tr {
  margin-bottom: 10px;
  -webkit-box-shadow: 0 5px 12px -12px rgba(0, 0, 0, 0.29);
  -moz-box-shadow: 0 5px 12px -12px rgba(0, 0, 0, 0.29);
  box-shadow: 0 5px 12px -12px rgba(0, 0, 0, 0.29);
}

.apiKeyTable tbody th, .apiKeyTable tbody td {
  border: none;
  padding: 30px;
  font-size: 14px;
}

.apiKeyActionBtn {
  width: 40px;
}

/*
 * Main content
 */

.main {
  display: flex;
  height: 100%;
  width: calc(100% - 250px);
  overflow: auto;
  justify-content: center;
}

.main .page-header {
  margin-top: 0;
}

.hidden {
  display: none !important;
}


/*
 * Tags
 */


.tags-container {
  display: flex;
  flex-direction: row;
  overflow:clip;
  gap: 0;
  flex: 0 0 auto; /* prevent it from stretching */
}

.tag-content-container {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 8px;
  flex: 0 0 auto; /* prevent stretching */
  align-items: flex-start; /* keep input/button vertically aligned */
  min-height: 100%;
}

.tag-input {
  flex: 1 0 auto; /* take remaining width but not height */
  padding: 6px 10px;
}

.color-picker-button {
  width: 80px;
  height: 80px;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ff0000; /* default color */
}

.color-picker-palette {
  width: 100%;
  height: 200px;
  left: 0;
  border: 1px solid #ccc;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 4px;
}

.color-picker-palette.hidden {
  display: none;
}

#color-canvas {
  display: block;
  cursor: crosshair;
  border-radius: 4px;
}

.example-tag-container {
  height: 40px;
  margin: 2px;
  width: 100%;
  display: grid;
  border: none;
  border-radius: 12px;
}

.example-tag-container-text {
  align-self:baseline;
  justify-self:baseline;
  font-size:12px;
  margin:2px;
  padding:2px;
}

.tag-add-btn {
  flex: 0 0 auto; /* fixed size, no stretching */
  padding: 6px 12px;
}

.tag-add-btn:hover {
  background-color: #0056b3;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  background-color: #eee;
  padding: 4px 8px;
  margin: 5px;
  border-radius: 25px;
  border: solid black 1px;
  font-size: 14px;
  cursor: pointer;
  justify-content: center;
  min-width: 50px;
}

.tag button.remove-tag-btn {
  margin-left: 4px;
  background: none;
  border: none;
  color: #c00;
  cursor: pointer;
  font-weight: bold;
}

.tag button.remove-tag-btn:hover {
  color: #900;
}


.tag.selected {
  border-color: var(--visited);
  border-width: 4px;
  margin:2px;
}

.tag-display {
  display: inline-flex;
  position:relative;
  background-color: #eee;
  padding: 4px 8px;
  margin: 5px;
  border-radius: 25px;
  border: solid black 1px;
  cursor: pointer;
  font-size: 14px;
  justify-content: center;
  min-width: 50px;
}

.small-tag-delete-button {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background-color: #e53935; /* red */
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: background-color 0.2s ease;
}

.small-tag-delete-button:hover {
  background-color: #c62828; /* darker red on hover */
}


.tag-input-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  box-sizing: border-box;
  width: 100%;
  gap: 8px; /* space between elements in a row */
}
.tagTableRow {
  display: flex;
  height: auto;
  align-items: center;
  max-height: 50px;
  width: 100%;
  border-bottom: 1px solid var(--dark);
}

.tag-table {
  width: 100%;
  max-height:800px;
  overflow:scroll;
}

.fullWidth {
  width:100%;
}

.tagListButton {
  margin: 2px;
  aspect-ratio: 1/1;
  border-radius: 4px;
}
.tagButtonContainer {
  margin-left: auto;
  margin-right: 10px;
  display: flex;
}
.compact-back-btn {
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  min-width: auto;
  height: 36px;
  width: 36px;
}

.compact-back-btn .material-symbols-outlined {
  font-size: 20px;
}

.tagModalContentDiv {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  margin:5px;
}

.btn-add-tag {
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: background-color 0.2s, transform 0.1s;
}

.tags-wrapper-large-thumb .btn-add-tag {
  border: 1px solid black;
  border-radius: 25px;
  width: auto;
  height: auto;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tags-wrapper-large-thumb .btn-add-tag .material-symbols-outlined {
  font-size: 16px;
}

.tags-wrapper {
  display: flex;
  align-items: center; /* vertical alignment */
  gap: 8px; /* spacing between tags and button */
  min-width:100%;
  margin:5px;
  padding: 2px;
}

.tags-wrapper-large-thumb {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 40%;
  background-color: white;
  border-left: 2px solid black;
  border-top: 2px solid black;
  border-radius: 5px 0 0 0;
  margin: 2px 0 2px 2px;
  padding: 8px 12px;
  z-index: 5;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.tagsDisplayContainer {
  display: flex;
  flex-wrap: wrap; /* so tags wrap if there are many */
  gap: 6px;
  background-color: var(--secondary);
  border-radius: 25px;
  max-width:80%;
}

.tags-wrapper-large-thumb .tagsDisplayContainer {
  flex-wrap: nowrap;
  overflow: visible;
  max-width: none;
  background-color: transparent;
  flex-shrink: 1;
}

.tagsDisplayContainerSmall {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 10%;
  margin-left:auto;
  margin-right:10%
}

.tags-wrapper-large-thumb .tagsDisplayContainerSmall {
  width: auto;
  margin-left: 0;
  margin-right: 0;
  flex-shrink: 0;
  order: -1;
}

/* Style the selected items as pills - SCOPED */
.tag-pill-select .chosen-container-multi .chosen-choices li.search-choice {
  padding: 4px 12px !important;
  font-size: 14px !important;
  background: #f3f4f6 ;
  border-radius: 25px !important;
  border: 1px solid black !important;
  margin: 4px 8px !important;
  display: inline-block !important;
  width: auto !important;
  list-style: none !important;
}

/* Style the remove button - SCOPED */
.tag-pill-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background-color: #e53935; /* red */
  color: #fff !important;
  border-radius: 50%;
  font-size: 10px !important;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: background-color 0.2s ease;
}
.tag-pill-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close::before {
  content: 'x' !important;
  color: white;
  background-color: #e53935 !important;
  display: block !important;
  border-radius: 50%;
  text-align: center;



}
/* Style the remove button - SCOPED */
.tag-pill-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
  background-color: #c62828 !important; /* darker red on hover */
}

/* Style the search input - SCOPED */
.tag-pill-select .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  height: 30px !important;
  font-size: 14px !important;
  padding: 4px 0 !important;
}

/* Style the dropdown - SCOPED */
.tag-pill-select .chosen-container .chosen-drop {
  border: 1px solid #d1d5db !important;
  border-radius: 0 !important;
  margin-top: 4px !important;
  max-height: 300px !important;
}

/* Make dropdown options look like pills - SCOPED */
.tag-pill-select .chosen-container .chosen-results li {
  padding: 6px 12px !important;
  font-size: 14px !important;
  background: #f3f4f6 ;
  border-radius: 9999px !important;
  border: 1px solid black !important;
  margin: 4px 8px !important;
  display: inline-block !important;
  width: auto !important;
  list-style: none !important;
}

/* Adjust the results container to allow wrapping - SCOPED */
.tag-pill-select .chosen-container .chosen-results {
  padding: 8px 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

