﻿:root {
    --bs-primary: #845EC2;
    --bs-primary-rgb: 132, 94, 194;
    --bs-border-radius: .25rem;
    --bs-link-color: #845EC2;
    --bs-link-color-rgb: 132,94,194;
    --bs-link-hover-color: #353535;
    --bs-link-hover-color-rgb: 53,53,53;
    --nv-z: 9999;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #845EC2;
    --bs-btn-border-color: #845EC2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #673fa7;
    --bs-btn-hover-border-color: #7a54b8;
    --bs-btn-focus-shadow-rgb: 103,63,167;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #673fa7;
    --bs-btn-active-border-color: #7a54b8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #b993f7;
    --bs-btn-disabled-border-color: #b993f7;
}


.btn-wbbt {
    --bs-btn-color: #000;
    --bs-btn-bg: #F5F5F5;
    --bs-btn-border-color: #F5F5F5;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
    --bs-btn-focus-shadow-rgb: 211,212,213;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #dae0e5;
    --bs-btn-active-border-color: #dae0e5;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #f8f9fa;
    --bs-btn-disabled-border-color: #f8f9fa;
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #b993f7;
    box-shadow: 0 0 0 0.25rem rgb(162 124 224 / 50%);
}

.form-check-input:checked {
    background-color: #845EC2;
    border-color: #845EC2;
}

.dropdown-item {
    --bs-dropdown-link-active-bg: #845EC2;
}

.blue-link {
    color: #0d6efd;
}

[data-bs-theme=dark] .blue-link {
    color: #488df2;
}

/*a {
    color: #6c70bc;
    text-decoration: none;
}

    a:hover {
        color: #252851;
    }*/
/*dark theme*/
[data-bs-theme=dark] .btn-wbbt {
    --bs-btn-color: #fff;
    --bs-btn-bg: #212529;
    --bs-btn-border-color: #212529;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #424649;
    --bs-btn-hover-border-color: #373b3e;
    --bs-btn-focus-shadow-rgb: 66,70,73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4d5154;
    --bs-btn-active-border-color: #373b3e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #212529;
    --bs-btn-disabled-border-color: #212529;
}


[data-bs-theme=dark] {
    --bs-link-hover-color: #d9c2ff;
    --bs-link-hover-color-rgb: 217,194,255;
}


/*---------*/
.table tbody,
.table thead,
.table tr,
.table th,
.table td {
    background-color: transparent !important;
}


@font-face {
    font-family: 'Open Sans';
    font-display: swap;
    src: url('/fonts/OpenSans/OpenSans-Regular.ttf') format('truetype');
}

html, body {
    height: 100%;
}

#board:lang(fa), #board:lang(fa) {
    font-family: "iran sans", Tahoma;
}

[v-cloak] {
    display: none;
}

.icon {
    display: inline-block;
    stroke: black;
    color: black;
}

    .icon svg {
        width: 1em;
        height: 1em;
        margin-top: -4px;
    }

[data-bs-theme=dark] .icon {
    stroke: #fff;
    color: #fff;
}



.page-item.active .page-link {
    border-color: #9A5EC2;
    background-color: #9A5EC2;
}

.page-link {
    color: #9A5EC2;
}

canvas {
    left: 0;
    top: 0;
}

#board {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.logo-board {
    position: absolute;
    top: 18px;
    left: 11px;
    z-index: 55;
}

.toolbar-tools {
    position: absolute;
    top: 60px;
    left: 10px;
    z-index: 55;
}

    .toolbar-tools .btn-toolbar {
        flex-direction: column;
    }


    .toolbar-tools .btn {
        padding: .475rem .475rem;
    }




.toolbar-menu {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 55;
}



.toolbar-board {
    position: absolute;
    top: 20px;
    left: 60px;
    z-index: 55;
}


.scroll {
    justify-content: flex-start;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}


    .scroll::-webkit-scrollbar {
        display: none;
    }


/*.toolbox-panel {
    position: absolute;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
}
*/

.toolbox-panel {
    position: absolute;
    padding: 1rem;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
}

[data-bs-theme=dark] .toolbox-panel {
    background-color: var(--bs-body-bg);
}

.toolbox-panel a {
    color: #212529;
    display: block;
    height: 30px;
    width: 30px;
    text-align: center;
    padding-top: 3px;
}

[data-bs-theme=dark] .toolbox-panel a {
    color: #fff;
}


.toolbox-panel a:focus, .toolbox-panel a:hover {
    background-color: #e9ecef;
}

[data-bs-theme=dark] .toolbox-panel a:focus, [data-bs-theme=dark] .toolbox-panel a:hover {
    background-color: #424649;
    border-color: #212529;
}

#board-name {
    outline: none;
    border: 0;
    padding: 3px;
    font-size: 10pt;
    width: 220px;
    border: 1px solid #F5F5F5;
    border-width: 1px 0;
    background-color: #fdfdfd;
}


[data-bs-theme=dark] #board-name {
    background-color: #191C1F;
    border: var(--bs-border-width) solid var(--bs-body-bg);
}

.toolbar-team {
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 55;
}

.toolbar-board .dropdown-menu {
    min-width: inherit;
}

.toolbar-board .dropdown-item {
    padding: .20rem 1rem;
}



.page-wrapper {
    width: 100%;
    height: 100%;
    z-index: 0;
}

[data-bs-theme=dark] .page-wrapper {
    /*background-color: #333333;*/
    background-color: #1C1C1C;
}

