@import url(https://fonts.googleapis.com/css2?family=Inter&subset=latin,latin-ext);

* {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    --header-size: 50px;
    --sidebar-size: 90px;
}

body {
    margin: 0px;
    min-height: 100vh;
}


/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cfd8df #ffffff;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 14px;
}

*::-webkit-scrollbar-track {
    background: #ffffff;
}

*::-webkit-scrollbar-thumb {
    background-color: #cfd8df;
    border-radius: 6px;
    border: 3px solid #ffffff;
}


.header-bar {
    height: var(--header-size);
    /* height: 50px; */
    align-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: fixed;
    width: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4;
}

.header-con {
    display: flex;
    flex: 1;
}

.header-bar .drop-con {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 400;
    padding: 0 10px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
    color: #768490;
}

.header-bar .main-pages a {
    font-size: 14px;
    color: #535252;
    text-decoration: none;
}

.drop-con .media-btn {
    margin-left: 5px;
    margin-right: 10px;
}

.guest-info a {
    text-decoration: none;
}

.header-bar .main-pages {
    display: none;
}





.logo {
    height: 100%;
    padding: 2px 10px;
    box-sizing: border-box;
    cursor: pointer;
}

.logo img {
    height: 100%;
}





.sidebar {
    position: fixed;
    padding-top: calc(var(--header-size) + 10px);
    width: var(--sidebar-size);
    box-sizing: border-box;
    height: 100vh;
    background: #fbfbfb;
}

.sidebar a {
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    color: #8f8f8f;
    text-decoration: none;
    margin: 5px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.sidebar a:hover {
    background: #d8d8d8;
}

.main-content {
    padding-top: var(--header-size);
    padding-left: var(--sidebar-size);
    min-height: 100vh;
    box-sizing: border-box;
}

.popframe {
    position: absolute;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    top: 0;
}

.popframe iframe {
    width: 100%;
    height: 100%;
}

.scrollable-control {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translate(0, -50%);
    cursor: pointer;
    border: 1px solid #c4c4c4;
    border-radius: 3px;
    padding: 5px;
    display: none;
}

.scrollablecon {
    position: relative;
    padding: 0;
}

.scrollablecon.enabled {
    padding: 0 30px;
}

.scrollablecon.enabled .scrollable-control {
    display: block;
}

.ai-img-scroll-con .scrollable-control.left {
    left: 5px;
}

.ai-img-scroll-con .scrollable-control.right {
    right: 5px;
}

.ai-img-scroll-inner {
    display: inline-block;
}

.scrollable-item {
    width: 100%;
    display: flex;
}

.scrollable-item-wrap {
    white-space: nowrap;
    overflow: hidden;
}

.scrollable-item-inner {
    padding-right: 20px;
}

.scrollable-item-inner:last-child {
    padding-right: 0;
}

.scrollablecon .left {
    left: 0;
}

.scrollablecon .right {
    right: 0;
}

.topcontrols .sortable-controlcon {
    position: relative;
    color: #768490;
}

.scrollablecon.topcontrols.enabled {
    padding: 0;
}

.topcontrols .scrollable-control {
    position: static;
    padding: 2px 5px;
    background: #fff;
    border-color: #fff;
    transform: none;
}

.topcontrols .scrollable-control:hover {
    border-color: #c4c4c4;
}

.topcontrols .sortable-controlcon {
    display: flex;
    justify-content: end;
    gap: 10px;
    position: absolute;
    right: 0;
    top: -25px;
}



.grid-double,
.grid-auto,
.grid-single {
    --colnumb: 3;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 1em * var(--colnumb) + 1em) / var(--colnumb));
    column-gap: 1em;
    row-gap: 1em;
}

.grid-single {
    grid-template-rows: auto;

}

.grid-auto {
    grid-template-rows: auto;
    grid-auto-columns: auto;
}

.grid-double {
    grid-template-rows: auto auto;

}

.grid-double>.item {
    /* grid-auto-flow: column; */
}



.header-bar .toggle {
    display: none;
}


.fixed-header {
    display: none;
    position: fixed;
    bottom: 0;
    z-index: 1;
    background: #fff;
    width: 100%;
}

.fixed-header ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 20px;
}

.fixed-header a {
    font-size: 22px;
    color: #333;
    width: 50px;
    text-align: center;
    cursor: pointer;
}

.fixed-header .generate i {
    padding: 15px;
    background: #333;
    border-radius: 30px;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    font-size: 28px;
    transform: translateY(-50%);
}

.fixed-header .userDrop i {
    background: #185d18;
    border-radius: 20px;
    padding: 3px;
    color: #fff;
}

.userDrop.active i::before {
    content: "\f00d";
}

