body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e8f2fb;
  overflow: auto;
}

body.dark-mode {
  background-color: #414141;
  color: #3b3b3b;
}

header,
footer {
  color: white;
  background-color: #121a2f;
  text-align: center;
  position: fixed;
  padding: 0.2em 0;
  width: 100%;
}

body.dark-mode header,
body.dark-mode footer {
  background: #222;
  color: #e0e0e0;
}

header {
  z-index: 99;
}

footer {
  bottom: 0;
  height: 2.5em;
  font-size: 0.9em;
  z-index: 98;
}

main {
  padding: 20px;
}

section {
  margin-top: 80px;
  margin-bottom: 20px;
}

H1 {
  cursor: default;
}

h2 {
  color: #000000;
  cursor: default;
}

body.dark-mode h2 {
  color: #b6b6b6;
}

h3 {
  color: #000000;
  cursor: default;
}

body.dark-mode h3 {
  color: #b6b6b6;
}

.bx-menu {
  font-size: 50px;
}

.bx-menu {
  position: absolute;
  color: #c9c9c9;
  top: 0.4em;
  left: 0.5em;
  cursor: pointer;
}

body.dark-mode .bx-menu {
  color: #818181;
}

.bx-menu:hover {
  color: #f1f1f1;
}

body.dark-mode .bx-menu:hover {
  color: #f1f1f1;
}

.bx-menu::before {
  pointer-events: none;
}

#darkModeMoon, #darkModeSun {
  position: absolute;
  font-size: 30px;
  top: 0.9em;
  right: 0.7em;
  cursor: pointer;
  transition: all 0.3s ease;
}

#darkModeMoon:hover, #darkModeSun:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

body.dark-mode #darkModeMoon {
  display: none;
}

#darkModeSun {
  display: none;
}

body.dark-mode #darkModeSun {
  display: block;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 100; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #121a2f; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.4s; /* 0.5 second transition effect to slide in the sidenav */
}

body.dark-mode .sidenav {
  background-color: #222;
}

/* The navigation menu links */
.sidenav-content {
  margin-top: 27px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #f1f1f1;
  transform: scale(1.05);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #445070);
}

body.dark-mode .sidenav a:hover {
  color: #f1f1f1;
  transform: scale(1.05);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #6e6e6e);
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 50px;
  /* fill space to the right */
  width: 100%;
}

.sidenav .closebtn:hover {
  color: #f1f1f1;
}

.sidenav .version {
  white-space: nowrap;
  position: absolute;
  bottom: 120px;
  left: 60px;
  font-size: 14px;
  color: #818181;
  transition: 0.3s;
}

.container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.subContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: "Fira Code", monospace;
}

