/* =========================================================
   1) QUICK MENU OFFCANVAS
   ========================================================= */

.offcanvas.ah-qm {
    --bs-offcanvas-width: min(420px, 92vw);
    --bs-offcanvas-padding-x: 0;
    --bs-offcanvas-padding-y: 0;

    --ah-ctrl-h: 48px;

    --qm-text: rgba(0, 0, 0, .80);
    --qm-ico: rgba(0, 0, 0, .62);
    --qm-border: rgba(0, 0, 0, .12);
    --qm-soft: rgba(0, 0, 0, .06);

    border: 0;
    background: #fff;
    box-shadow: var(--ah-shadow);
}

.offcanvas.ah-qm .ah-qm__topline {
    height: 4px;
    background: linear-gradient(90deg, var(--ah-accent), var(--ah-accent-2));
}

.offcanvas.ah-qm .ah-qm__header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--qm-soft);
}

.offcanvas.ah-qm .ah-qm__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.offcanvas.ah-qm .ah-qm__badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 165, 0, .12);
    border: 1px solid rgba(255, 165, 0, .22);
}

.offcanvas.ah-qm .ah-qm__title {
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .92rem;
    line-height: 1.1;
    color: rgba(0, 0, 0, .72);
}

.offcanvas.ah-qm .ah-qm__body {
    padding: 14px 16px 18px;
}


/* =========================================================
   2) QUICK MENU CLOSE BUTTON
   ========================================================= */

.offcanvas.ah-qm .ah-qm__close.btn-close {
    opacity: .75;
    border-radius: 999px;
}

.offcanvas.ah-qm .ah-qm__close.btn-close:hover {
    opacity: 1;
}

.offcanvas.ah-qm .ah-qm__close.btn-close:focus {
    box-shadow: none !important;
    outline: none !important;
}


/* =========================================================
   3) QUICK MENU INPUTS
   ========================================================= */

