/* 
*= require libs/prism-coy.min
*= require libs/filepond.min
*= require libs/filepond-plugin-image-preview.min
*= require libs/filepond-plugin-image-edit.min
*= require libs/dropzone
*= require libs/simplebar.min
*= require libs/flatpickr
*= require libs/flatpickr.min
*= require libs/nano.min
*= require libs/choices.min
*= require libs/autoComplete
*= require libs/waves.min
*/

.choices {
  margin-bottom: 0px !important;
}

body ::-webkit-scrollbar {
  width: 4px !important;
  border-radius: 15px !important;
}

.fc-timegrid-slot {
  border: 1px solid rgb(var(--default-border)) !important;
}
/* Border for each day column */
.fc-timegrid-col {
  border-right: 1px solid rgb(var(--default-border)) !important;
}

.bg-blue-gradient-to-bottom {
  background: linear-gradient(to bottom, #007aff, #a8dfff) !important;
}

.bg-blue-gradient-to-right {
  background: linear-gradient(to right, #007aff, #a8dfff) !important;
}
.residence-card-under-4-months {
  background-color: #fff1b4 !important;
  color: #cf5300 !important;
}
.residence-card-over-4-months {
  background-color: #7dcfff !important;
  color: #00428b !important;
}
.residence-card-expired {
  color: #e21010 !important;
  background-color: #ffcfcf !important;
}

.residence-card-unexpired {
  color: #007aff !important;
  background-color: #b5d9ff !important;
}

.residence-card-waiting-result {
  background-color: #acffb7 !important;
  color: #148f2f !important;
}

.custom-modal .ti-modal-body {
  overflow-y: auto;
}

.fc .fc-scrollgrid-section-sticky > * {
  background: rgb(var(--body-bg)) !important;
}
:where(html[data-menu-styles='light'], html:not([data-menu-styles]))
  .main-sidebar {
  border-width: 0px;
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
  --tw-gradient-from: #007aff;
  --tw-gradient-to: #a8dfff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

:where(html[data-menu-styles='light'], html:not([data-menu-styles]))
  .app-header {
  border-width: 0px;
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #007aff;
  --tw-gradient-to: #a8dfff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

[data-menu-styles='light'] .app-sidebar .main-sidebar-header {
  background-color: transparent !important;
}

@media screen and (min-width: 575.98px) {
  [data-toggled='icon-overlay-close'] .custom-breadcrumb {
    left: 135px !important;
  }

  :where(html:not([data-toggled='icon-overlay-close'])) .custom-breadcrumb {
    left: 295px !important;
  }
}

@media screen and (max-width: 767.98px) {
  .app-sidebar .main-sidebar-header {
    display: none;
  }
  .app-sidebar .main-sidebar-header .header-logo .desktop-logo {
    display: none;
  }
}

:where(html[data-menu-styles='light'], html:not([data-menu-styles]))
  .app-sidebar
  .side-menu__item:hover
  .side-menu__icon {
  fill: black !important;
}

[data-menu-styles='dark'] .app-sidebar .side-menu__item:hover .side-menu__icon {
  fill: white !important;
}
:where(html[data-menu-styles='light'], html:not([data-menu-styles]))
  .app-sidebar
  .side-menu__item.active
  .side-menu__icon {
  color: black !important;
}
.wizard-tab .wizard-nav.dots .wizard-step:before {
  background-color: red !important;
}

.wizard-tab .wizard-nav.dots .wizard-step.active:is(.dark *)::before {
  background-color: white !important;
}

.wizard-tab .wizard-nav.dots .wizard-step:is(.dark *)::after {
  background-color: white !important;
}

/* css for pricing card */
/* ===== Pricing Card ===== */
.pricing-card {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    rgba(60, 80, 224, 0.15),
    rgba(0, 122, 255, 0.15),
    rgba(60, 80, 224, 0.15)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Hover card */
.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(60, 80, 224, 0.2);
  border-color: #3c50e0;
}

.pricing-card:hover::before {
  opacity: 1;
}

/* ===== Price animation ===== */
.pricing-price {
  transition: transform 0.35s ease;
}

.pricing-card:hover .pricing-price {
  transform: scale(1.08);
}

/* ===== Feature animation ===== */
.pricing-feature {
  opacity: 0;
  transform: translateY(8px);
  animation: featureFadeIn 0.5s ease forwards;
}

.pricing-feature:nth-child(1) {
  animation-delay: 0.1s;
}
.pricing-feature:nth-child(2) {
  animation-delay: 0.2s;
}
.pricing-feature:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes featureFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Button animation ===== */
.pricing-button {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.pricing-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.4);
}

.pricing-button:hover::after {
  left: 120%;
}

.pricing-button:active {
  transform: scale(0.97);
}

.pricing-card--active {
  border-color: #3c50e0;
  box-shadow: 0 25px 50px rgba(60, 80, 224, 0.25);
}

.pricing-card--active .pricing-price {
  animation: pricePulse 1.8s infinite;
}

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

@media (min-width: 768px) {
  /* ===============================
   Card animation on load
================================ */
  .plan-confirm-card {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: cardEnter 0.7s ease-out forwards;

    position: relative;
    background: #fff;

    /* 3D depth */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.1),
      0 30px 60px rgba(0, 0, 0, 0.08);

    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);

    /* subtle light */
    overflow: hidden;
  }

  @keyframes cardEnter {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* ===============================
   Rows reveal animation
================================ */
  .plan-row {
    opacity: 0;
    transform: translateX(-12px);
    animation: rowFadeIn 0.5s ease forwards;
  }

  .plan-row:nth-of-type(1) {
    animation-delay: 0.15s;
  }
  .plan-row:nth-of-type(2) {
    animation-delay: 0.25s;
  }
  .plan-row:nth-of-type(3) {
    animation-delay: 0.35s;
  }
  .plan-row:nth-of-type(4) {
    animation-delay: 0.45s;
  }

  @keyframes rowFadeIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* ===============================
   Total price emphasis
================================ */
  .plan-total {
    animation: totalPulse 1.8s ease-in-out infinite;
  }

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

  /* ===============================
   Stripe button shine (auto)
================================ */
  .stripe-button {
    position: relative;
    overflow: hidden;
  }

  .stripe-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 130%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.45),
      transparent
    );
    animation: buttonShine 2.8s ease-in-out infinite;
  }

  @keyframes buttonShine {
    0% {
      left: -130%;
    }
    40% {
      left: 130%;
    }
    100% {
      left: 130%;
    }
  }

  /* ===============================
   Button hover feedback
================================ */
  .stripe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 122, 255, 0.4);
  }

  .stripe-button:active {
    transform: scale(0.97);
  }
}
.custom-filepond-avatar .filepond--panel-root {
  border: none !important;
  background: transparent !important;
}

.custom-filepond-avatar.filepond--root .filepond--drop-label {
  min-height: 199px !important;
}

[data-menu-styles='light'] .app-sidebar .main-sidebar-header {
  background-color: #007aff !important;
}

html[data-toggled='icon-overlay-close']:not([data-icon-overlay]) .badge-custom {
  top: 25% !important;
}

@media (max-width: 576px) {
  .notification-badge {
    inset-inline-start: 1.16rem;
    top: 11px;
  }
}

.fc-theme-standard td:is(.dark *),
.fc-theme-standard th:is(.dark *) {
  border-color: rgb(
    var(--default-border) / 0.1
  ) !important; /* 10% transparent border color */
}
.fc-theme-standard .fc-scrollgrid:is(.dark *) {
  border-color: rgb(
    var(--default-border) / 0.1
  ) !important; /* 10% transparent border color */
}