body.dark-mode .subContainer {
  background-color: #5f5f5f;
  border: 1px solid #444;
  color: #b6b6b6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.status-container {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.log-container {
  min-height: 100px;
  /* VH - 277 */
  height: calc(100vh - 320px);
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow-y: auto;
  padding: 10px;
  background-color: #86909c;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

body.dark-mode .log-container {
  background-color: #2c2c2c;
  border: 1px solid #555;
  color: #c0c0c0;
}

.log-controls {
  padding-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.log-controls button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #4a5d83;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode .log-controls button {
  background-color: #3a3a3a;
  border: 1px solid #666;
  color: #e0e0e0;
}

.log-controls button:hover {
  background-color: #3d5073;
}

body.dark-mode .log-controls button:hover {
  background-color: #4a4a4a;
}

.log-controls select {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #4a5d83;
  cursor: pointer;
  font-weight: bold;
  color: white;
  max-width: 150px;
  text-overflow: ellipsis;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

body.dark-mode .log-controls select {
  background-color: #3a3a3a;
  border: 1px solid #666;
  color: #e0e0e0;
}

.log-controls select:hover {
  background-color: #3d5073;
}

body.dark-mode .log-controls select:hover {
  background-color: #4a4a4a;
}

.log-controls select option {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.log-entry {
  margin-bottom: 4px;
  padding: 2px 0;
  word-wrap: break-word;
  font-weight: bold;
}

.log-timestamp {
  color: #e4f2fc;
  margin-right: 8px;
}

.log-level {
  font-weight: bold;
  margin-right: 8px;
  min-width: 60px;
  display: inline-block;
}

.log-info .log-level {
  color: #007bff;
}

.log-error .log-level {
  color: #dc3545;
}

.log-warn .log-level {
  color: #ffc107;
}

.log-debug .log-level {
  color: #6c757d;
}

.log-message {
  color: #e4f2fc;
}

/* Scrollbar styling */
.log-container::-webkit-scrollbar {
  width: 8px;
}

.log-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

body.dark-mode .log-container::-webkit-scrollbar-track {
  background: #3a3a3a;
}

.log-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

#map {
  min-height: 300px;
  height: calc(100vh - 220px);
  width: 100%;
  border-radius: 15px;
  z-index: 0;
}

.leaflet-interactive {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.map-layer {
  filter: brightness(1) contrast(1);
}

body.dark-mode .map-layer {
  filter: brightness(2) contrast(1.1);
}

.leaflet-bar a, .leaflet-control-custom {
  background-color: #FFFFFF;
  color: #000000;
  font-size: 20px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

body.dark-mode .leaflet-bar a, body.dark-mode .leaflet-control-custom {
  background-color: #4a4a4a;
  color: #FFFFFF;
  border-bottom: 1px solid #636363;
}

.stand-info {
  font-weight: bold;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: center;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .leaflet-popup-content-wrapper, body.dark-mode .leaflet-popup-tip {
  background-color: #4a4a4a;
  color: #e0e0e0;
}

.stand-popup-content h1 {
  font-size: 15px;
  margin: 0 0 8px 0;
  color: #222;
}

body.dark-mode .stand-popup-content h1 {
  color: #e0e0e0;
}

.stand-popup-content p {
  margin: 1px 0;
  font-size: 11px;
  text-align: center;
  color: #333;
}

body.dark-mode .stand-popup-content p {
  color: #c0c0c0;
}

.stand-popup-content strong {
  font-size: 12px;
  font-weight: bold;
  color: #000000;
}

body.dark-mode .stand-popup-content strong {
  color: #ffffff;
}

.legend {
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .legend {
  background: #4a4a4a;
  color: #e0e0e0;
}

/* center stand label at the point */
.stand-label {
  pointer-events: none;
  z-index: 650;
  white-space: nowrap;
}

.stand-label span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transform: none;
}

.reports-chart-wrap {
  justify-content: center;
  max-width: 800px;
  width: 800px;
  height: 500px;
}

.per-airport-chart-wrap {
  justify-content: center;
  max-width: 800px;
  width: 500px;
  height: 500px;
  max-height: 500px;
}

#airportChart {
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 400px;
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
}

.time-chart-wrap {
  justify-content: center;
  max-width: 450px;
  width: 450px;
  height: 500px;
}

#reportsChart {
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 400px;
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
}

body.dark-mode #reportsChart {
  filter: brightness(0.8);
}

/* Config page */
#configButtonContainer {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.configButton {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #4a5d83;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode .configButton {
  background-color: #3a3a3a;
  border: 1px solid #666;
  color: #e0e0e0;
}

.configButton:hover {
  background-color: #3d5073;
}

body.dark-mode .configButton:hover {
  background-color: #4a4a4a;
}

#configContainer {
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background-color: #3a3a3a;
  color: #FFFFFF;
  max-height: 600px;
  overflow-y: auto;
}

body.dark-mode #configContainer {
  background-color: #3a3a3a;
  border: 1px solid #555;
  color: #c0c0c0;
}

#configContent {
  font-family: "Courier New", monospace;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#configContent code {
  display: block;
}

/* JSON syntax highlighting */
.json-key {
  color: #84b8d4;
}

.json-string {
  color: #b8826d;
}

.json-number {
  color: #9db292;
}

.json-boolean {
  color: #4c86b6;
}

.json-null {
  color: #5087b7;
}

