/* Popup Success/Danger Message CSS  */
.popup {
   position: fixed;
   z-index: 9999;
   right: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   justify-content: center;
   align-items: center;
   opacity: 0; 
   visibility: hidden; 
   transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.popup.show {
   opacity: 1; 
   visibility: visible; 
}

.popup-content {
   padding: 17px 15px;
   border-radius: 4px;
   text-align: center;
   width: 373px;
   box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
   transform: scale(0.7);
   transition: transform 0.3s ease;
   position: absolute;
   bottom: 17px;
   right: 30px;
}

.popup-content p {
   margin-bottom: 0 !important;
   color: #fff;
   text-align: start;
}

.popup.show .popup-content {
   transform: scale(1);
}

.close-btn {
   color: #fff;
   float: right;
   font-size: 24px;
   cursor: pointer;
   position: absolute;
   top: 0;
   right: 9px;
}

.progress-bar {
   background-color: #ffcc00 !important;
   height: 4px; 
   width: 100%;
   position: absolute;
   bottom: 0; 
   left: 0;
   transition: width 0.1s linear;
}

.popup-content p svg {
   padding-right: 6px;
}
/* Popup Success/Danger Message CSS  */



/* Spinner CSS */
.loader {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   display: inline-block;
   position: relative;
   border: 3px solid;
   border-color: #faaf40 #343a40 transparent transparent;
   box-sizing: border-box;
   animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
   content: '';
   box-sizing: border-box;
   position: absolute;
   left: 0;
   right: 0;
   top: 0;
   bottom: 0;
   margin: auto;
   border: 3px solid;
   border-color: transparent transparent #faaf40 #343a40;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   box-sizing: border-box;
   animation: rotationBack 0.5s linear infinite;
   transform-origin: center center;
}

.loader::before {
   width: 32px;
   height: 32px;
   border-color: #343a40 #343a40 transparent transparent;
   animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

@keyframes rotationBack {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(-360deg);
   }
}

#loadingSpinner {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 1000;
   display: none;
}

button:disabled {
   background-color: #d3d3d3;
   color: #ffffff;
   cursor: not-allowed;
   opacity: 0.6;
}
/* Spinner CSS */