body {
    overflow-x: hidden;

    [theme-mode=dark] & {
        background-color: var(--#{$prefix}secondary-dark);
        color: var(--#{$prefix}dark-text-color);
    }
}

.contant-wrap {
    position: relative;
    padding-left: $nav-sidebar-bar-width-lg;

    [dir="rtl"] & {
        padding-left: 0;
        padding-right: $nav-sidebar-bar-width-lg;
    }

    @include media-breakpoint-down(lg) {
        padding-left: 0;
        padding-right: 0 !important;
    }
}

.wrap-content {
    padding: 20px 15px;
    margin-bottom: 30px;
    background: var(--#{$prefix}white);
    border-radius: 8px;

    [theme-mode=dark] & {
        background: var(--#{$prefix}primary-dark);
    }

    img {
        max-width: 100%;
    }
}

h2 {
    color: var(--#{$prefix}secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    [theme-mode=dark] & {
        color: var(--#{$prefix}white);
    }
}

// logo color
svg {
    .logo-mini {
        fill: $black;

        [theme-mode=dark] & {
            fill: var(--#{$prefix}white);
        }
    }

    .logo-primary {
        fill: var(--#{$prefix}primary);
    }
}

.box-shadow {
    -webkit-box-shadow: 0px 1px 7px rgb(139 145 162 / 25%);
    box-shadow: 0px 1px 7px rgba(139, 145, 162, 0.25);
    padding: 30px;

    [theme-mode=dark] & {
        -webkit-box-shadow: 1px 2px 6px rgb(8 8 8 / 43%);
        box-shadow: 1px 2px 6px rgb(8 8 8 / 43%);
    }
}

.list-unstyled {
    list-style: none;
}

.object-fit-cover {
    object-fit: cover;
    height: 100%;
}

.border-bg {
    border: .5rem solid var(--#{$prefix}body-bg)
}

.list-group {
    .list-group-item {
        [theme-mode="dark"] & {
            background-color: var(--#{$prefix}primary-dark);
            color: var(--#{$prefix}dark-text-color);
            border-color: var(--#{$prefix}dark-border-color);
        }
    }
}

.mh-100 {
    min-height: 100px;

    .ck-editor__editable_inline {
        min-height: 100px;
    }

    .ace-jsoneditor,
    textarea.jsoneditor-text {
        min-height: 100px;
    }
}

.mh-300 {
    min-height: 300px;

    .ck-editor__editable_inline {
        min-height: 300px;
    }

    .ace-jsoneditor,
    textarea.jsoneditor-text {
        min-height: 300px;
    }
}

.mh-350 {
    min-height: 350px;

    .ck-editor__editable_inline {
        min-height: 350px;
    }

    .ace-jsoneditor,
    textarea.jsoneditor-text {
        min-height: 350px;
    }
}

.mh-400 {
    min-height: 400px;

    .ck-editor__editable_inline {
        min-height: 400px;
    }

    .ace-jsoneditor,
    textarea.jsoneditor-text {
        min-height: 400px;
    }
}

.mw-300 {
    max-width: 300px;
}

.mw-350 {
    max-width: 350px;
}

.mw-400 {
    max-width: 400px;
}

.page-loading {
    position: relative;
    display: block;
    z-index: 13;
    margin: 15px auto;
    width: 100px;
    height: 100px;
    border: 5px solid transparent;
    border-radius: 50%;
    background-color: transparent;

    &:before {
        position: absolute;
        display: block;
        content: '';
        z-index: 12;
        top: 4px;
        left: 4px;
        width: 82px;
        height: 82px;
        border-radius: 50%;
        background-color: #fff;
    }

    &:after {
        position: absolute;
        display: block;
        top: 0;
        content: '';
        z-index: 11;
        top: 0px;
        left: 0px;
        width: 45px;
        height: 45px;
        border-radius: 200px 0 0 0;
        background: linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, #459ad7 50%, #459ad7 100%);
        animation: loading .9s linear infinite;
    }

}

.navbar-brand {
    img {
        max-height: 40px;
    }

    .logo-dark {
        display: none;
    }

    [theme-mode="dark"] & {
        .logo-light {
            display: none;
        }

        .logo-dark {
            display: inline-block;
        }
    }
}

.icon-question {
    height: 21px;
    width: 21px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: $gray-600;
    border: 1px solid $gray-600;
    border-radius: 50%;
    cursor: help;
}

.seo-icon {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: $white !important;

    &.seo-icon-info {
        background:var(--#{$prefix}info) !important;
    }

    &.seo-icon-danger {
        background:var(--#{$prefix}danger);
        font-size: 11px;
    }

    &.seo-icon-warning {
        background:var(--#{$prefix}warning);
        font-size: 11px;
    }

    &.seo-icon-success {
        background: var(--#{$prefix}success);
    }
}


.google-search-preview {
    .site-url {
        color: #006621;
        font-size: 14px;
        line-height: 1.3;
        margin: 3px 0;
    }

    .site-title {
        color: #1a0dab;
        font-size: 20px;
        line-height: 26px;
        font-weight: 400;
    }

    .site-description {
        color: #4d5156;
        font-size: 14px;
        line-height: 1.58;
        font-weight: 400;

        [theme-mode='dark'] & {
            color: $text-light;
        }
    }

    &.desktop-version {
        max-width: 600px;
    }

    &.mobile-version {
        max-width: 342px;
    }
}

.line-truncate {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    &.line-1 {
        -webkit-line-clamp: 1;
    }

    &.line-2 {
        -webkit-line-clamp: 2;
    }

    &.line-3 {
        -webkit-line-clamp: 3;
    }
}

hr,
.hr {
    border-color: var(--#{$prefix}border-color);
    opacity: 1;
}

.bg-white {
    [theme-mode='dark'] & {
        background-color: var(--#{$prefix}secondary-dark) !important;
    }
}


[theme-mode=dark] {
    .table {
        --#{$prefix}table-color: $white;
        --#{$prefix}table-border-color: var(--#{$prefix}dark-text-color);
    }

    --#{$prefix}body-bg: var(--#{$prefix}secondary-dark);
    --#{$prefix}border-color: var(--#{$prefix}dark-border-color);

    .navbar {
        --#{$prefix}navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
    }
}

[dir="rtl"] {
    .navbar-brand {
        margin-right: 0;
        margin-left: 16px;
    }

    .navbar-nav.me-auto {
        padding-right: 0;
    }
}


.mb-lg-3 {
    @include media-breakpoint-down(lg) {
        margin-bottom: 15px;
    }
}

.section-padding {
    padding: 120px 0;



    .col-md-6 {
        img {
            max-width: 100%;
            height: auto;
        }
    }
}

.resizing-accordion {
    background: var(--#{$prefix}body-bg);

    [theme-mode=dark] & {
        background: var(--#{$prefix}primary-dark);
    }
}

// jsoneditor dark mode
.ace_gutter-cell.ace_gutter-active-line,
.ace-jsoneditor .ace_scroller,
div.jsoneditor-tree,
div.jsoneditor textarea.jsoneditor-text {
    [theme-mode='dark'] & {
        background: var(--#{$prefix}primary-dark);
        color: var(--#{$prefix}white);
    }
}

.ace-jsoneditor .ace_gutter,
div.jsoneditor-menu {
    [theme-mode='dark'] & {
        background: var(--#{$prefix}secondary-dark);
        border-color: var(--#{$prefix}dark-border-color);
    }
}

div.jsoneditor,
div.jsoneditor-menu {
    [theme-mode='dark'] & {
        border-color: var(--#{$prefix}dark-border-color);
    }
}

div.jsoneditor-statusbar {
    [theme-mode='dark'] & {
        background: var(--#{$prefix}primary-dark);
        color: var(--#{$prefix}white);
        border-color: var(--#{$prefix}dark-border-color);
    }
}

.ace_folding-enabled>.ace_gutter-cell,
.ace-jsoneditor .ace_scroller,
div.jsoneditor-field,
div.jsoneditor-value,
div.jsoneditor td,
div.jsoneditor th,
div.jsoneditor textarea,
pre.jsoneditor-preview,
.jsoneditor-schema-error,
.jsoneditor-popover {
    [theme-mode='dark'] & {
        color: var(--#{$prefix}white) !important;
    }
}


// scrollbar
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-thumb {
    background: #dadce0;
    background-clip: padding-box;
    border: 4px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    min-height: 50px;

    [theme-mode='dark'] & {
        box-shadow: inset 0 0 0 10px #11101a;
        background: transparent;
    }
}

::-webkit-scrollbar-track {
    background: none;
    border: none;
}

div {
    scrollbar-color: #dadce0 #ffffff;
    scrollbar-width: thin;

    [theme-mode='dark'] & {
        scrollbar-color: #11101a #232230;
    }
}

// page-wrap
.page-wrap {
    padding-left: $nav-sidebar-bar-width-lg;

    [dir="rtl"] & {
        padding-left: 0;
        padding-right: $nav-sidebar-bar-width-lg;
    }

    @include media-breakpoint-down(lg) {
        padding: 0 !important;
    }
}

.container-fluid {
    .bg-transparent {
        >.hero-title {
            padding-top: 0;
        }
    }
}
