.jvm-zoom-btn.jvm-zoomin,
.jvm-zoom-btn.jvm-zoomout {
  top: 10px;
  background: #d1d5db;
  color: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
}

.slick-dots {
  display: flex !important;
}

.fc-toolbar-title {
  font-size: 24px !important;
  font-weight: 600;
}

.fc-button {
  border-color: var(--primary-600) !important;
  background: #fff !important;
  color: var(--primary-600) !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 80px !important;
}

.fc-button:hover {
  background-color: var(--primary-50) !important;
}

.fc-button-active {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:hover {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:focus,
.fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: none !important;
}

.fc-toolbar-chunk {
  display: flex !important;
}

.fc .fc-button-primary:focus {
  box-shadow: none !important;
}

.fc-h-event {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-h-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-v-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-daygrid-day-number {
  transition: background-color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 50%;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
  background-color: var(--primary-100) !important;
  color: var(--primary-600) !important;
  transition: background-color 0.2s;
}

.slider-progress .active {
  transition: all 0.3s linear;
}

.slick-list {
  margin: 0 -7px;
}

.slick-slide>div {
  padding: 0 10px;
}

.center-gap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-grid {
  display: inline-grid;
}

.image-upload__boxInner.custom {
  display: flex;
  justify-content: center;
  align-items: center;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: unset !important;
}

/* Hide all submenus by default */
.sidebar-submenu {
  /* display: none; */
  list-style: none;
  padding-left: 20px;
  /* Adjust as needed */
}

.sidebar-menu .sidebar-submenu {
  display: block;
}

/* Optional: Add transition for smooth toggle */
.sidebar-menu .dropdown .sidebar-submenu {
  transition: max-height 0.3s linear;
  overflow: hidden;
  max-height: 0px;
}

/* .sidebar-menu .dropdown.open .sidebar-submenu {
  max-height: 1000px;
} */

.sidebar-menu li>a>i {
  margin-inline-end: 0;
}

.mr-10 {
  margin-right: 10px !important;
}

.sidebar-menu .sidebar-submenu li a {
  gap: 12px;
}

.sidebar-menu .sidebar-submenu li>.active-page {
  background-color: var(--button-secondary);
  color: var(--text-primary-light);
}

.sidebar-menu li>a.active-page:hover {
  color: var(--text-primary-light);
}

.me-8 {
  margin-right: 8px;
}

.gap-10 {
  display: flex;
  gap: 8px;
}

.w-33 {
  width: 33.33%;
}

.overlay::after {
  position: absolute;
  content: "";
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 100%;
  background-color: #000;
  opacity: 0.65;
  transition: all 0.3s;
  z-index: 2;
}

.overlay.active::after {
  width: 100%;
}

.Gallery-masonry {
  background: #000;
  z-index: 99999;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
}

/* Avatar uploader */
.avatar-uploader {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  margin: 0 auto;
}

.avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: var(--secondary-50, #f9fafb);
  border: 2px dashed rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-empty {
  width: 60%;
  height: 60%;
  color: var(--secondary-50, #f9fafb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

/* Nút đổi ảnh (góc phải dưới) */
.avatar-change-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-600, #4f46e5);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.avatar-change-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.4);
}

/* Nút xoá ảnh (góc trái trên) */
.avatar-remove-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--secondary-50, #f9fafb);
  background: rgba(0, 0, 0, 0.5);
  color: var(--secondary-50, #f9fafb);
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 0;
}

.avatar-remove-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Hover viền đẹp nhẹ nhàng */
.avatar-uploader:hover .avatar-preview {
  border-color: var(--primary-600, #4f46e5);
}

.product-preview {
  position: relative;
  width: 180px;
  height: 180px;
  outline: 2px dashed var(--secondary-900, #a0a0a0);
  outline-offset: 6px;
  border-radius: 8px;
  padding: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.25s ease-in-out;
  background-color: #f9fafb;
}

.product-preview:hover {
  outline-color: var(--danger-500, #b8172f);
  /* sáng hơn khi hover */
  background-color: var(--secondary-50, #f9fafb);
  transform: scale(1.02);
  cursor: pointer;
}

.product-preview::after {
  content: "";
  display: block;
  padding-bottom: 100%;
  /* Giữ tỉ lệ vuông */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.selected-card {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--primary-400);
}

.dropzone {
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-600);
  color: var(--primary-700);
}

.ql-editor {
  font-size: 16px;
  line-height: 1.7;
}

.ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.ql-editor img:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.ql-font-arial {
  font-family: Arial, sans-serif;
}

.ql-font-times-new-roman {
  font-family: "Times New Roman", serif;
}

.ql-font-courier-new {
  font-family: "Courier New", monospace;
}

/* Nhấp nháy (opacity) + phóng to/thu nhỏ nhẹ nhàng */
@keyframes sh-pulse {

  0%,
  100% {
    transform: scale(0.95);
    opacity: .6;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Nhảy nhẹ dọc (tùy thích) */
@keyframes sh-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Button: chỉ cần transition show/hide, KHÔNG animate transform ở đây */
.scroll-hint {
  z-index: 1050;
  transition: opacity .25s ease, visibility .25s ease;
}

.scroll-hint--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Icon: animate scale + opacity; nếu muốn thêm bounce, gộp 2 animation */
.scroll-hint__icon {
  display: inline-block;
  animation: sh-pulse 1.2s ease-in-out infinite;
  /* muốn kèm “nhảy” thì dùng dòng dưới thay thế dòng trên: */
  /* animation: sh-pulse 1.2s ease-in-out infinite, sh-bounce 1.2s ease-in-out infinite; */
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__icon {
    animation: none;
  }
}

.rich-text-editor {
  display: flex;
  flex-direction: column;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.rich-text-editor .ql-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.rich-text-editor .ql-container {
  flex: 1;
  overflow-y: auto;
}

.nav-item:hover .custom-megamenu {
  display: grid !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

/* MENU DROPDOWN – MOBILE + DESKTOP */
.dropdown-menu-custom {
  width: 100%;
  background: #000;
}

/* MOBILE */
@media (max-width: 992px) {
  .dropdown-menu-custom {
    position: static !important;
    height: auto !important;
    padding: 10px 0 !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav a,
  .navbar-nav button {
    width: 100%;
    text-align: left;
    padding-left: 10px !important;
  }
}