/* testing airport display */
.airport-display {
  align-items: start;
  height: min-content;
  width: min-content;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.airport-display-separator {
  height: 2px;
  width: 100%;
  background-color: #949494;
}

.departure-board {
  display: inline-flex;
}

.letter {
  background-color: #ffffff;
  border-right: 1px solid rgba(97, 97, 97, 0.2666666667);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 20px;
  text-align: center;
  color: #000000;
  width: 20px;
}

body.dark-mode .letter {
  background-color: #5f5f5f;
  color: #ffffff;
}

.letter::before {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(97, 97, 97, 0.2666666667);
  font-size: 20px;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  width: 100%;
  color: #000000;
  z-index: 20;
}

body.dark-mode .letter::before {
  background-color: #5f5f5f;
  color: #ffffff;
  border-bottom: 1px solid #505050;
}

.letter::after {
  background-color: #ffffff;
  flex-grow: 0;
  font-size: 20px;
  height: 40px;
  line-height: 20px;
  margin-top: -50%;
  overflow: hidden;
  width: 100%;
  color: #000000;
  z-index: 10;
}

body.dark-mode .letter::after {
  background-color: #5f5f5f;
  color: #ffffff;
}

/* Blank letter */
.letter-blank::before {
  content: " ";
}

.letter-blank::after {
  content: " ";
}

/* dynamic function for character classes */
.letter-A::before {
  content: "A";
}

.letter-A::after {
  content: "A";
}

.letter-B::before {
  content: "B";
}

.letter-B::after {
  content: "B";
}

.letter-C::before {
  content: "C";
}

.letter-C::after {
  content: "C";
}

.letter-D::before {
  content: "D";
}

.letter-D::after {
  content: "D";
}

.letter-E::before {
  content: "E";
}

.letter-E::after {
  content: "E";
}

.letter-F::before {
  content: "F";
}

.letter-F::after {
  content: "F";
}

.letter-G::before {
  content: "G";
}

.letter-G::after {
  content: "G";
}

.letter-H::before {
  content: "H";
}

.letter-H::after {
  content: "H";
}

.letter-I::before {
  content: "I";
}

.letter-I::after {
  content: "I";
}

.letter-J::before {
  content: "J";
}

.letter-J::after {
  content: "J";
}

.letter-K::before {
  content: "K";
}

.letter-K::after {
  content: "K";
}

.letter-L::before {
  content: "L";
}

.letter-L::after {
  content: "L";
}

.letter-M::before {
  content: "M";
}

.letter-M::after {
  content: "M";
}

.letter-N::before {
  content: "N";
}

.letter-N::after {
  content: "N";
}

.letter-O::before {
  content: "O";
}

.letter-O::after {
  content: "O";
}

.letter-P::before {
  content: "P";
}

.letter-P::after {
  content: "P";
}

.letter-Q::before {
  content: "Q";
}

.letter-Q::after {
  content: "Q";
}

.letter-R::before {
  content: "R";
}

.letter-R::after {
  content: "R";
}

.letter-S::before {
  content: "S";
}

.letter-S::after {
  content: "S";
}

.letter-T::before {
  content: "T";
}

.letter-T::after {
  content: "T";
}

.letter-U::before {
  content: "U";
}

.letter-U::after {
  content: "U";
}

.letter-V::before {
  content: "V";
}

.letter-V::after {
  content: "V";
}

.letter-W::before {
  content: "W";
}

.letter-W::after {
  content: "W";
}

.letter-X::before {
  content: "X";
}

.letter-X::after {
  content: "X";
}

.letter-Y::before {
  content: "Y";
}

.letter-Y::after {
  content: "Y";
}

.letter-Z::before {
  content: "Z";
}

.letter-Z::after {
  content: "Z";
}

.letter-0::before {
  content: "0";
}

.letter-0::after {
  content: "0";
}

.letter-1::before {
  content: "1";
}

.letter-1::after {
  content: "1";
}

.letter-2::before {
  content: "2";
}

.letter-2::after {
  content: "2";
}

.letter-3::before {
  content: "3";
}

.letter-3::after {
  content: "3";
}

.letter-4::before {
  content: "4";
}

.letter-4::after {
  content: "4";
}

.letter-5::before {
  content: "5";
}

.letter-5::after {
  content: "5";
}

.letter-6::before {
  content: "6";
}

.letter-6::after {
  content: "6";
}

.letter-7::before {
  content: "7";
}

.letter-7::after {
  content: "7";
}

.letter-8::before {
  content: "8";
}

.letter-8::after {
  content: "8";
}

.letter-9::before {
  content: "9";
}

.letter-9::after {
  content: "9";
}

/* Letter animations */
.departure-board span:nth-child(1):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.125s;
}

