/* splash screen */
body #splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary);
  color: #F9FAFB;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 99999;  
  opacity: 0;  
  transition: opacity 400ms ease-out;  
}

body #splash-screen img {
  width: 120px;
  max-width: 120px;
}

body #splash-screen .spinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  width: 56px;
}

body #splash-screen .spinner > div {
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: bouncedelay 1s infinite ease-in-out both;
  animation: bouncedelay 1s infinite ease-in-out both;
}

body #splash-screen .spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

body #splash-screen .spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0)
  }
  40% {
    -webkit-transform: scale(1.0)
  }
}

@keyframes bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

body.splashscreen-active #splash-screen {
  opacity: 1;
}
/* splash screen */

/* preloader */
body #preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 99999;  
  opacity: 0;  
  transition: opacity 400ms ease-out; 
}

body #preloader > .status {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
}

body.preloader-active #preloader {
  opacity: 1;
}
/* preloader */

/* notify animation */
.notify:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 6px;
  right: 6px;
  border-radius: 50%;  
  background: var(--color-danger);
  animation: notify-pulse 1.5s infinite;
  -webkit-animation: notify-pulse 1.5s infinite;  
  -moz-animation: notify-pulse 1.5s infinite;
}

@-webkit-keyframes notify-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(234, 84, 85, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}

@keyframes notify-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(234, 84, 85, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}
/* notify animation */

/* workflow current */
.hori-timeline .item.event-list.event-pending > i::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-warning);
  animation: flow-pulse 1.5s infinite;
  -webkit-animation: flow-pulse 1.5s infinite;
  -moz-animation: flow-pulse 1.5s infinite;
  z-index: 2;
}

@-webkit-keyframes flow-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(245, 158, 11, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}

@keyframes flow-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(245, 158, 11, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}
/* workflow current */

/* progress animation */
.page.progress-bar,
.rightbar.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 3px;
  background-color: var(--color-primary-soft);
  width: 100%;
  overflow: hidden;
  opacity: 0;
  -webkit-transition: opacity .25s linear;
  transition: opacity .25s linear;    
}

body.page-progress-bar-active .page.progress-bar {
  opacity: 1;
}

body.rightbar-progress-bar-active .rightbar.progress-bar {
  opacity: 1;
}

body.modalwindow-progress-bar-active .modalwindow.progress-bar {
  opacity: 1;
}

.progress-bar-value {
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  animation: indeterminateAnimation 1s infinite linear;
  transform-origin: 0% 50%;
}

@keyframes indeterminateAnimation {
  0% {
    transform:  translateX(0) scaleX(0);
  }
  40% {
    transform:  translateX(0) scaleX(0.4);
  }
  100% {
    transform:  translateX(100%) scaleX(0.5);
  }
}
/* progress animation */

/* spinner border */
.spinner-border {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: -0.125em;
  border: 0.175em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: .75s linear infinite spinner-border;
  animation: .75s linear infinite spinner-border;
}

.spinner-border-lg {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.3em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner-border .75s linear infinite;
  animation: spinner-border .75s linear infinite;
}
/* spinner border */