@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --srm-secondary: #00639a;
  --srm-basic: #0fd46c;
  --srm-white: #ffffff;
  --srm-danger: #f55271;
  --srm-success: #59e16b;
  --srm-silver: silver;
  --srm-border1: #ccc;
  --srm-border2: #eee;
  --srm-border3: #ddd;
  --srm-gray: gray;
  --srm-folder: #8a9097;

  --transparent: transparent;

  --brand-color: #bf9644;
  --brand-deep-color: #855b27;
  --brand-light-color: #f5f5f5;
  --brand-annex-color: #1b2c35;
  --brand-secondary-color: #284352;
  --brand-contrast-color: #ffffff;
  --brand-info-color: #17a2b8;
}

/* FOR THE LOADER INSIDE THE PAGES */
.loader-wrapper {
  position: relative;
  height: 100%;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20% !important;
}

.orbit-center {
  position: relative;
  width: 60px;
  height: 60px;
}

.orbit {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -6px;
}

.red {
  background: var(--srm-danger);
  animation: orbit-red 1.2s linear infinite;
}

.green {
  background: var(--srm-basic);
  animation: orbit-green 1.2s linear infinite;
}

.blue {
  background: var(--srm-secondary);
  animation: orbit-blue 1.2s linear infinite;
}

/* Independent orbit paths */
@keyframes orbit-red {
  0% {
    transform: rotate(0deg) translateX(20px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(20px) rotate(-360deg);
  }
}

@keyframes orbit-green {
  0% {
    transform: rotate(120deg) translateX(20px) rotate(0deg);
  }
  100% {
    transform: rotate(480deg) translateX(20px) rotate(-360deg);
  }
}

@keyframes orbit-blue {
  0% {
    transform: rotate(240deg) translateX(20px) rotate(0deg);
  }
  100% {
    transform: rotate(600deg) translateX(20px) rotate(-360deg);
  }
}

/*square loader animations*/
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
}

.loader:before,
.loader:after {
  content: "";
  grid-area: 1/1;
  border-radius: 50%;
  -webkit-mask: repeating-linear-gradient(#000 0 5px, #0000 0 10px);
  mask: repeating-linear-gradient(#000 0 5px, #0000 0 10px);
  animation: l35 1.5s infinite;
}

.loader:before {
  background: #f03355; /* Red */
}

.loader:after {
  background: #3498db; /* Blue */
  -webkit-mask: repeating-linear-gradient(#0000 0 5px, #000 0 10px);
  mask: repeating-linear-gradient(#0000 0 5px, #000 0 10px);
  --s: -1;
}

@keyframes l35 {
  0%,
  10% {
    transform: translate(0) rotate(0);
  }
  35% {
    transform: translate(calc(var(--s, 1) * 50%)) rotate(0);
  }
  66% {
    transform: translate(calc(var(--s, 1) * 50%))
      rotate(calc(var(--s, 1) * 180deg));
  }
  90%,
  100% {
    transform: translate(0) rotate(calc(var(--s, 1) * 180deg));
  }
}

/* PRELOADER MAIN  */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader {
  position: relative;
  width: 80px;
  height: 80px;
}

.ripple {
  position: absolute;
  border: 4px solid transparent;
  border-top: 4px solid var(--srm-basic);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: ripple 1.8s infinite ease-in-out;
}

.ripple:nth-child(2) {
  border-top-color: var(--srm-secondary);
  animation-delay: 0.6s;
}

.ripple:nth-child(3) {
  border-top-color: var(--srm-danger);
  animation-delay: 0.9s;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.spin {
  animation: spin 1s linear infinite;
}

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

.app-sidebar-wrapper {
  height: 100% !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
}

.opacity-50 {
  opacity: 0.5;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-1 {
  animation: fadeUp 0.4s ease both 0.04s;
}
.anim-2 {
  animation: fadeUp 0.4s ease both 0.08s;
}
.anim-3 {
  animation: fadeUp 0.4s ease both 0.12s;
}
.profile-tab {
  cursor: pointer;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #a1a5b7;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.profile-tab:hover {
  color: #181c32;
}
.profile-tab.active {
  color: #009ef7;
  border-bottom-color: #009ef7;
}
.perm-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07) !important;
  transition: all 0.25s;
}

/* PRELOADERS  ================================================ */

/* LOADER 2 - Skeleton Loader */
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-circle {
  border-radius: 50% !important;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* LOADER 3 - Pulse Loader */
.pulse-loader {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pulse-loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-color) 0%,
    var(--brand-deep-color) 100%
  );
  animation: pulse-wave 1.4s ease-in-out infinite;
}

.pulse-loader span:nth-child(1) {
  animation-delay: 0s;
}
.pulse-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.pulse-loader span:nth-child(3) {
  animation-delay: 0.4s;
}
.pulse-loader span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes pulse-wave {
  0%,
  60%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  30% {
    transform: scale(2);
    opacity: 1;
  }
}

/* LOADER 4 - Cards Loader */
.cards-loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.card-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--brand-color);
  border-radius: 50%;
  animation: rotate-card 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.card-loader:nth-child(1) {
  animation-delay: 0s;
  border-top-color: var(--brand-color);
}

.card-loader:nth-child(2) {
  animation-delay: 0.15s;
  border-top-color: var(--brand-deep-color);
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
}

.card-loader:nth-child(3) {
  animation-delay: 0.3s;
  border-top-color: var(--brand-annex-color);
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
}

@keyframes rotate-card {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* LOADER 5 - Data Loader */
.data-loader {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 40px;
}

.loader-bar {
  width: 8px;
  background: linear-gradient(
    to top,
    var(--brand-color),
    var(--brand-deep-color)
  );
  border-radius: 4px 4px 0 0;
  animation: data-wave 1.2s ease-in-out infinite;
}

.loader-bar:nth-child(1) {
  animation-delay: 0s;
  height: 10px;
}
.loader-bar:nth-child(2) {
  animation-delay: 0.1s;
  height: 20px;
}
.loader-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 30px;
}
.loader-bar:nth-child(4) {
  animation-delay: 0.3s;
  height: 20px;
}
.loader-bar:nth-child(5) {
  animation-delay: 0.4s;
  height: 10px;
}

@keyframes data-wave {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(2);
  }
}

/* LOADER 6 - Modern Spinner */
.modern-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin-ring 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--brand-color);
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-bottom-color: var(--brand-annex-color);
  width: 70%;
  height: 70%;
  animation-delay: 0.2s;
  animation-direction: reverse;
}

