.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;
}

@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.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: 0px;
}

.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: 8px;
}

.sidebar-menu .sidebar-submenu li > .active-page {
  background: transparent;
  color: #f6c753;
}

/* .sidebar-menu li > a.active-page:hover {
  color: var(--text-primary-light);
} */

ul.sidebar-menu li.dropdown ul.sidebar-submenu li a.active-page:hover {
    color: #f6c753;
}

.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%;
}

/* ── Sidebar submenu: improved layout & spacing ── */
/* Note: no padding-top/bottom on the ul itself — those would bleed through
   max-height:0 / overflow:hidden and create a phantom gap below closed dropdowns. */
ul.sidebar-menu li.dropdown ul.sidebar-submenu {
  padding-left: 0.5rem !important;
  margin-left: 1.25rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

ul.sidebar-menu li.dropdown ul.sidebar-submenu li {
  margin: 0 !important;
}

ul.sidebar-menu li.dropdown ul.sidebar-submenu li a {
  padding: 8px 10px !important;
  border-radius: 5px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

ul.sidebar-menu li.dropdown ul.sidebar-submenu li a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

ul.sidebar-menu li.dropdown ul.sidebar-submenu li a i.circle-icon {
  font-size: 6px !important;
  flex-shrink: 0;
}

/* ── Screenshot / image slider sections: WebP <picture> sizing ────────────── */

/* Make <picture> behave exactly like a plain <img> inside slick slides */
.events-contests-slider .slick-slide picture {
  display: block !important;
  width: 100%;
  line-height: 0;
}

/* Default desktop heights */
.events-contests-slider .slick-slide picture img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

/* ≤1024px — portrait tablet: taller contest images */
@media (max-width: 1024px) {
  .events-contests-slider .slick-slide picture img {
    height: 597px;
  }
}

/* ≤991px — landscape tablet */
@media (max-width: 991px) {
  .events-contests-slider .slick-slide picture img {
    height: 400px;
    object-fit: contain;
  }
}

/* ≤767px — mobile */
@media (max-width: 767px) {
  .events-contests-slider .slick-slide picture img {
    height: 290px;
    object-fit: cover;
  }
}

/* Gallery grid: make <picture> fill cell same as plain <img> */
.cus-gallery-grid-img picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.cus-gallery-grid-img picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading background while image fetches (shows on first paint) */
.events-contests-slider .slick-slide .gradient-overlay {
  background-color: #e8f5f4;
}

/* Ensure the slide wrapper always fills its Slick container */
.events-contests-slider .slick-slide > div {
  height: 100%;
}

/* Main banner images: ensure full-width, no gap below */
.dashboard-main-banner,
.dashboard-main-banner-lg {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Prevent broken-image icon showing while CDN image loads */
.events-contests-slider img[src=""],
.recognition-slider img[src=""] {
  visibility: hidden;
}

/* ── Recognition Slider redesign ─────────────────────────────────────────── */

/* Card: height:100% fills Bootstrap-stretched col.
   min-height is the floor on mobile/stacked layout where parent has no definite height.
   The card itself has position:relative (from JSX class), making it the abs containing block. */
.recognition-slider.card {
  background: #0d0d1a !important;
  height: 100%;
  min-height: 400px;
}

/* Card-body is position:absolute so it has ZERO contribution to the card's
   intrinsic height — the Bootstrap row height is then set only by the
   Contests/LeaderBoard siblings, not by slick image content.
   inset:0 makes it fill the card exactly on all browsers (with top/left/right/bottom fallback). */
.recognition-slider .reco-slider-body {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Slick fills the full card-body height */
.recognition-slider .slick-slider {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.recognition-slider .slick-list,
.recognition-slider .slick-track {
  height: 100% !important;
}

.recognition-slider .slick-slide {
  height: inherit !important;
}

/* Each slide outer wrapper (slick injects an extra div) */
.recognition-slider .slick-slide > div {
  height: 100%;
}

/* The slide — position:relative so info-bar can overlay it */
.reco-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0d0d1a;
  height: 100%;
}

/* Image container — fills the whole slide */
.reco-img-area {
  flex: 1 1 auto;
  min-height: 300px;
  background: #0d0d1a;
  line-height: 0;
  overflow: hidden;
}

/* Recognition image — fills img-area.
   Use !important to override style.css .recognition-slider .slick-slide img rules. */
.reco-img,
.recognition-slider .slick-slide .reco-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 300px !important;
  object-fit: contain !important;
  background: #0d0d1a !important;
}

/* Info bar — outside slick DOM, position:absolute in the card-body (inset:0).
   Always visible at bottom regardless of screen size. */
.reco-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.84);
  padding: 10px 16px 13px;
  text-align: center;
}

.reco-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reco-reactions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Each reaction = emoji button + tappable count */
.reco-rxn-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reco-emoji-btn {
  background: transparent !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s;
  line-height: 1;
  display: flex;
  align-items: center;
}

.reco-emoji-btn:hover  { transform: scale(1.2); }
.reco-emoji-btn.active { transform: scale(1.12); filter: drop-shadow(0 0 4px rgba(255,255,255,0.5)); }

.reco-emoji {
  font-size: 22px;
  line-height: 1;
  display: inline-block;
}

.reco-rxn-count {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  min-width: 14px;
  display: inline-block;
  transition: color 0.15s;
}

.reco-rxn-count[style*="pointer"]:hover { color: #93c5fd; text-decoration: underline; }

/* Slider dots */
.recognition-slider ul.slick-dots {
  bottom: 70px; /* above the info bar */
  padding-bottom: 0;
}

.recognition-slider .reco-empty { background: #0d0d1a; }
.recognition-slider .slick-list { overflow: hidden !important; }

/* ── Shared modal styles ──────────────────────────────────────────────────── */
.reco-modal-backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.reco-comment-dialog,
.reco-rxn-dialog {
  max-width: 460px;
  width: 100%;
  margin: auto;
}

.reco-modal-content {
  border: none !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.reco-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.reco-modal-icon { font-size: 22px; line-height: 1; }

.reco-modal-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.reco-modal-close {
  background: #f3f4f6;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.reco-modal-close:hover { background: #e5e7eb; }

/* ── Comment modal ──────────────────────────────────────────────────────── */
.reco-modal-body { padding: 16px 20px; }

.reco-comment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reco-comment-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.15s;
  background: #fff;
  user-select: none;
}

.reco-comment-chip:hover { border-color: #6366f1; background: #f5f3ff; color: #4f46e5; }

.reco-comment-chip.selected {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}

.chip-check {
  width: 20px; height: 20px;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.reco-modal-footer {
  display: flex;
  gap: 10px;
  padding: 12px 20px 18px;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
}

.reco-btn-cancel {
  background: #f3f4f6; border: none; padding: 9px 20px;
  border-radius: 10px; font-weight: 600; color: #555;
  cursor: pointer; font-size: 14px; transition: background 0.15s;
}
.reco-btn-cancel:hover { background: #e5e7eb; }

.reco-btn-submit {
  background: #6366f1; border: none; padding: 9px 24px;
  border-radius: 10px; font-weight: 600; color: #fff;
  cursor: pointer; font-size: 14px; transition: background 0.15s;
}
.reco-btn-submit:hover:not(:disabled) { background: #4f46e5; }
.reco-btn-submit:disabled { background: #c7d2fe; cursor: not-allowed; }

/* ── Reactions list modal ───────────────────────────────────────────────── */
.reco-rxn-filters {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
}

.reco-filter-tab {
  background: #f3f4f6;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.reco-filter-tab:hover { background: #e0e7ff; color: #4338ca; }
.reco-filter-tab.active { background: #6366f1; color: #fff; }

.reco-rxn-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 0;
}

.reco-rxn-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  transition: background 0.1s;
}
.reco-rxn-user-row:hover { background: #f9fafb; }

.reco-rxn-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rxn-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rxn-user-license {
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
}

.rxn-user-role {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rxn-user-comment {
  font-size: 12px;
  color: #374151;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rxn-icon { font-size: 20px; flex-shrink: 0; }

.reco-rxn-empty {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
  font-size: 14px;
}

.reco-rxn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: #6b7280;
  font-size: 13px;
}

.rxn-spinner {
  width: 16px; height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: rxnSpin 0.7s linear infinite;
}

@keyframes rxnSpin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 991px) and (min-width: 768px) {
  .recognition-slider.card { min-height: 450px; }
}

@media (max-width: 767px) {
  .recognition-slider.card { min-height: 420px; }
  .reco-emoji { font-size: 18px; }
  .reco-rxn-count { font-size: 13px; }
  .reco-reactions-row { gap: 12px; }
  .reco-comment-dialog, .reco-rxn-dialog { max-width: 95vw; }
}
