﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

.ktPaddingBig {
    padding: 48px;
}

.ktLargeText {
    font-size: var(--largeText);
}

.ktBigText {
    font-size: var(--bigText);
}

.ktMediumText {
    font-size: var(--mediumText);
}

.ktSmallText {
    font-size: var(--smallText);
}

.ktExtraSmallText {
    font-size: var(--extraSmallText);
}

.ktFont600 {
    font-weight: 600;
}

/* Brand */
.ktLogo {
    width: 36px;
}

/* Links & hover */
.ktHoverDark {
    color: var(--primary);
    transition: .3s color;
    text-decoration: none;
    cursor: pointer;
}

    .ktHoverDark:hover {
        color: var(--primaryHover);
        text-decoration: underline;
    }

/* Display & flex helpers */
.ktDiplayCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ktDiplayBetween {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ktDiplayCenterColumn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 3) Layout */
.ktLayoutContainer {
    position: relative;
    display: flex;
    height: calc(100dvh - var(--header-h));
    flex-direction: row;
    background-color: var(--light);
}

.ktMainBox {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 14.5px 0 rgba(0,0,0,0.15);
    padding: 48px;
}

.ktSmallBox {
    width: 620px;
    max-width: 620px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 14.5px 0 rgba(0,0,0,0.15);
    padding: 48px;
}

.ktCenterBox {
    margin: 0 auto;
}


/* Validation */
.ktError {
    font-size: var(--tinyText);
    color: var(--danger);
    margin-top: 2px;
}

/* 4) Sidebar – layout & state */
.ktSidebar {
    display: flex;
    flex-direction: column;
    align-self: start;
    background: var(--kt-sidebar-bg) !important;
    color: var(--kt-sidebar-fg) !important;
    border-right: 0;
    position: sticky;
    width: 300px;
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    transform: none;
    box-shadow: none;
    overflow: auto;
    overscroll-behavior: contain;
}

/* 5) Navigation */
.ktSidebarNav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .25rem;
    border-radius: var(--kt-radius);
}

/* Keep nav as static layout by default */
.ktNav {
    position: static;
}

.ktNavPillSub {
    padding-left: 1.8rem !important;
    opacity: .95;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: var(--kt-radius);
    color: var(--white);
    text-decoration: none !important;
    border: 0;
    transition: background .2s ease, color .2s ease;
    cursor: pointer;
}

.ktNavPill {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: -webkit-fill-available;
    padding: .6rem .9rem;
    border-radius: var(--kt-radius);
    color: var(--white);
    text-decoration: none !important;
    background: transparent;
    border: 0;
    margin: 10px 20px 0;
    transition: background .2s ease, color .2s ease;
}

    .ktNavPill:hover,
    .ktNavPill:focus {
        background: var(--secondary);
        color: var(--black);
        text-decoration: none;
    }

.ktNavPillCollapser {
    cursor: pointer;
}

.ktBtnLogOut {
    width: -webkit-fill-available;
}

.ktNavPillCollapser > .bi,
.ktNavPillCollapser > [class*="IconName"] {
    transition: transform .2s ease;
}



.ktNavPill.ktActive {
    background: var(--menuActive);
    color: var(--menuActiveText);
    font-weight: 600;
    position: relative;
}

.ktSidebarNav .ktNavPill.ktActive,
.ktSidebarNav .ktNavPill.ktDisabled,
.ktSidebarNav .ktNavPill[aria-current="page"] {
    pointer-events: none;
    cursor: default;
    color: var(--white);
}

/* Collapse */
.ktCollapse {
    padding-block: .25rem .5rem;
    display: none;
}

    .ktCollapse.is-open {
        display: block;
    }

/* Mobile-only helpers */
.ktMobileOnly {
    display: none;
}

/* 6) Footer / user tile */
.ktUserTile {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: .6rem;
    align-items: center;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    padding: .6rem .7rem;
    overflow: hidden;
}

.ktTextFooter {
    color: #7B7B7B;
}

.ktUserLabelValue {
    font-weight: 700;
    text-transform: uppercase;
}

.ktUserLabel {
    opacity: .75;
}

/* 7) Responsive */
@media (max-width: 768px) {
    .ktSidebar {
        position: fixed;
        height: 100%;
        z-index: 1045;
        width: 100%;
        inset: 0 auto 0 0;
        transform: translateX(-100%);
        transition: transform .25s ease, box-shadow .25s ease;
        box-shadow: none;
    }

    .ktMainBox {
        padding: 24px;
    }

    .ktSidebar.is-open {
        transform: translateX(0);
        box-shadow: var(--kt-shadow);
    }

    .ktSidebarBackdrop {
        position: fixed;
        z-index: 1040;
        inset: 0;
        background: rgba(0,0,0,.4);
        backdrop-filter: blur(1px);
    }

    .ktMobileOnly {
        display: flex;
    }

    .ktSmallBox {
        width: 100%;
        padding: 24px;
    }

    .ktPaddingBig {
        padding: 12px;
    }

    .ktLogo {
        width: 32px;
    }
}
