/* Metronic's .checkbox/.radio place the label text directly against the
   custom box with no gap; add a little breathing room. */
.checkbox > span,
.radio > span {
    margin-right: 0.75rem;
}

/* Sidebar collapse toggle: an arrow-only icon reads as browser "back" navigation,
   which users kept mistaking it for. Keep the arrow while expanded (it points the
   direction the panel will move), but swap to a menu icon once collapsed, since at
   that point the arrow's "collapse" meaning no longer applies.
   Selectors are scoped to #kt_aside_toggle rather than just the icon class because
   Metronic's ".btn i { display: inline-flex }" outranks a single-class selector on
   specificity and would otherwise show both icons at once regardless of state. */
#kt_aside_toggle .brand-toggle-icon-collapsed {
    display: none;
}

.aside-minimize:not(.aside-minimize-hover) #kt_aside_toggle .brand-toggle-icon-expanded {
    display: none;
}

.aside-minimize:not(.aside-minimize-hover) #kt_aside_toggle .brand-toggle-icon-collapsed {
    display: inline-flex;
}

/* Match the grey/hover-blue used by every other sidebar nav icon (see
   themes/layout/aside/dark.css's .menu-icon rules) instead of plain white, so the
   toggle reads as "one of the sidebar icons" rather than standing out. Metronic
   lightens nav icons to a different grey specifically while the sidebar is
   collapsed (there's no hover-highlight box in that mode, so it needs more
   contrast) — matched here per-state rather than using one grey throughout. */
#kt_aside_toggle .brand-toggle-icon-expanded,
#kt_aside_toggle .brand-toggle-icon-collapsed {
    color: #494b74;
    transition: color 0.3s ease;
}

.aside-minimize:not(.aside-minimize-hover) #kt_aside_toggle .brand-toggle-icon-collapsed {
    color: #7c87a6;
}

#kt_aside_toggle:hover .brand-toggle-icon-expanded,
#kt_aside_toggle:hover .brand-toggle-icon-collapsed {
    color: #3699FF;
}

/* The "Staff Area" label sits next to the logo in the sidebar brand row; when the
   sidebar collapses to icon-only width there's no room for it and it renders
   scrunched against the toggle button. Hide it in that state, same as Metronic
   already does for the logo image itself. */
.aside-minimize:not(.aside-minimize-hover) .brand-staff-label {
    display: none;
}

/* Registration wizard: numbered step circles (Pages/Registration/New.cshtml). State comes from the
   data-wizard-state attribute the wizard script sets: "done", "current", or empty (upcoming). */