.departure-board span:nth-child(1):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(2):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.25s;
}

.departure-board span:nth-child(2):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.25s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(3):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.375s;
}

.departure-board span:nth-child(3):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.375s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(4):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.5s;
}

.departure-board span:nth-child(4):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(5):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.625s;
}

.departure-board span:nth-child(5):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.625s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(6):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.75s;
}

.departure-board span:nth-child(6):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.75s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(7):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 0.875s;
}

.departure-board span:nth-child(7):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 0.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 0.875s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(8):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1s;
}

.departure-board span:nth-child(8):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(9):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.125s;
}

.departure-board span:nth-child(9):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(10):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.25s;
}

.departure-board span:nth-child(10):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.25s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(11):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.375s;
}

.departure-board span:nth-child(11):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.375s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(12):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.5s;
}

.departure-board span:nth-child(12):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(13):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.625s;
}

.departure-board span:nth-child(13):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.625s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(14):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.75s;
}

.departure-board span:nth-child(14):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.75s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(15):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 1.875s;
}

.departure-board span:nth-child(15):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 1.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 1.875s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(16):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2s;
}

.departure-board span:nth-child(16):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(17):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.125s;
}

.departure-board span:nth-child(17):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(18):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.25s;
}

.departure-board span:nth-child(18):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.25s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(19):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.375s;
}

.departure-board span:nth-child(19):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.375s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(20):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.5s;
}

.departure-board span:nth-child(20):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(21):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.625s;
}

.departure-board span:nth-child(21):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.625s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(22):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.75s;
}

.departure-board span:nth-child(22):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.75s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(23):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 2.875s;
}

.departure-board span:nth-child(23):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 2.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 2.875s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(24):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3s;
}

.departure-board span:nth-child(24):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(25):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.125s;
}

.departure-board span:nth-child(25):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(26):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.25s;
}

.departure-board span:nth-child(26):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.25s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(27):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.375s;
}

.departure-board span:nth-child(27):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.375s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(28):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.5s;
}

.departure-board span:nth-child(28):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(29):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.625s;
}

.departure-board span:nth-child(29):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.625s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(30):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.75s;
}

.departure-board span:nth-child(30):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.75s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(31):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 3.875s;
}

.departure-board span:nth-child(31):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 3.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 3.875s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(32):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4s;
}

.departure-board span:nth-child(32):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(33):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.125s;
}

.departure-board span:nth-child(33):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(34):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.25s;
}

.departure-board span:nth-child(34):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.25s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(35):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.375s;
}

.departure-board span:nth-child(35):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.375s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(36):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.5s;
}

.departure-board span:nth-child(36):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(37):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.625s;
}

.departure-board span:nth-child(37):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.625s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(38):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.75s;
}

.departure-board span:nth-child(38):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.75s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(39):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 4.875s;
}

.departure-board span:nth-child(39):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 4.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 4.875s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(40):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5s;
}

.departure-board span:nth-child(40):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(41):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.125s;
}

.departure-board span:nth-child(41):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(42):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.25s;
}

.departure-board span:nth-child(42):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.25s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(43):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.375s;
}

.departure-board span:nth-child(43):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.375s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.375s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(44):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.5s;
}

.departure-board span:nth-child(44):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.5s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.5s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(45):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.625s;
}

.departure-board span:nth-child(45):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.625s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.625s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(46):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.75s;
}

.departure-board span:nth-child(46):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.75s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.75s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(47):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 5.875s;
}

.departure-board span:nth-child(47):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 5.875s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 5.875s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(48):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 6s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 6s;
}

.departure-board span:nth-child(48):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 6s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 6s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(49):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 6.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 6.125s;
}

.departure-board span:nth-child(49):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 6.125s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 6.125s;
  transform-style: preserve-3d;
}

.departure-board span:nth-child(50):before {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 6.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition-delay: 6.25s;
}