.offcanvas.ah-qm .form-control.ah-qm-input {
    height: var(--ah-ctrl-h);
    padding: .65rem 1.05rem;
    font-size: 1rem;
    border-radius: var(--ah-pill) !important;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.offcanvas.ah-qm .form-control.ah-qm-input:focus {
    border-color: rgba(255, 165, 0, .65) !important;
    box-shadow:
        0 0 0 .25rem rgba(255, 165, 0, .18),
        0 1px 2px rgba(0, 0, 0, .06);
}


/* =========================================================
   4) QUICK MENU PASSWORD GROUP
   ========================================================= */

.offcanvas.ah-qm .input-group.ah-qm-ig {
    border-radius: var(--ah-pill) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.offcanvas.ah-qm .input-group.ah-qm-ig .form-control.ah-qm-input {
    border-right: 0 !important;
    border-radius: var(--ah-pill) 0 0 var(--ah-pill) !important;
    box-shadow: none !important;
}

.offcanvas.ah-qm .input-group.ah-qm-ig .btn.ah-qm-eye {
    height: var(--ah-ctrl-h);
    border: 1px solid rgba(0, 0, 0, .14) !important;
    border-left: 0 !important;
    border-radius: 0 var(--ah-pill) var(--ah-pill) 0 !important;
    background: #fff !important;
    color: var(--qm-ico);
}

.offcanvas.ah-qm .input-group.ah-qm-ig .btn.ah-qm-eye:focus {
    box-shadow: 0 0 0 .25rem rgba(255, 165, 0, .18);
}


/* =========================================================
   5) QUICK MENU CTA PILLS
   ========================================================= */

.offcanvas.ah-qm .ah-btn-pill.ah-qm-pill {
    width: 100%;
    height: var(--ah-ctrl-h);
    padding: 0 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: var(--ah-pill) !important;
    border: 1px solid rgba(0, 0, 0, .45) !important;
    background: #fff !important;
    color: rgba(0, 0, 0, .62) !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition:
        transform .08s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.offcanvas.ah-qm .ah-btn-pill.ah-qm-pill:hover {
    border-color: rgba(255, 165, 0, .70) !important;
    color: rgba(0, 0, 0, .74) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.offcanvas.ah-qm .ah-btn-pill.ah-qm-pill:active {
    transform: translateY(1px);
}

.offcanvas.ah-qm .ah-btn-pill.ah-qm-pill--primary {
    background: linear-gradient(180deg, #FFA500 0%, #ffb52a 100%) !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    box-shadow: 0 14px 34px rgba(255, 165, 0, .22) !important;
    color: #fff !important;
}

.offcanvas.ah-qm .ah-btn-pill.ah-qm-pill--primary i,
.offcanvas.ah-qm .ah-btn-pill.ah-qm-pill--primary span,


/* =========================================================
   6) HEADER QUICK MENU TRIGGER
   ========================================================= */

#mt-header .ah-qm-trigger {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

#mt-header .ah-qm-trigger i {
    font-size: 18px;
    color: rgba(0, 0, 0, .75);
    line-height: 1;
}


/* =========================================================
   7) OFFCANVAS HARD FIX
   ========================================================= */

#quickMenu.offcanvas {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(420px, 92vw) !important;
    max-width: 100% !important;
    display: block !important;
    visibility: hidden !important;
    transform: translateX(100%) !important;
    transition:
        transform .28s ease,
        visibility .28s ease !important;
    background: #fff !important;
    z-index: 1055 !important;
}

#quickMenu.offcanvas.show {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.offcanvas-backdrop {
    z-index: 1050 !important;
}

.offcanvas-backdrop ~ #wrapper .mt-side-over {
    display: none !important;
}


/* =========================================================
   8) QUICK MENU NAV – REUSABLE
   Scope:
   - #quickMenu       = Offcanvas
   - .ah-qm-scope    = Profil-Sidebar
   ========================================================= */

.ah-qm-scope {
    --qm-text: rgba(0, 0, 0, .80);
    --qm-ico: rgba(0, 0, 0, .62);
    --qm-border: rgba(0, 0, 0, .12);
    --qm-soft: rgba(0, 0, 0, .06);
}

:where(#quickMenu, .ah-qm-scope) a {
    color: var(--qm-text, rgba(0, 0, 0, .80)) !important;
    text-decoration: none !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-nav {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item {
    border: 1px solid var(--qm-border, rgba(0, 0, 0, .12)) !important;
    border-radius: 999px !important;
    background: #fff !important;
    padding: .80rem 1rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    transition:
        transform .08s ease,
        box-shadow .15s ease,
        border-color .15s ease,
        background-color .15s ease;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item--hasbadge {
    padding-right: .70rem !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-left {
    display: flex !important;
    align-items: center !important;
    gap: .65rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-ico,
:where(#quickMenu, .ah-qm-scope) .ah-qm-badge,
:where(#quickMenu, .ah-qm-scope) .ah-qm-user__ico {
    align-items: center !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-badge,
:where(#quickMenu, .ah-qm-scope) .ah-qm-user__ico {
    justify-content: center !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-ico {
    width: 1.25rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1 !important;
    display: inline-flex !important;
    color: var(--qm-ico, rgba(0, 0, 0, .62)) !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-txt {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    color: var(--qm-text, rgba(0, 0, 0, .80)) !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-badge {
    margin-left: auto !important;
    display: inline-flex !important;
    height: 26px;
    padding: 0 .65rem !important;
    min-width: 2.6rem !important;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: rgba(0, 0, 0, .06);
    color: var(--qm-text, rgba(0, 0, 0, .80)) !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10) !important;
    border-color: rgba(255, 165, 0, .40) !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item:hover .ah-qm-ico {
    color: rgba(255, 165, 0, .95) !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item.active {
    background: linear-gradient(90deg, #FFA500, #FFC300) !important;
    border-color: rgba(255, 165, 0, .45) !important;
    color: #fff !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item.active :is(.ah-qm-txt, .ah-qm-ico, i) {
    color: #fff !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item.active .ah-qm-badge {
    background: rgba(255, 255, 255, .22) !important;
    border-color: rgba(255, 255, 255, .35) !important;
    color: #fff !important;
}


/* =========================================================
   9) QUICK MENU NAV STATES
   ========================================================= */

:where(#quickMenu, .ah-qm-scope) .sagbarbildirim {
    background: #FFA500 !important;
    color: #fff !important;
    border-color: rgba(255, 165, 0, .35) !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-divider {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255, 165, 0, 0),
        rgba(255, 165, 0, .40),
        rgba(255, 165, 0, 0)
    );
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item--logout,
:where(#quickMenu, .ah-qm-scope) .ah-qm-item--logout :is(.ah-qm-txt, .ah-qm-ico, i) {
    color: #dc3545 !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item--logout {
    border-color: rgba(220, 53, 69, .25) !important;
    background: #fff !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-item--logout:hover {
    border-color: rgba(220, 53, 69, .45) !important;
    box-shadow: 0 6px 16px rgba(220, 53, 69, .10) !important;
}


/* =========================================================
   10) QUICK MENU / SIDEBAR USER PILL
   ========================================================= */

:where(#quickMenu, .ah-qm-scope) .ah-qm-user {
    display: flex !important;
    align-items: center !important;
    gap: .55rem !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 2px 0 12px !important;
    padding: .45rem .75rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 165, 0, .22) !important;
    background: rgba(255, 165, 0, .08) !important;
    color: rgba(0, 0, 0, .82) !important;
    font-weight: 800 !important;
}

:where(#quickMenu, .ah-qm-scope) .ah-qm-user__ico {
    width: 26px !important;
    height: 26px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    background: rgba(255, 165, 0, .14) !important;
    border: 1px solid rgba(255, 165, 0, .22) !important;
    color: rgba(0, 0, 0, .65) !important;
}


/* =========================================================
   11) PROFILE SIDEBAR SPECIALS
   ========================================================= */

.ah-up-side .ah-qm-txt {
    white-space: normal !important;
    line-height: 1.15 !important;
}


/* =========================================================
   12) QUICK MENU LOGIN VALIDATION
   ========================================================= */

#quickMenu .invalid-feedback {
    display: none;
    margin-top: .45rem;
    font-size: .875rem;
}

#quickMenu .invalid-feedback.d-block {
    display: block;
}

#quickMenu .form-control.ah-qm-input.is-invalid,
#quickMenu .input-group.ah-qm-ig .form-control.ah-qm-input.is-invalid {
    border-color: #dc3545 !important;
}

#quickMenu .form-control.ah-qm-input.is-invalid {
    background-image: none !important;
    box-shadow: none !important;
}

#quickMenu .form-control.ah-qm-input.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .12) !important;
}

#quickMenu .input-group.ah-qm-ig .form-control.ah-qm-input.is-invalid {
    border-right: 0 !important;
}

#quickMenu .input-group.ah-qm-ig .form-control.ah-qm-input.is-invalid + .btn.ah-qm-eye {
    border-color: #dc3545 !important;
    border-left: 0 !important;
}