.spinner-core {
  position: relative;
  color: var(--brand-color);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.loading-dots {
  display: inline-flex;
  font-size: 24px;
  line-height: 1;
  color: var(--brand-annex-color);
}

.loading-dots span {
  animation: dot-fade 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-fade {
  0%,
  60%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}

.notification-card:hover {
  transform: translateX(4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.hover-elevate-up:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.animate__pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.cursor-pointer {
  cursor: pointer;
}




/* PAYMENT COMPONENT CSS ======================================================================*/
/* ================================
   MPay Payment Modal Styles
   ================================ */

/* Modal Container */
.mpay-backdrop {
  z-index: 1050;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Modal Content */
.mpay-modal {
  border-radius: 0.5rem;
  border: none;
  z-index: 1051;
  max-width: 750px;
  min-width: 550px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.mpay-body {
  background: #fff;
  display: flex;
  flex-direction: row-reverse;
  overflow: "hidden";
}

/* Side Tabs (Right side on desktop) */
.mpay-tabs {
  display: flex;
  flex-direction: column;
  justify-self: "end";
  min-width: 190px;
  background-color: #f4f4f4;
}

.mpay-tabs-header {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.68rem;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.mpay-tab-text {
  font-size: 0.68rem;
}

.mpay-tab {
  background: none;
  border: none;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #212529;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 2px solid transparent;
  cursor: pointer;
}

.mpay-tab.active {
  background-color: transparent;
  border: "none";
  color: var(--brand-deep-color);
  font-weight: 600;
  border-left-color: var(--brand-deep-color);
}

/* Form Content Area (Left side on desktop) */
.mpay-content {
  flex-grow: 1;
  padding: 1.5rem;
  min-height: 450px;
}

.mpay-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.mpay-header-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mpay-email {
  font-weight: 500;
  color: #495057;
  font-size: 0.68rem;
}

.mpay-pay-amount {
  font-weight: 900;
  color: var(--brand-deep-color);
  font-size: 1rem;
}

/* Custom Close Button */
.mpay-close-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #6c757d;
}

.mpay-close-icon-btn:hover {
  color: #212529;
}

.mpay-form-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mpay-confirm {
  background-color: var(--brand-deep-color);
  padding: 0.6rem;
  border: none;
  font-weight: 600;
  color: white;
  transition: transform 0.2s ease;
}

.mpay-confirm:hover {
  transform: scale(1.02);
  background-color: var(--brand-annex-color);
  color: white;
}

.mpay-confirm:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.mpay-saved-card-link {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
}

.mpay-powered-by {
  font-size: 0.8rem;
  font-weight: 500;
  color: #adb5bd;
  text-align: center;
  position: absolute;
  bottom: -2rem;
  width: 100%;
  z-index: 1052;
}

.mpay-brand {
  font-size: 0.7rem;
  font-weight: "900";
  color: var(--brand-deep-color);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  bottom: 2rem;
  right: -12rem;
  width: 100%;
  z-index: 1052;
}

.modal-backdrop.mpay-overlay {
  background-color: black;
  opacity: 0.7;
  z-index: 1045;
  position: fixed;
  inset: 0;
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .mpay-modal {
    min-width: unset;
  }
}

@media (max-width: 576px) {
  .mpay-body {
    flex-direction: column-reverse;
    padding: 1rem;
  }

  .mpay-content {
    min-height: unset;
    padding: 1rem;
  }

  .mpay-tabs {
    flex-direction: row;
    justify-content: space-around;
    min-width: unset;
    padding-top: 1rem;
    margin-bottom: 1rem;
  }

  .mpay-tabs-header {
    display: none;
  }

  .mpay-tab {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.25rem;
    border-left: none;
    border-bottom: 1px solid transparent;
  }

  .mpay-tab.active {
    background-color: transparent;
    color: var(--brand-deep-color);
    border-bottom-color: var(--brand-deep-color);
  }

  .mpay-tab-text {
    display: none;
  }

  .mpay-header {
    display: none;
  }

  .mpay-confirm {
    margin-top: 1rem;
  }
}
