/* Define global variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --font-family: 'Arial', sans-serif;
    --font-size: 16px;
    --border-radius: 8px;
    --spacing: 16px;
}

/* CSS Reset */
html {
  box-sizing: border-box;
  font-size: 100%;
  line-height: 1.5;
  height: 100%;

}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background-color: #f1f1f1;
  line-height: 1.6;
  max-width: 100%;
  height: 100%;
  position: relative;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  margin: 0;
  border-radius: 6px;
  background-color: rgba(175, 184, 193, 0.2);
  color: #333;
  white-space: pre-wrap;
}

pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.95em;
  padding: 1em;
  margin: 1.5em 0;
  overflow: auto;
  background-color: #2d2d2d;
  color: #f8f8f2;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

pre code {
  background-color: transparent;
  color: inherit; 
  padding: 0;
  border-radius: 0;
  font-size: 1em;
  margin: 0;
}

em {
  font-style: italic;
  color: #555;
  font-size: 12px;
}

.hide {
  display: none !important;
}

.app-linear-loader {
    width: 0;
    height: 4.8px;
    display: none;
    position: relative;
    background: #dcdede;
    box-shadow: 4px 4px 3px 1px rgb(242 2 2 / 37%);
    box-sizing: border-box;
    animation: animFw 8s linear infinite;
}
.app-linear-loader.active {
    display: inline-block;

}
.app-linear-loader::after,
.app-linear-loader::before {
    content: '';
    width: 10px;
    height: 1px;
    background: #680202;
    position: absolute;
    top: 9px;
    right: -2px;
    opacity: 0;
    transform: rotate(-45deg) translateX(0px);
    box-sizing: border-box;
    animation: coli1 0.3s linear infinite;
}
.app-linear-loader::before {
    top: -4px;
    transform: rotate(45deg);
    animation: coli2 0.3s linear infinite;
}
  
@keyframes animFw {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes coli1 {
    0% {
        transform: rotate(-45deg) translateX(0px);
        opacity: 0.7;
        }
    100% {
        transform: rotate(-45deg) translateX(-45px);
        opacity: 0;
    }
}

@keyframes coli2 {
    0% {
        transform: rotate(45deg) translateX(0px);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(-45px);
        opacity: 0.7;
    }
}

.spike_roll {
    position: relative;
    width: 85px;
    height: 50px;
    background-repeat: no-repeat;
    background-image: linear-gradient(#000000 50px, transparent 0),
                      linear-gradient(#000000 50px, transparent 0),
                      linear-gradient(#000000 50px, transparent 0),
                      linear-gradient(#000000 50px, transparent 0),
                      linear-gradient(#000000 50px, transparent 0),
                      linear-gradient(#000000 50px, transparent 0);
    background-position: 0px center, 15px center, 30px center, 45px center, 60px center, 75px center, 90px center;
    animation: rikSpikeRoll 0.65s linear infinite alternate;
}
@keyframes rikSpikeRoll {
  0% { background-size: 10px 3px;}
  16% { background-size: 10px 50px, 10px 3px, 10px 3px, 10px 3px, 10px 3px, 10px 3px}
  33% { background-size: 10px 30px, 10px 50px, 10px 3px, 10px 3px, 10px 3px, 10px 3px}
  50% { background-size: 10px 10px, 10px 30px, 10px 50px, 10px 3px, 10px 3px, 10px 3px}
  66% { background-size: 10px 3px, 10px 10px, 10px 30px, 10px 50px, 10px 3px, 10px 3px}
  83% { background-size: 10px 3px, 10px 3px,  10px 10px, 10px 30px, 10px 50px, 10px 3px}
  100% { background-size: 10px 3px, 10px 3px, 10px 3px,  10px 10px, 10px 30px, 10px 50px}
}

.repeat-spinner {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
    border-width: 3px 2px 3px 2px;
    border-style: solid dotted solid dotted;
    border-color: #de3500 rgba(255, 255, 255,0.3) #fff rgba(151, 107, 93, 0.3);
    border-radius: 50%;
    box-sizing: border-box;
    animation: .3s rotate linear infinite;
}
.repeat-spinner:before , .repeat-spinner:after{
    content: '';
    top: 0;
    left: 0;
    position: absolute;
    border: 10px solid transparent;
    border-bottom-color:#fff;
    transform: translate(-10px, 19px) rotate(-35deg);
    }
    .repeat-spinner:after {
    border-color: #de3500 #0000 #0000 #0000 ;
    transform: translate(32px, 3px) rotate(-35deg);
    }
    @keyframes rotate {
    100%{    transform: rotate(360deg)}
}

.app-spinner-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%);
    display: none;
}
.app-spinner-container.active {
    display: block;
}

.rotation {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    background: linear-gradient(0deg, rgba(255, 61, 0, 0.2) 33%, #ff3d00 100%);
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.rotation::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
}
  @keyframes rotation {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg)}
}

.spin-rotate {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #fff;
}
.spin-rotate:before,
.spin-rotate:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spinRotate linear infinite;
}
.spin-rotate:after {
    color: #FF3D00;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spinRotate {
    0%,
    100% {
      box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
      box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
      box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
      box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
      box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
      box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
      box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
      box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

#userAccountSyncBtn {
    animation: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#userAccountSyncBtn.active {
    animation: scanSpin 2s linear infinite;
}

@keyframes scanSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.text-fill-loader{
    display: inline-block;
    text-align: center;
    line-height: 46px;
    text-align: center;
    position: relative;
    padding: 0 18px;
    font-size: 28px;
    font-family: 'Aloe', serif;
    color: #4357F1;
    }
    .text-fill-loader:before, .text-fill-loader:after {
      content: "";
      display: block;
      width: 15px;
      height: 15px;
      background: currentColor;
      position: absolute;
      animation: load .7s infinite alternate ease-in-out;
      top: 0;
    }
    .text-fill-loader:after {
      top: auto;
      bottom: 0;
    }
  @keyframes load {
    0% {
      left: 0;
      height: 43px;
      width: 15px;
      transform: translateX(0)
    }
    50% {
      height: 10px;
      width: 40px
    }
    100% {
      left: 100%;
      height: 43px;
      width: 15px;
      transform: translateX(-100%)
    }
  }

.tr-skeleton-content .td-skeleton-content-text {
  height: 45px;
  background: linear-gradient(
      100deg,
      #f0f0f0 30%,
      #dcdcde 50%,
      #f1f1f1 70%
  );
  background-size: 200% 100%;
  animation: skeleton-loading .8s infinite ease-in-out;
  border-radius: 4px;
}
.skeleton-content {
  height: 50px;
  background-color: #0000;
}
.skeleton-content .skeleton-content-text {
  height: 45px;
  background: linear-gradient(
      100deg,
      #f0f0f0 30%,
      #dcdcde 50%,
      #f1f1f1 70%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite ease-in-out;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
      background-position: 200% 0;
  }
  100% {
      background-position: -200% 0;
  }
}

.debit-card {
  background: var(--card-bg, #1e1e2f);
  color: #fff;
  border-radius: 1rem;
  padding: 1.2rem;
  width: 320px;
  height: 200px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Arial', sans-serif;
}

.card-chip {
  font-size: 2rem;
  text-align: right;
}

.card-number {
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-align: center;
  margin: 1rem 0;
}

.card-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.card-details label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.2rem;
}
