﻿#app {
  background-repeat: no-repeat;
  background-size: 100% auto;
}

#app .app-wrapper {
  background-color: var(--trimble-color-blue-dark);
  height: 100%;
  width: 100%;
}

.page-loader {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  min-height: 420px;
  height: 100%;
  padding-top: 100px;
}

.page-loader .startup-logo {
  margin-bottom: 20px;
}

.page-loader .app-title {
  font-family: var(--font-family-calibri);
  font-size: 32px;
  margin-bottom: 15px;
  margin-left: 55px;
}

@keyframes load-loop {
  0% {
    background-position: 100%;
  }

  40% {
    background-position: 50%;
  }

  50% {
    background-position: 50%;
  }

  90% {
    background-position: 0%;
  }

  100% {
    background-position: 0%;
  }
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 150px;
}

/* * The main animation wrapper 
         */
.connection-loader {
  position: relative;
  width: 150px;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* * The Cloud Server (Top)
         */
.cloud-server {
  width: 80px;
  height: 50px;
  background: var(--white-shade-4);
  border-radius: 50px;
  position: relative;
  animation: pulse 2s infinite ease-in-out;
}

/* Using pseudo-elements to create the cloud shape from a single div */
.cloud-server::before,
.cloud-server::after {
  content: "";
  position: absolute;
  background: var(--white-shade-4);
  border-radius: 50%;
  z-index: -1;
}

.cloud-server::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 10px;
}

.cloud-server::after {
  width: 60px;
  height: 60px;
  top: -30px;
  right: 5px;
}

/* * The Rugged Mobile Device (Bottom)
         */
.rugged-device {
  width: 80px;
  height: 130px;
  background-color: var(--white-shade-4);
  border: 8px solid var(--trimble-color-blue);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Device "screen" */
.rugged-device::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 20px;
  background-color: #e9ecef;
  border-radius: 4px;
}

/* Device "home button" */
.rugged-device::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background-color: #ced4da;
  border-radius: 50%;
}

/* * The Signal Dots Animation
         */
.signal-dots {
  position: absolute;
  top: 60px; /* Start below the cloud */
  bottom: 140px; /* End above the device */
  width: 100%;
  display: flex;
  flex-direction: column-reverse; /* Animate from bottom up */
  align-items: center;
  justify-content: space-around;
}

.signal-dots span {
  width: 8px;
  height: 8px;
  background-color: var(--dot-color);
  border-radius: 50%;
  opacity: 0;
  animation: sendSignal 1.8s infinite ease-out;
}

/* Stagger the animation of each dot to create the "traveling" effect */
.signal-dots span:nth-child(1) {
  animation-delay: 0s;
}

.signal-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.signal-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

.signal-dots span:nth-child(4) {
  animation-delay: 0.9s;
}

/* * Status Text
         */
.status-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fafafa;
  display: flex;
  align-items: center;
}

.loading-progress-text {
  margin-top: 50px;
  text-align: center;
  font-weight: bold;
  font-family: var(--font-family-roboto);
  color: var(--trimble-color-offwhite);
  /*inset: calc(53vh) 0 auto 0.2rem;*/
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

/* * Keyframe Animations
         */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes sendSignal {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  30%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}
