.app-sidebar-logo img {
    object-fit: contain;
}

.ki-duotone,
.ki-outline,
.ki-solid,
.fa-solid,
.fa-regular,
.fa-brands {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-header .btn i,
.app-sidebar .menu-icon i,
.menu .menu-icon i,
.symbol i {
    overflow: visible;
}

.app-header .btn.btn-icon,
.app-sidebar-toggle,
.menu-icon,
.symbol-label {
    overflow: visible;
}

.app-sidebar .menu-icon {
    width: 2rem;
    min-width: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar .menu-link,
.menu .menu-link {
    align-items: center;
}

.app-header .btn.btn-icon i.fs-1,
.app-header .btn.btn-icon i.fs-2,
.app-header .btn.btn-icon i.fs-2x,
.app-header .btn.btn-icon i.fs-2qx {
    font-size: 1.5rem !important;
}

.symbol.symbol-30px .symbol-label,
.symbol.symbol-40px .symbol-label {
    overflow: hidden;
}

#kt_app_sidebar_main {
    overflow-x: hidden;
}

.app-sidebar .menu-link.active {
    background-color: var(--bs-app-sidebar-menu-link-bg-color-active, #f4efea);
}

.portal-logo-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 0.475rem;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.portal-logo-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.portal-logo-preview-icon {
    font-size: 4rem;
    color: #cfd8ea;
    position: relative;
    z-index: 1;
}

.portal-logo-preview.has-image .portal-logo-preview-icon {
    opacity: 0;
}

.portal-logo-edit {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.portal-form-card + .portal-form-card {
    margin-top: 1.5rem;
}

.portal-inline-actions .btn {
    min-width: 120px;
}

.portal-api-display {
    cursor: pointer;
}

.portal-subtle-text {
    color: #99a1b7;
}

.portal-docs-page {
    min-height: 100vh;
    background: #0b1220;
    color: #e5ecf5;
}

.portal-docs-page .VPLink {
    text-decoration: none;
}

.portal-docs-page .VPNav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(20px);
    background: rgba(11, 18, 32, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.portal-docs-page .VPNav .container,
.portal-docs-page .VPHome .container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.portal-docs-page .VPNav .container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-docs-page .VPNavBarMenu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-docs-page .VPNavBarMenuLink {
    color: #b9c4d6;
    font-weight: 600;
}

.portal-docs-page .VPNavBarMenuLink:hover,
.portal-docs-page .VPNavBarMenuLink.is-active {
    color: #fff;
}

.portal-docs-page .VPHero {
    padding: 5.5rem 0 2.25rem;
}

.portal-docs-page .heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portal-docs-page .heading .name {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #60a5fa;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-docs-page .heading .text {
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    color: #fff;
}

.portal-docs-page .tagline {
    color: #afbdd3;
    font-size: 1.05rem;
    max-width: 720px;
}

.portal-docs-page .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.75rem;
}

.portal-docs-page .VPButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.25rem;
    border-radius: 10px;
    font-weight: 700;
}

.portal-docs-page .VPButton.brand {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.portal-docs-page .VPButton.alt {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.portal-docs-page .VPFeatures {
    padding-bottom: 4rem;
}

.portal-docs-page .items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.portal-docs-page .box {
    min-height: 100%;
    padding: 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 20px 40px rgba(3, 7, 18, 0.22);
}

.portal-docs-page .box .title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.portal-docs-page .box .details {
    color: #aeb8ca;
    margin: 0;
}

.portal-docs-page .portal-docs-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.portal-docs-page .portal-docs-brand img {
    height: 38px;
}

.portal-docs-page .portal-docs-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.portal-docs-page .portal-docs-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-docs-page .portal-docs-theme-toggle .theme-dark-show {
    display: none;
}

html[data-bs-theme="light"] .portal-docs-page {
    background: #f8fafc;
    color: #101828;
}

html[data-bs-theme="light"] .portal-docs-page .VPNav {
    background: rgba(255, 255, 255, 0.88);
}

html[data-bs-theme="light"] .portal-docs-page .heading .text,
html[data-bs-theme="light"] .portal-docs-page .portal-docs-brand,
html[data-bs-theme="light"] .portal-docs-page .box .title,
html[data-bs-theme="light"] .portal-docs-page .VPNavBarMenuLink:hover,
html[data-bs-theme="light"] .portal-docs-page .VPNavBarMenuLink.is-active {
    color: #101828;
}

html[data-bs-theme="light"] .portal-docs-page .tagline,
html[data-bs-theme="light"] .portal-docs-page .box .details,
html[data-bs-theme="light"] .portal-docs-page .VPNavBarMenuLink {
    color: #667085;
}

html[data-bs-theme="light"] .portal-docs-page .box {
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] .portal-docs-page .VPButton.alt,
html[data-bs-theme="light"] .portal-docs-page .portal-docs-theme-toggle {
    background: #fff;
    color: #101828;
}

@media (max-width: 991.98px) {
    .portal-docs-page .items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .portal-docs-page .items {
        grid-template-columns: 1fr;
    }

    .portal-docs-page .VPNav .container {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .portal-docs-page .portal-docs-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .portal-docs-page .actions {
        flex-direction: column;
    }
}
