:root {
  --sidebar-width: 280px;
  --midnight-navy: #001b3a;
  --charcoal: #36454f;
  --astro-blue: #002d62;
  --seashell-white: #f1ece6;
  --amber-gold: #ffb547;
  --imperial-red: #9b111e;
}

.loading-banner {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: #000; /* You can change this to match your brand color */
}

.loading-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/images/mass-and-balance.png");
  /* Replace with your background image */
  background-size: cover;
  background-position: center;
  animation: bgZoomIn 4s ease-in-out 1 forwards;
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.loading-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7)
  ); /* Dark overlay */
  background-size: cover;
  background-position: top;
  transform: scale(2);
  animation: bgZoomOut 4s ease-in-out 1 forwards;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgZoomIn {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

@keyframes bgZoomOut {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2);
  }
}

svg path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 0.1;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: textAnimation 4s ease-in-out 1 forwards;
}

@keyframes textAnimation {
  0% {
    stroke-dashoffset: 50;
  }
  80% {
    fill: transparent;
  }
  100% {
    fill: #fff;
    stroke-dashoffset: 0;
  }
}

/* Animation for content loading */
.main-content {
  opacity: 0;
  transition: opacity 1s ease;
}

.main-content.show {
  opacity: 1;
}
