@tailwind base;
@tailwind components;
@tailwind utilities;

.loader-placeholder-bg,
.loader-placeholder-bg-fadeout {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  background: #fff;
  transition: all 0.5s ease;
}
.loader-placeholder-bg {
  opacity: 1;
}
.loader-placeholder-bg-fadeout {
  opacity: 0;
}

.loader-placeholder-col {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.loader-placeholder {
  position: relative;
  display: block;
  right: 0;
  left: 0;
  bottom: 0;
  top: 0;
  z-index: 90;
  opacity: 1;
  margin: 10px;
  & > *:not(.loader-animation) {
    visibility: hidden !important;
    // display: none !important;
    // display:none!important;
  }

  .loader-animation {
    position: absolute;
    z-index: 101;
    width: 100%;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    .loader-circle,
    .loader-text {
      border-radius: 3px;
    }
    &.loader-line {
      min-height: 10px;
    }
    &.loader-circle,
    &.loader-circle-xs,
    &.loader-circle-xxs {
      position: absolute;
      border-radius: 50%;
      margin: auto;
    }
    &.loader-circle {
      width: 100px;
      height: 100px;
    }
    &.loader-circle-xs {
      width: 70px;
      height: 70px;
      margin: 0;
    }
    &.loader-circle-xxs {
      width: 32px;
      height: 32px;
      margin: 0;
    }
    &.loader-text,
    &.loader-text-xxs {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      right: 0;
      border-radius: 6px;
      margin: auto;
    }
    &.loader-text-xxs {
      min-height: 25px;
      margin: 0.1rem 0;
      min-width: 60px;
    }
    &.loader-text {
      min-width: 80px;
      min-height: 30px;
      &.loader-text-block {
        min-height: 40px;
      }
    }
    @extend .animated-background;
  }
  .loader-text-lines {
    background: none !important;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-row-gap: 4px;
    .loader-text-line {
      position: relative !important;
      height: 30px;
      border-radius: 6px;
      left: 0;
      right: 0;
      @extend .animated-background;
    }
  }
}
// Animation
@keyframes placeHolderShimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.animated-background {
  animation-duration: 1.25s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeHolderShimmer;
  animation-timing-function: linear;
  background: #f5f5f5;
  background: linear-gradient(to right, #f5f5f5 8%, #e0e0e0 18%, #f5f5f5 33%);
  background-size: 1025px 200px;
  height: 100%;
  position: absolute;
}

.dialog-footer {
  width: 100%;
  padding: 32px;
  z-index: 101;
  position: fixed;
  background: #fff;
  height: 146px;
  border-top-left-radius: 8xp;
  border-top-right-radius: 8px;
  box-shadow: 0px -4px 16px rgba(103, 92, 229, 0.2);
  button.submit-paxs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 16px;
    width: 311px;
    height: 60px;
    border: 4px solid #3c30bf;
    color: #3c30bf;
    border-radius: 8px;
    filter: drop-shadow(0px 4px 7px rgba(0, 0, 0, 0.12));
    flex: none;
    align-self: stretch;
    flex-grow: 1;
    font-size: 20px;
  }
}
@media (min-width: 1280px) {
  .xl\:ml-4 {
    margin-left: 1rem;
  }
}