﻿
/*          ادیتور          */

:root {
    --border-dynamic: rgba(0, 188, 212, .625);
    --dark-blue: #121225;
    --light: #d6d6d6;
}



.editor {
    border: 1px solid #ccc;
    min-height: 200px;
    direction: rtl;
    text-indent: 10px;
    white-space: pre-wrap;
    box-sizing: border-box !important;
    position: relative;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    /*    background-clip: padding-box;*/
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
 .full-screen{
 overflow-y: scroll;
}

    .editor div {
        border: #01204E dashed 1px;
        padding: 3px;
    }


 .editor p {
       border: #EE4E4E 1px dashed;
        padding: 3px;
    }
    .editor:focus {
        border: solid 2px rgba(0, 153, 255, 0.5);
        border-color: rgba(0, 153, 255, 0.5); /* رنگ آبی کم رنگ با پخش شدگی رنگ */
        outline: none; /* حذف outline پیش‌فرض مرورگر */
    }

.editor-toolbar {
    position: relative;
}


.editor-toolbar {
    background: var(--dark-blue) !important;
    padding: 0.2rem;
    border-radius: 0.4rem;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

    .editor-toolbar button {
        margin-right: 5px;
        background: none;
        border: none;
        font-size: 18px;
        box-shadow: unset !important;
        color: rgb(241, 241, 241);
    }

.icon-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    max-width: 500px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
}

.icon-picker-item {
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    font-size: 24px;
    position: relative;
}

    .icon-picker-item:hover::after {
        content: "";
        position: absolute;
        bottom: -10px;
        right: -10px;
        width: 20px;
        height: 20px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 50%;
        cursor: nwse-resize;
    }

.icon-picker-dropdown .search-box {
    margin-bottom: 10px;
    display: block !important;
}

.source-view {
    background-color: #f1f1f1;
    color: #333;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    direction: ltr;
}





#image-menu {
    display: none;
    position: absolute;
    background: #f1f1f1;
    padding: 10px;
    border: 1px solid #ccc;
    max-width: 400px;
    z-index: 1000;
}


.editor pre {
    background-color: #f1f1f1;
}


/* تراز بندی چپ */
.justify-left {
    text-align: left;
}

/* تراز بندی وسط */
.justify-center {
    text-align: center;
}

/* تراز بندی راست */
.justify-right {
    text-align: right;
}

/* تراز بندی کامل */
.justify-full {
    text-align: justify;
}
/* جهت راست به چپ */
.dir-rtl {
    direction: rtl;
}
/* جهت   چپ به راست */
.dir-ltr {
    direction: ltr;
}
/* استایل برای دکمه‌های تراز بندی */
.editor-toolbar button {
    background-color: transparent; /* پس‌زمینه شفاف */
    border: none; /* حذف حاشیه */
    cursor: pointer; /* تغییر شکل نشانگر */
}

    /* حالت فعال برای دکمه‌ها */
    .editor-toolbar button.active {
        background-color: white; /* پس‌زمینه سفید */
        color: black; /* رنگ آیکن سیاه */
    }


.popUp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    background: rgba(245, 245, 245, 0.966);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 20px;
    display: flex;
    border: #121225 solid 1px;
    flex-direction: column;
}

.popUpSetting {
    position: absolute;
    top: 0;
    width: 100%;
    background-image: linear-gradient(135deg, rgba(159, 159, 159, 0.46) 0%, rgba(159, 159, 159, 0.46) 14.286%, rgba(165, 165, 165, 0.46) 14.286%, rgba(165, 165, 165, 0.46) 28.572%, rgba(171, 171, 171, 0.46) 28.572%, rgba(171, 171, 171, 0.46) 42.858%, rgba(178, 178, 178, 0.46) 42.858%, rgba(178, 178, 178, 0.46) 57.144%, rgba(184, 184, 184, 0.46) 57.144%, rgba(184, 184, 184, 0.46) 71.43%, rgba(190, 190, 190, 0.46) 71.43%, rgba(190, 190, 190, 0.46) 85.716%, rgba(196, 196, 196, 0.46) 85.716%, rgba(196, 196, 196, 0.46) 100.002%), linear-gradient(45deg, rgb(252, 252, 252) 0%, rgb(252, 252, 252) 14.286%, rgb(246, 246, 246) 14.286%, rgb(246, 246, 246) 28.572%, rgb(241, 241, 241) 28.572%, rgb(241, 241, 241) 42.858%, rgb(235, 235, 235) 42.858%, rgb(235, 235, 235) 57.144%, rgb(229, 229, 229) 57.144%, rgb(229, 229, 229) 71.43%, rgb(224, 224, 224) 71.43%, rgb(224, 224, 224) 85.716%, rgb(218, 218, 218) 85.716%, rgb(218, 218, 218) 100.002%);
    border-radius: 8px;
    z-index: 100;
    padding: 20px;
    display: flex;
    border: #121225 solid 1px;
    flex-direction: column;
}