.fixed-header .drop-con {
    position: absolute;
    background: #fff;
    width: 100%;
    left: 0;
    padding: 20px;
    margin-top: -42px;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
    justify-content: end;
    font-size: 14px;
    bottom: 58px;
}






/* Hover meta view */
.hovermeta {
    position: absolute;
    width: 100%;
    color: #fff;
    z-index: 1;
    left: 0;
    top: 0;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 10px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 1) 100%); */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.hovermeta .top-buttons {
    display: flex;
    gap: 10px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* background: rgba(0,0,0,.5); */
    padding: 10px;
    /* border-radius: 10px; */
    /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.80)); */
}

.hovermeta .top-buttons .media-btn {
    background: #474F57;
    width: auto;
    padding: 10px;
    color: #fff;
}

.hovermeta .middle {
    flex: 1;
    align-content: end;
}

.hovermeta .body {
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 10px;
}

.hovermeta .bottom-tags {
    display: flex;
    gap: 5px;
    /* background: rgba(0,0,0,.5); */
    padding: 10px;
    /* border-radius: 10px; */
    /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.10)); */
}

.hovermeta .media-btn:hover,
.hovermeta .tag.btn:hover {
    background-color: #fff;
    color: #333;
}

.hovermeta .tag {
    background: #ffffff0d;
    padding: 7px 10px;
    border-radius: 10px;
}

.hovermeta .tag:empty {
    display: none;
}

.hovermeta .tag.btn {
    cursor: pointer;
    background: #474F57;
}

.hovermeta .top-buttons .media-btn:hover {
    box-shadow: none;
    color: #333;
}

.hovermeta .top-buttons .media-btn.full {
    flex: 1;
}

.hovermeta .drop .btn {
    font-size: 12px;
    padding: 10px 15px;
    display: flex;
    gap: 5px;
}

.hovermeta .drop .btn:hover {
    background: rgb(33, 35, 39);
}

.hovermeta .media-btn a {
    color: inherit;
}

.hovermeta .drop .btn svg {
    height: 18px;
    width: 18px;
}

.hovermeta .drop .btn i {
    font-size: 18px;
}

.hovermeta .btn .ok {
    display: none;
}

.hovermeta .btn.done:hover {
    background: green;
}

.hovermeta .btn.done .ok {
    display: block;
}

.hovermeta .btn.done .init {
    display: none;
}

.hovermeta .back {
    display: none;
}

.hovermeta.full .back {
    display: inline-flex;
    background: #fff;
    color: #333;
}

.hovermeta .drop {
    position: absolute;
    top: 45px;
    height: 0;
    width: 100%;
    right: 10px;
}


.hovermeta .drop-inner {
    top: 0;
    background: rgba(33, 35, 39, 1);
    position: absolute;
    right: 0;
    z-index: 1;
}

.hovermeta.full {
    position: fixed;
    height: calc(100dvh - var(--header-size));
    top: var(--header-size);
    border-radius: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    left: 0;
    background: #333;
    z-index: 9;
}

.hovermeta.full .drop {
    bottom: 45px;
    top: auto;
}

.hovermeta.full .drop-inner {
    bottom: 0;
    top: auto;
}

.hovermeta.full .middle {
    flex: 0;
}

.hovermeta .preview {
    display: none;
}

.hovermeta.full .preview {
    flex: 1;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #333;
    order: 1;
}

.history.multiselect .hovermeta {
    display: none !important;
}

/* hover meta view */


.alttooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 6px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 9999;
    display: none;
}

.fade-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
}




@media only screen and (max-width: 1250px) {

    .header-con {
        flex: 0;
    }

    .fixed-header {
        display: block;
    }

    .userDrop.active+.drop-con {
        display: flex;
    }

    .guest-info .media-btn {
        padding: 20px 60px;
    }

    .header-bar .toggle {
        display: block;
        font-size: 24px;
        padding: 10px;
        font-family: 'Line Awesome Free';
        font-weight: 900;
        cursor: pointer;
    }

    .header-bar .toggle::before {
        content: "\f406";
    }

    .header-bar .toggle.main::before {
        content: "\f0c9";
    }



    .header-bar .toggle.active::before {
        content: "\f00d";
    }

    .header-bar .drop-con {
        display: none;
    }

    .header-bar .toggle.active+.drop-con {
        display: flex;
        position: absolute;
        background: #ededed;
        flex-direction: column;
        align-items: end;
        top: 100%;
        right: 0;
        left: 0;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    /* .header-bar .main-pages {
        display: flex;
        gap: 10px;
        flex: 1;
        justify-content: center;
    } */

    .main-pages i {
        margin-right: 5px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding-left: 0;
    }
}

@media only screen and (max-width: 780px) {
    .imedit-generate .grid-double {
        --colnumb: 2;
        grid-template-rows: auto;
    }
}