.departure-board span:nth-child(50):after {
  animation: flip 1s 1 ease-in-out;
  animation-delay: 6.25s;
  animation-fill-mode: forwards;
  backface-visibility: hidden;
  transition-delay: 6.25s;
  transform-style: preserve-3d;
}

@keyframes flip {
  0% {
    transform: rotateX(0deg);
  }
  20% {
    content: "K";
    transform: rotateX(360deg);
  }
  40% {
    color: #afafaf;
    content: "O";
    transform: rotateX(0deg);
  }
  60% {
    color: #afafaf;
    content: "S";
    transform: rotateX(360deg);
  }
  80% {
    color: #afafaf;
    content: "2";
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}
/* Performance mode - disable animations when high volume detected */
body.performance-mode .departure-board span:before,
body.performance-mode .departure-board span:after {
  animation: none !important;
  transition: none !important;
}

body.performance-mode .letter {
  animation: none !important;
  transition: none !important;
}

body.performance-mode .letter::before,
body.performance-mode .letter::after {
  animation: none !important;
  transition: none !important;
}

/* Performance mode notification */
.performance-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: #f5a623;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-weight: bold;
  font-size: 14px;
  transition: opacity 0.5s ease;
  opacity: 1;
}

body.dark-mode .performance-notification {
  background-color: #e67e22;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Performance mode toggle button */
.performance-toggle {
  position: absolute;
  top: 1.8em;
  right: 4em;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #c9c9c9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.performance-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.performance-toggle.active {
  background: #a16d18;
  border-color: #f5a623;
  color: white;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

body.dark-mode .performance-toggle.active {
  background: #804a1b;
  border-color: #e67e22;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

/* DASHBOARD */
/* User Dashboard */
.loginLayout {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#loginButton {
  padding: 15px 40px;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 14px;
  background-color: #4a5d83;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode #loginButton {
  background-color: #3a3a3a;
  border: 1px solid #666;
  color: #e0e0e0;
}

#loginButton:hover {
  background-color: #3d5073;
}

body.dark-mode #loginButton:hover {
  background-color: #4a4a4a;
}

#logoutButton {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #dc3545;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode #logoutButton {
  background-color: #a94442;
  border: 1px solid #666;
  color: #e0e0e0;
}

#logoutButton:hover {
  background-color: #c82333;
}

body.dark-mode #logoutButton:hover {
  background-color: #b03a3a;
}

#selfAPIKey {
  font-family: "Fira Code", monospace;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 1px;
  padding: 8px 20px;
  border-radius: 10px;
  background-color: #fafafa;
}

body.dark-mode #selfAPIKey {
  background-color: #6b6b6b;
  color: #e0e0e0;
}

#generateAPIKeyButton {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #28a745;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode #generateAPIKeyButton {
  background-color: #218838;
  border: 1px solid #1c7430;
  color: #e0e0e0;
}

#generateAPIKeyButton:hover {
  background-color: #218838;
}

body.dark-mode #generateAPIKeyButton:hover {
  background-color: #1c7430;
}

/* Admin Dashboard */
#dashboardData {
  height: 100px;
  min-width: 330px;
  max-width: none;
  justify-content: center;
}

#apiKeyManagementContainer {
  margin-top: 20px;
  max-width: 100%;
  min-width: 330px;
  height: calc(100vh - 400px);
  min-height: 250px;
  overflow: hidden;
}

#apiKeyListWrapper {
  width: 90%;
  margin-top: 10px;
  margin-bottom: 30px;
  border-radius: 10px;
  background-color: #fafafa;
  border: 2px solid #ccc;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 420px);
  overflow-y: auto;
  overflow-x: hidden;
}

body.dark-mode #apiKeyListWrapper {
  background-color: #6b6b6b;
  border: 2px solid #444;
}

#apiKeyListTable {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: none;
  background: transparent;
}

#apiKeyListTable thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: #ebebeb;
}

body.dark-mode #apiKeyListTable thead {
  background-color: #646464;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

#apiKeyListTable th, #apiKeyListTable td {
  text-align: center;
  border-bottom: 2px solid #ccc;
}