.canvas-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    overflow: hidden;
    width: 100%;
    height: 100%;
    direction: ltr;
}

.type-box {
    color: #101010;
    cursor: text;
    display: block;
    padding: 0;
    margin: 0;
    border: green dashed 1px;
    /*line-height: 25px !important;*/
    line-height: 100% !important;
    background: none;
    outline: none;
    /*   overflow: hidden;*/
    cursor: text;
    position: absolute;
    text-align: left;
    white-space: pre-wrap;
}

    .type-box:empty:before {
        color: silver;
        content: attr(data-placeholder);
        pointer-events: none;
    }

.note-box {
    color: #101010;
    cursor: text;
    display: inline-block;
    position: absolute;
    padding: 0;
    margin: 0;
    border: 0;
    resize: none;
    /*  line-height: 100% !important;*/
    background: none;
    outline: none;
    cursor: text;
    text-align: center;
    vertical-align: top;
    height: auto;
    overflow: hidden;
    overflow-wrap: break-word;
    white-space: pre-line;
}




.caret {
    font-family: system-ui;
    font-style: normal;
    font-weight: 700;
}

    .caret:before {
        color: #414040;
        content: "\203A";
        position: absolute;
        right: 3px;
        top: 20px;
    }



.overlay {
    font-family: monospace, Courier, Courier New, Open Sans;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    cursor: pointer;
    color: white;
    z-index: 9999;
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.zoomBox {
    text-align: center;
    padding: 5px 3px;
    background-color: #fdfdfd;
    width: 50px;
    display: inline-block;
    border: 1px solid #F5F5F5;
    border-left: 1px solid #fdfdfd;
    cursor: pointer;
}

[data-bs-theme=dark] .zoomBox {
    background-color: #191C1F;
    border: var(--bs-border-width) solid var(--bs-body-bg);
}

.zoomMenu {
    padding: 0;
    border-left: 0;
    background-color: #fff;
}

[data-bs-theme=dark] .zoomMenu {
    padding: 0;
    border-left: 0;
    background-color: #191C1F;
    --bs-btn-hover-bg: #845EC2;
    --bs-btn-hover-border-color: #191C1F;
}

    [data-bs-theme=dark] .zoomMenu:hover {
        background-color: #424649;
        border-color: #424649;
    }

input:invalid {
    background-color: pink;
    border-color: red !important;
    outline: 0 none !important;
    box-shadow: none !important;
}

.appBar {
    position: absolute;
    bottom: 0px;
    z-index: 55;
}


.dropBox {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    cursor: pointer;
    text-align: center;
    font-size: 40pt;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}


.colorItem {
    width: 24px;
    height: 24px;
    margin: 4px;
    user-select: none;
    cursor: pointer;
    display: inline-block;
}

.colorItem-small {
    margin: 1px;
}


@media only screen and (max-width: 1114px) {
    .large-hidden {
        display: none;
    }
}


@media only screen and (max-width: 1012px) {
    .medium-hidden {
        display: none;
    }
}

@media only screen and (max-width: 842px) {
    .small-hidden {
        display: none;
    }
}


@media only screen and (max-width: 578px) {
    .very-small-hidden {
        display: none;
    }

    .very-small-toolbar {
        font-size: .875rem;
        /*  position: absolute;
        top: 18px;
        right: 7px;
        z-index: 60;*/
    }


    .zoomBox {
        background-color: #fdfdfd;
        font-size: 0.7em;
        width: 30px;
        display: inline-flex;
        align-items: center;
        text-align: center;
        cursor: pointer;
    }
}

@media only screen and (max-width: 430px) {
    .hidden-toolbar {
        display: none;
    }
}


.loading {
    /*background-color: #845EC2;
    padding: 15px;
    border-radius: 5px;*/

    text-align: center;
    width: 250px;
}

    .loading span {
        animation-duration: 2s;
        animation-timing-function: ease-in-out;
        animation-delay: 0s;
        animation-iteration-count: infinite;
        animation-direction: normal;
        animation-fill-mode: none;
        animation-play-state: running;
        animation-name: placeholder-glow;
    }







/* nestable list */

.nestable {
    position: relative;
}

    .nestable .nestable-list {
        margin: 0;
        padding: 0 0 0 15px;
        list-style-type: none;
    }

    .nestable > .nestable-list {
        padding: 0;
    }

.nestable-item, .nestable-item-copy {
    margin: 10px 0 0;
}


    .nestable-item:first-child, .nestable-item-copy:first-child {
        margin-top: 0;
    }

    .nestable-item .nestable-list, .nestable-item-copy .nestable-list {
        margin-top: 10px;
    }

.nestable-item {
    position: relative;
}

    .nestable-item.is-dragging .nestable-list {
        pointer-events: none;
    }

    .nestable-item.is-dragging * {
        opacity: 0;
        filter: alpha(opacity=0);
    }

    .nestable-item.is-dragging:before {
        content: ' ';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(106, 127, 233, 0.274);
        border: 1px dashed rgb(73, 100, 241);
        -webkit-border-radius: 5px;
        border-radius: 5px;
    }

.nestable-drag-layer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
}


    .nestable-drag-layer > .nestable-list {
        position: absolute;
        top: 0;
        left: 0;
        padding: 0;
        background-color: rgba(106, 127, 233, 0.274);
    }


.nestable [draggable="true"] {
    cursor: pointer;
}

.nestable-handle {
    display: inline;
}