.wizard-circles { display: flex; align-items: flex-start; }
.wizard-circle-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.wizard-circle-step:not(:last-child)::after {
    content: ""; position: absolute; top: 20px; left: calc(50% + 26px); right: calc(-50% + 26px);
    height: 3px; border-radius: 3px; background: #E4E6EF; transition: background .25s;
}
.wizard-circle-step[data-wizard-state="done"]:not(:last-child)::after { background: #3699FF; }
.wizard-circle {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1.05rem; border: 2px solid #E4E6EF; color: #B5B5C3; background: #fff; transition: all .25s;
}
.wizard-circle-check { display: none; color: #fff; font-size: .9rem; }
.wizard-circle-step[data-wizard-state="done"] .wizard-circle,
.wizard-circle-step[data-wizard-state="current"] .wizard-circle { background: #3699FF; border-color: #3699FF; color: #fff; }
.wizard-circle-step[data-wizard-state="current"] .wizard-circle { box-shadow: 0 0 0 5px #E1F0FF; }
.wizard-circle-step[data-wizard-state="done"] .wizard-circle-number { display: none; }
.wizard-circle-step[data-wizard-state="done"] .wizard-circle-check { display: inline; }
.wizard-circle-label { margin-top: 10px; font-weight: 500; color: #B5B5C3; font-size: .95rem; transition: color .25s; }
.wizard-circle-step[data-wizard-state="done"] .wizard-circle-label { color: #7E8299; }
.wizard-circle-step[data-wizard-state="current"] .wizard-circle-label { color: #181C32; font-weight: 600; }
@media (max-width: 575.98px) {
    .wizard-circle-label { font-size: .75rem; }
    .wizard-circle-step:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px); }
}

/* Navigation ribbon (Pages/Shared/_NavRibbonPartial.cshtml): replaces the off-canvas sidebar below the
   lg breakpoint. Sticks under the fixed mobile header (55px) and scrolls sideways when it doesn't fit. */
.nav-ribbon-wrap { position: sticky; top: 55px; z-index: 95; background: #fff; border-bottom: 1px solid #EBEDF3; }
.nav-ribbon {
    position: relative; display: flex; overflow-x: auto; padding: 0 6px;
    scroll-snap-type: x proximity; scroll-padding-inline: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav-ribbon::-webkit-scrollbar { display: none; }
.nav-ribbon-item {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 14px 8px; color: #7E8299; font-weight: 500; font-size: .82rem; white-space: nowrap;
    border-bottom: 3px solid transparent; scroll-snap-align: start;
}
.nav-ribbon-item i { font-size: 1.15rem; color: #B5B5C3; }
.nav-ribbon-item:hover, .nav-ribbon-item:hover i { color: #3699FF; text-decoration: none; }
.nav-ribbon-item.active { color: #3699FF; border-bottom-color: #3699FF; font-weight: 600; }
.nav-ribbon-item.active i { color: #3699FF; }
.nav-ribbon-divider { flex: 0 0 1px; background: #EBEDF3; margin: 10px 4px; }
.nav-ribbon-divider:first-child { display: none; }
.nav-ribbon-section {
    flex: 0 0 auto; align-self: center; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
    color: #B5B5C3; font-weight: 600; padding: 0 6px;
}
.nav-ribbon-fade { position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.nav-ribbon-fade-left { left: 0; background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0)); }
.nav-ribbon-fade-right { right: 0; background: linear-gradient(270deg, #fff 20%, rgba(255, 255, 255, 0)); }
.nav-ribbon-fade.on { opacity: 1; }

/* Teaser / announcement images: show the full picture (contain) instead of hard-cropping
   with cover / aspect-ratio boxes that cut off edges of posters and art. */
.media-carousel {
    background: #F3F6F9;
    overflow: hidden;
}
.media-carousel-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #F3F6F9;
}
.media-carousel--compact .media-carousel-frame { height: 220px; }
.media-carousel--full .media-carousel-frame { max-height: 420px; min-height: 180px; }
.media-fit-contain {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.media-carousel--compact .media-fit-contain { max-height: 220px; }
.media-carousel--full .media-fit-contain { max-height: 420px; }
.media-carousel .carousel-control-prev,
.media-carousel .carousel-control-next {
    width: 12%;
    opacity: 0.7;
}
.media-carousel .carousel-indicators { margin-bottom: 0.35rem; }
.media-carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(24, 28, 50, 0.35);
}
.media-carousel .carousel-indicators li.active { background-color: #3699FF; }

.media-thumb-contain {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #F3F6F9;
}

.media-manage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.media-manage-item {
    position: relative;
    display: block;
    width: 96px;
    margin: 0;
    cursor: pointer;
}
.media-manage-item img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #F3F6F9;
    border-radius: 0.42rem;
    border: 1px solid #EBEDF3;
}
.media-manage-remove {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #F64E60;
    font-weight: 500;
}
.media-manage-remove input { margin: 0; }

.theme-dark .media-carousel,
.theme-dark .media-carousel-frame,
.theme-dark .media-thumb-contain,
.theme-dark .media-manage-item img {
    background: #1e1e2d;
}
.theme-dark .media-manage-item img { border-color: #2B2B40; }

/* Click-to-expand lightbox for carousel images */
.media-lightbox-hit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.media-lightbox-hit:focus {
    outline: 2px solid #3699FF;
    outline-offset: 2px;
}
#mediaLightboxModal {
    z-index: 1060;
}
.media-lightbox-backdrop {
    z-index: 1055;
}
.media-lightbox-content {
    background: #111318;
    color: #fff;
}
.media-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: #0b0c10;
    border-radius: 0.42rem;
}
.media-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: min(80vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.media-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(24, 28, 50, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.media-lightbox-nav:hover { background: rgba(54, 153, 255, 0.85); }
.media-lightbox-prev { left: 10px; }
.media-lightbox-next { right: 10px; }
.media-lightbox-content .close {
    color: #fff;
    text-shadow: none;
    opacity: 0.85;
}
.theme-dark .media-lightbox-content,
.theme-dark .media-lightbox-stage {
    background: #0b0c10;
}