body.dark-mode #apiKeyListTable th, body.dark-mode #apiKeyListTable td {
  color: #b6b6b6;
  border-bottom: 2px solid #444;
}

.revokeButton {
  padding: 8px 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #dc3545;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode .revokeButton {
  background-color: #a94442;
  border: 1px solid #666;
  color: #e0e0e0;
}

.revokeButton:hover {
  background-color: #c82333;
}

body.dark-mode .revokeButton:hover {
  background-color: #b03a3a;
}

.renewButton {
  padding: 8px 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #28a745;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

body.dark-mode .renewButton {
  background-color: #1e7e34;
  border: 1px solid #1c7430;
  color: #e0e0e0;
}

.renewButton:hover {
  background-color: #218838;
}

body.dark-mode .renewButton:hover {
  background-color: #1c7430;
}

.apiValue {
  font-family: "Fira Code", monospace;
  letter-spacing: 1px;
}

.createdValue {
  font-family: "Fira Code", monospace;
  letter-spacing: 1px;
}

#apiKeyListTable tbody tr {
  position: relative; /* needed so indicators can be positioned inside each row */
  overflow: visible;
}

/* visual for grabbed row during swipe */
#apiKeyListTable tbody tr.swipe-dragging {
  position: relative; /* allow z-index */
  cursor: grabbing;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.02);
  z-index: 1500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
}

/* swipe indicator backgrounds (sitting behind the row) */
#apiKeyListTable tbody tr .swipe-indicator {
  position: absolute;
  top: 6px; /* small inset so background peek aligns with rounded row */
  bottom: 6px;
  width: 0;
  height: 50px;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  z-index: 1400; /* below the lifted row (1500) */
  transition: width 120ms linear, opacity 120ms linear;
  opacity: 0;
  white-space: nowrap;
  font-family: "Fira Code", monospace;
  font-size: 14px;
}

/* left indicator for Renew (revealed when swiping right) */
#apiKeyListTable tbody tr .swipe-indicator.left {
  left: 6px;
  justify-content: flex-start;
  background: linear-gradient(90deg, #2ecc71 0%, #28a745 100%);
}

/* right indicator for Revoke (revealed when swiping left) */
#apiKeyListTable tbody tr .swipe-indicator.right {
  right: 6px;
  justify-content: flex-end;
  background: linear-gradient(270deg, #e74c3c 0%, #c82333 100%);
}

/* small icon/text spacing inside indicator */
#apiKeyListTable tbody tr .swipe-indicator span {
  display: inline-block;
  padding: 8px 10px;
}

/* dark-mode tweaks */
body.dark-mode #apiKeyListTable tbody tr .swipe-indicator.left {
  background: linear-gradient(90deg, #27ae60 0%, #1e7e34 100%);
}

body.dark-mode #apiKeyListTable tbody tr .swipe-indicator.right {
  background: linear-gradient(270deg, #c0392b 0%, #b03a3a 100%);
}

/* Media Queries */
@media screen and (min-width: 1100px) {
  #dashboardData {
    width: calc((100% - 60px) / 3);
  }
}
@media screen and (max-width: 1050px) {
  .apiValue {
    font-size: 0px;
  }
}
@media screen and (max-width: 850px) {
  .createdValue {
    font-size: 0px;
  }
}
@media screen and (max-width: 600px) {
  /* hide action buttons on small screens */
  #apiKeyListTable .renewButton,
  #apiKeyListTable .revokeButton {
    display: none;
  }
  .actionCell {
    font-size: 0px;
  }
  /* ensure vertical scrolling still works and allow horizontal gesture detection */
  #apiKeyListTable tbody tr {
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    height: 60px;
  }
}
@media screen and (max-width: 500px) {
  h1 {
    display: none;
  }
  header {
    min-height: 80px;
  }
  .status-container {
    grid-template: none;
  }
  .airport-display {
    max-width: 310px;
    overflow-x: hidden;
  }
  .letter, .letter::before, .letter::after {
    font-size: 16px;
  }
}
@media screen and (max-height: 450px) {
  .sidenav a {
    font-size: 18px;
  }
}

/*# sourceMappingURL=styles.css.map */
