/* public/assets/custom/css/commonStyle.css */
/* ========================================================================
=                            BASIC SIZES                                  =
======================================================================== */

.py-4px {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.px-4px {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.pt-4px {
  padding-top: 4px !important;
}

.pb-4px {
  padding-bottom: 4px !important;
}

.ps-4px {
  padding-right: 4px !important;
}

.pe-4px {
  padding-left: 4px !important;
}

.my-4px {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.mx-4px {
  margin-left: 4px !important;
  margin-right: 4px !important;
}

.mt-4px {
  margin-top: 4px !important;
}

.mb-4px {
  margin-bottom: 4px !important;
}

.ms-4px {
  margin-right: 4px !important;
}

.me-4px {
  margin-left: 4px !important;
}

.fs-10px {
  font-size: 10px !important;
}

.fs-12px {
  font-size: 12px !important;
}

.fs-14px {
  font-size: 14px !important;
}

.fs-16px {
  font-size: 16px !important;
}

.fs-18px {
  font-size: 18px !important;
}

.text-sm {
  font-size: 0.9rem !important;
}

.text-xsm {
  font-size: 0.7rem !important;
}

.text-xxsm {
  font-size: 0.5rem !important;
}

/* ========================================================================
=                            SIDEBAR COLORS                               =
======================================================================== */

/* Original sidebarbgcolor (mobile specific) - kept for mobile offcanvas background */
.sidebarbgcolor {
  background-color: none; /* This will be overridden by custom_sidebar.css on desktop */
}

@media (max-width: 991px) {
  .sidebarbgcolor {
    /* This specific background is kept for mobile offcanvas transparency/blur effect */
    background-color: #4c1aaa88 !important;
    backdrop-filter: blur(
      5px
    ); /* Adding blur for mobile offcanvas as per common concept */
  }
}

/* ========================================================================
=                            LOADING ANIMATION                            =
======================================================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: none; /* Hidden by default */
  z-index: 9999; /* Ensure it's on top of other elements */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}

.loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white; /* Ensure loading text is visible */
}

/* Loader with animation (kept as is) */
.loader {
  width: 300px;
  height: 62px;
  border-radius: 50px;
  color: #cb3c5d;
  border: 5px solid;
  position: relative;
  margin: 20px auto; /* Center the loader */
}

.loader::before {
  content: "";
  position: absolute;
  margin: 5px;
  inset: 0 100% 0 0;
  border-radius: inherit;
  background: currentColor;
  animation: l6 0.5s infinite;
}

@keyframes l6 {
  100% {
    inset: 0;
  }
}

/* ========================================================================
=                          COUNTDOWN CLOCK                                =
======================================================================== */
#countdownClockContainer {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1035;
  transition: right 0.3s ease-in-out, top 0.3s ease-in-out;
  width: auto !important;
  min-width: 0;
}

@media (max-width: 991.98px) {
  #countdownClockContainer {
    top: 80px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  #countdownClockContainer {
    top: 80px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  #countdownClockContainer {
    top: 70px;
    right: 5px;
  }
}
