.t-black {
  color: #000 !important;
}

.t-white {
  color: #ffffff !important;
}

.text-official {
  color: #2d4b8e !important;
}

.text-official2 {
  color: #f7a81b !important;
}

.bg-official {
  background: #fff !important;
}

/* Style for the page loader container */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top of everything */
}

/* Style for the loader icon */
.loader-icon {
  font-size: 3rem; /* Adjust the size as needed */
  animation: spin 1s linear infinite; /* Create a rotation animation */
}

/* Keyframes for the rotation animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Style for the content (visible when loading is complete) */
.content {
  display: none; /* Initially hide the content */
  text-align: center;
  padding: 20px;
}

.navbar .sidenav-toggler-inner .sidenav-toggler-line,
#iconNavbarSidenav .sidenav-toggler-inner .sidenav-toggler-line {
  background: #000 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Modern Sidebar Styles */
.sidenav {
  box-shadow: 0 0 35px 0 rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #ffffff;
}

.sidenav-header {
  padding: 1.5rem;
}

.navbar-vertical .navbar-nav {
  padding: 1rem;
}

.navbar-vertical .navbar-nav > .nav-item {
  margin-bottom: 0.5rem;
}

.navbar-vertical .navbar-nav > .nav-item .nav-link {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-weight: 500;
  color: #344767;
  transition: all 0.2s ease;
}

.navbar-vertical .navbar-nav > .nav-item .nav-link:hover {
  background: rgba(45, 75, 142, 0.05);
  color: #2d4b8e;
}

.navbar-vertical .navbar-nav > .nav-item .nav-link.active {
  background: linear-gradient(310deg, #2d4b8e 0%, #3a5ca8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 5px rgba(45, 75, 142, 0.2);
}

.navbar-vertical .navbar-nav > .nav-item .nav-link .icon {
  background: #f8f9fa;
  border-radius: 8px;
  width: 35px;
  height: 35px;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.navbar-vertical .navbar-nav > .nav-item .nav-link.active .icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.nav-item h6.text-uppercase {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8392ab;
  margin: 1rem 0;
  padding-left: 1rem;
}

/* Submenu Styles */
.collapse .nav {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

.collapse .nav .nav-item .nav-link {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  color: #67748e;
}

.collapse .nav .nav-item .nav-link:hover {
  color: #2d4b8e;
}

.btn-primary,
.btn.bg-gradient-primary {
  color: #fff !important;
}

.btn-primary:hover,
.btn.bg-gradient-primary:hover {
  color: #fff !important;
}

.icon-shape i {
  color: #fff !important;
  opacity: 0.8;
  top: 11px;
  position: relative;
}

.bg-gradient-primary {
  background-image: linear-gradient(
    310deg,
    #2d4b8e 0%,
    #1a3266 100%
  ) !important;
}

.navbar-vertical .navbar-nav > .nav-item .nav-link.active {
  color: #000 !important;
  background-color: #fff !important;
}

/*botton-nav*/

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  width: calc(100% - 16px);
  /* Subtract the left and right padding */
  background-color: #fff;
  overflow-x: scroll;
  white-space: nowrap;
  color: white;
  z-index: 1020;
  scroll-snap-type: x mandatory;
  border-radius: 16px;
  /* Add rounded corners */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  /* Add shadow */
  margin: 8px;
  /* Add distance from the top and bottom */
}

.bottom-nav::-webkit-scrollbar {
  display: none; /* for Chrome, Safari, and Opera */
}

.bottom-nav a {
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  color: #344767;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 25%;
  scroll-snap-align: start;
}

.bottom-nav a span {
  display: none;
}

.bottom-nav a:hover {
  background: linear-gradient(to right, #2d4b8e, #f7a81b) !important;
  color: #fff;
}

.bottom-nav a.active {
  background: linear-gradient(to right, #2d4b8e, #f7a81b) !important;
  color: #fff;
}

/* Show the bottom nav on small screens */
@media screen and (max-width: 600px) {
  .bottom-nav {
    display: flex;
  }

  .bottom-nav a span {
    display: block;
  }
}

.modal-body-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.slide-right-to-left-enter {
  animation: slideRightToLeftEnter 0.5s forwards;
}

.slide-right-to-left-exit {
  animation: slideRightToLeftExit 0.5s forwards;
}

@keyframes slideRightToLeftEnter {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRightToLeftExit {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}