#output {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 10px;
    margin-top: 100px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    transition: all 0.3s ease;
}

.containerSetting {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.colSetting {
    flex: 1;
    margin: 10px;
    min-width: 200px;
    max-width: 300px;
    padding: 20px;
    border-radius: 10px;
}

    .colSetting input {
        width: 100%;
    }

@media (max-width: 1200px) {
    .colSetting {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .colSetting {
        flex: 1 1 calc(100% - 20px);
    }
}


.btn-close {
    border: unset !important;
    background: unset !important;
    font-size: 25px !important;
    margin-top: -25px;
}

.popUp-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    right: 0;
    align-items: center;
    padding: 0 !important;
    margin-top: -10px;
    margin-bottom: 25px;
}

    .popUp-header h5 {
        font-size: 15px;
    }

.popUp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.774);
    z-index: 99;
}

@media (max-width: 600px) {
    .popUp {
        width: 90%;
    }
}

.editor-toolbar input {
    background-color: transparent;
    color: var(--light);
    padding: 2px;
    border: 1px var(--light) solid;
    border-radius: 0.5rem;
    outline: none;
}

    .editor-toolbar input::placeholder {
        color: rgba(241, 241, 241, 0.568); /* یا هر رنگی که می‌خواهید */
    }

.editor-toolbar select {
    background-color: transparent;
    color: var(--light);
    padding: 2px;
    width: auto;
    margin-left: 5px;
    margin-right: 5px;
    border: 1px var(--light) solid;
    border-radius: 0.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    outline: none;
}



    .editor-toolbar select option {
        background-color: var(--dark-blue);
        direction: rtl;
    }

.number-input-container {
    display: flex;
    max-width: 300px;
    position: absolute;
    z-index: 100;
    padding: 1rem;
    background-color: silver;
    border-radius: 10px;
    left: 0;
}

.editor-toolbar-mnu {
    position: absolute;
    background: var(--dark-blue) !important;
    padding: 0.25rem;
    border-radius: 0.4rem;
}

    .editor-toolbar-mnu button {
        margin-right: 5px;
        background: none;
        border: none;
        font-size: 18px;
        box-shadow: unset !important;
        color: rgb(241, 241, 241);
    }


.class-item {
    display: inline-block;
    margin-right: 10px;
    margin-top: 5px;
}

.remove-btn {
    margin-left: 5px;
    color: red;
    cursor: pointer;
}

.suggestion-list {
    position: absolute;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
}

.popUp div {
    position: relative;
}

.suggestion-item {
    padding: 5px;
    cursor: pointer;
}

    .suggestion-item:hover {
        background-color: #f0f0f0;
    }

.icon-picker-dropdown input {
    width: 100%;
    color: rgba(0, 0, 0, 0.712);
    padding-right: 5px;
}

    .icon-picker-dropdown input::placeholder {
        color: rgba(5, 5, 5, 0.651); /* یا هر رنگی که می‌خواهید */
        padding-right: 5px;
    }
/* استایل اسکرول‌بار */
.icon-picker-dropdown::-webkit-scrollbar {
    width: 8px; /* عرض اسکرول‌بار */
    background-color: rgba(241, 241, 241, 0.281); /* پس‌زمینه اسکرول‌بار */
}

.icon-picker-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5); /* رنگ دستگیره اسکرول‌بار */
    border-radius: 10px; /* گرد کردن دستگیره */
}

    .icon-picker-dropdown::-webkit-scrollbar-thumb:hover {
        background-color: rgba(100, 100, 100, 0.7); /* رنگ هنگام هاور */
    }

.icon-picker-dropdown::-webkit-scrollbar-track {
    background-color: rgba(241, 241, 241, 0.281); /* پس‌زمینه مسیر */
    border-radius: 10px; /* گرد کردن پس‌زمینه */
}

.icon-picker-dropdown::-webkit-scrollbar-corner {
    background-color: transparent; /* رنگ گوشه */
}

.icon-list i {
    padding: 3px;
    font-size: 1.3rem;
}




/* تغییر نشانگر موس */
.arrows-cursor {
    cursor: url('/arrows.svg') 20 20, auto;
}

.arrows-angle-expand-cursor {
    cursor: url('/arrows-angle-expand.svg') 10 10, auto;
}
/*----------------------------------------------*/



/* استایل برای نمایش کد */
.editor.source-view pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap; /* برای چرخش کد در صورت نیاز */
    word-wrap: break-word;
    font-family: monospace;
    font-size: 14px;
    color: #333;
}
