.lk-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Ensure it's above other content */
}

/* page-topbar */
[data-bs-theme='light'] #page-topbar {
    background-color: #e6d8d8;
}
[data-bs-theme='dark'] #page-topbar {
    /* background-color: #e6d8d8; */
}

/* app-menu */
.navbar-menu #scrollbar {
    padding-bottom: 36px;
}
[data-bs-theme='light'] li.menu-title {
    background-color: #431314;
}
[data-bs-theme='light'] .app-menu .nav-link.menu-link.active {
    background-color: #57181a;
}
[data-bs-theme='light'] .nav-link.menu-link:hover,
[data-bs-theme='light'] .menu-link:not(.collapsed):has(+ div.menu-dropdown.collapse.show),
[data-bs-theme='light'] .app-menu .nav-link:hover,
[data-bs-theme='light'] .app-menu .menu-dropdown .nav-item .active {
    background-color: #752c2e !important;
    color: #ffffff !important;
}

[data-bs-theme='dark'] li.menu-title {
    background-color: #181818;
}
[data-bs-theme='dark'] .app-menu .nav-link.menu-link.active {
    background-color: #752c2e;
}
[data-bs-theme='dark'] .nav-link.menu-link:hover,
[data-bs-theme='dark'] .menu-link:not(.collapsed):has(+ div.menu-dropdown.collapse.show),
[data-bs-theme='dark'] .app-menu .nav-link:hover,
[data-bs-theme='dark'] .app-menu .menu-dropdown .nav-item .active {
    background-color: #854445 !important;
    color: #fff !important;
}
[data-bs-theme='dark'] .nav-link .active {
    font-weight: bold !important;
}

/* carousel */
[data-bs-theme='light'] .carousel-caption {
    background-color: #ffffff88;
    padding: 1.25rem;
}
[data-bs-theme='light'] .carousel-caption h4 {
    color: var(--vz-body-color);
}
[data-bs-theme='dark'] .carousel-caption {
    background-color: #00000088;
    padding: 1.25rem;
}
[data-bs-theme='dark'] .carousel-caption h4 {
    color: var(--vz-body-color);
}

/* select2 */
.select2-dropdown,
.select2-container .select2-selection--single, 
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container .select2-selection--multiple, 
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: var(--vz-input-bg-custom) !important;
}
.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: var(--vz-body-bg) !important;
    color: var(--vz-body-color) !important;
}


/* 404 & 500 page */
#page-404-bg, #page-500-bg {
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#page-404-bg {
    background-image: url(../images/home-error-404-bg.jpg);
    background-position: center;
}

#page-500-bg {
    background-image: url(../images/home-error-500-bg.jpg);
    background-position: center;
}

#page-404-bg .bg-overlay, #page-500-bg .bg-overlay {
    background-color: #111;
    opacity: 0.6;
}

/* Match form-select height */
:root {
  --select-default-height: calc(1.5em + .75rem); /* 36px */
  --select-sm-height: calc(1.5em + .5rem); /* 30px */
  --select-lg-height: calc(1.5em + 1rem); /* 46px */
}

/* Base styling for all Select2 (single + multiple) */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  display: flex !important;
  align-items: center !important;
  height: var(--select-default-height) !important;
  border: 1px solid var(--bs-border-color, #ced4da) !important;
  border-radius: var(--bs-border-radius, .375rem) !important;
  background-color: var(--bs-body-bg, #fff) !important;
  padding: 0 .75rem !important;
  font-size: var(--bs-body-font-size, 1rem) !important;
}

/* Rendered text + placeholder vertical alignment */
.select2-selection__rendered {
  line-height: var(--select-default-height) !important;
  padding-left: 0 !important;
}

/* Placeholder color */
.select2-container--default 
  .select2-selection--single 
  .select2-selection__placeholder {
  color: var(--bs-secondary-color, #6c757d) !important;
  opacity: .8;
}

/* Arrow alignment */
.select2-container--default 
  .select2-selection--single 
  .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
}

/* Multiple select height + tag alignment */
.select2-container--default .select2-selection--multiple {
  height: auto !important; 
  min-height: var(--select-default-height) !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* select-multiple height not complete >>> */

.select2-container--default 
  .select2-selection--multiple 
  .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.select2-container--default 
  .select2-selection--multiple 
  .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    height: calc(var(--select-default-height) - 8px) !important;
    margin: 2px 4px !important;
    line-height: 1 !important;
}

/* Fix remove button height so it does NOT create bottom gap */
.select2-selection__choice__remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 100% !important;          /* match tag height */
    padding: 0 6px !important;        /* no vertical padding */
    margin: 0 4px 0 0 !important;     /* remove bottom gap */
    line-height: 1 !important;        /* stop stretching */

    border: none !important;
    background: transparent !important;
}
/* <<< not complet */

/* Multiple placeholder */
.select2-container--default 
  .select2-selection--multiple 
  .select2-selection__placeholder {
  color: var(--bs-secondary-color, #6c757d) !important;
  margin-top: 2px !important;
}

/* Small size */
.form-select-sm + .select2-container .select2-selection--single {
  height: var(--select-sm-height) !important;
}
.form-select-sm + .select2-container .select2-selection__rendered {
  line-height: var(--select-sm-height) !important;
}

/* Large size */
.form-select-lg + .select2-container .select2-selection--single {
  height: var(--select-lg-height) !important;
}
.form-select-lg + .select2-container .select2-selection__rendered {
  line-height: var(--select-lg-height) !important;
}

/* SUCCESS */
.bootbox-success .modal-header {
    background-color: #d4edda;
}
.bootbox-success .modal-header .modal-title {
    color: #155724;
    font-weight: 600;
    font-size: 1.25rem;
}

/* WARNING */
.bootbox-warning .modal-header {
    background-color: #fff3cd;
}
.bootbox-warning .modal-header .modal-title {
    color: #856404;
    font-weight: 600;
    font-size: 1.25rem;
}

/* ERROR */
.bootbox-error .modal-header {
    background-color: #f8d7da;
}
.bootbox-error .modal-header .modal-title {
    color: #721c24;
    font-weight: 600;
    font-size: 1.25rem;
}



