:root {
    --font-IranYekan-primary: "Shabnam-Regular";
    --font-IranYekan-secondary-medium: "Shabnam-Medium";
    --font-IranYekan-secondary-bold: "Shabnam-Bold";
    --Inter-Light:"Inter-Light";
    --Inter-Regular:"Inter-Regular";
    --Inter-Medium:"Inter-Medium";
    --Inter-Bold:"Inter-Bold";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-IranYekan-primary);
    scrollbar-width: none;
    font-size: 62.5%;
}

body {
    scroll-behavior: smooth;
    line-height: 19.2px;
    -ms-overflow-style: none;
    direction: ltr;
    color: var(--text-primary);
    background-color: var(--bg-main);
    font-size: 1.6rem;
    display: flex;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font-IranYekan-primary);
    color: var(--text-primary);
    cursor: pointer;
}

input {
    font-family: var(--font-IranYekan-primary);

}

a {
    text-decoration: none;
    cursor: pointer;
}

li {
    list-style-type: none;
}

.icon {
    width: 2rem;
    height: 2rem;
}

.icon-color-stork {
    stroke: var(--icon-color);
}

.icon-color-fill {
    fill: var(--icon-color);
}

.icon-color-stork path {
    stroke: var(--icon-color);
}

.icon-color-fill path {
    fill: var(--icon-color);
}

.btn-h {
    display: flex;
}

.btn-h:hover {
    background-color: var(--bg-hover);
}

/*
===============
--- Tooltip ---
===============
*/


.editor__btn svg,
.editor__btn .icon {
    pointer-events: none;
}

.tooltip-box {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--tooltip);
    color: var(--text-primary);
    padding: .8rem 1.2rem;
    border-radius: .8rem;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
==================
---- Massage -----
==================
*/
.massage__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    min-width: 20rem;
    width: auto;
    direction: rtl;
    position: fixed;
    bottom: 2rem;
    right: 3.5rem;
    z-index: 200;
    background-color: var(--message);
    color: var(--message-text);
    padding: .8rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--message-border);
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.massage__container-active {
    opacity: 1;
}

.success-message {
    background-color: var(--success);
    color: var(--succes-text);
    border: 1px solid var(--succes-border);
}

.warning-message {
    background-color: var(--warning);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.error-message {
    background-color: var(--error);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.message__btn {
    background-color: transparent;
    border: none;
    border-radius: .5rem;
    padding: .4rem;
    transition: background-color .2s ease;
}

.message__btn:hover {
    background-color: rgba(44, 44, 44, 0.25);
}

.massage__container span {
    display: flex;
}

.error-icon {
    display: none;
}

.success-icon {
    display: none;
}

.massage__box-txt {
    line-height: 2;
}

.massage__title {
    font-family: var(--font-IranYekan-secondary-bold);
    font-size: 1.7rem;
}

.massage__txt {
    font-family: var(--font-IranYekan-secondary-bold);
}

/*
==================
---- Sidebar -----
==================
*/


.sidebar {
    width: 18%;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    height: 100vh;
    transition: all .2s ease-in-out;
}
.sidebar-show{
    left: 0 !important;
}
.sidebar__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.sidebar__top {
    align-items: center;
}

.sidebar__top-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.sidebar__top-logo div{
    display: flex;
    align-items: center;
    height: 5.9rem;
    margin: 0 1rem 0 1.5rem;
}
.sidebar__top-logo img {
    width: 16rem;
    height: 5rem;
}
.btn-hide-sidebar{
    display: none;
    border: none;
    margin-right: 1rem;
    background-color: transparent;
}
.btn-hide-sidebar span{
    display: flex;
}
.sidebar__top-layout {
    border: none;
    background-color: transparent;
    border-radius: .8rem;
    padding: .5rem;
    transition: all 0.2s ease;
    transform: rotate(180deg);
}

.sidebar__top-btn {
    display: flex;
    gap: .2rem;
    padding: 1rem .5rem 1rem 1rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.sidebar__top-btn-add {
    border: none;
    background-color: transparent;
    border-radius: .8rem;
    padding: .5rem;
    transition: background-color 0.2s ease;
}

.sidebar__main {
    padding: 1rem;
    height: 100%;
    transition: width .2s ease-in-out;
}

.sidebar__main-folder {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: .5rem;
    padding: .4rem;
    border-radius: .8rem;
    font-size: 1.4rem;
    transition: background-color .2s ease;
}
.sidebar__main-folder span{
    display: flex;
}
.sidebar__main-folder:hover {
    background-color: var(--bg-tab-sidebar);
}

.sidebar__main-show {
    margin-left: 1.5rem;
    margin-top: .5rem;
}

.sidebar__main-show img {
    width: 2.2rem;
    height: 2.2rem;
}

.sidebar-main-show__files {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar__main-file {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .4rem;
    margin-left: 1rem;
    cursor: pointer;
    border-radius: .5rem;
    padding: .5rem .7rem;
    background-color: transparent;
    border: none;
    transition: background-color 0.2s ease;
}

.active__sidebar {
    background-color: var(--bg-tab-sidebar) !important;
    position: relative;
}

.active__sidebar::after {
    content: '';
    position: absolute;
    margin-right: 3rem;
    left: -1rem;
    width: .4rem;
    height: 2rem;
    border-radius: 1rem;
    background-color:var(--primary-color);
}

.sidebar__main-file:hover {
    background-color: var(--bg-tab-sidebar);
}

.sidebar__main-file:focus {
    background-color: var(--bg-tab-sidebar);
    outline: none;
}

.sidebar__bottom {
    height: auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.sidebar__bottom-btn {
    display: flex;
    padding: .7rem;
    background-color: var(--bg-tab-active);
    border-radius: .8rem;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.sidebar__bottom-btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    background-color: var(--bg-tab-sidebar);

}


.modal__setting {
    position: absolute;
    bottom: 7rem;
    left: 5rem;
    z-index: 100;
    background-color: var(--bg-setting);
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: 1.4rem;
    min-width: 20rem;
    width: auto;
    direction: rtl;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.09);
    visibility: hidden;
    opacity: 0;
    transition: all 0.1s ease;
}
.modal__setting-active{
    opacity: 1;
    visibility: visible;
}
.setting__font {
    margin-bottom: 2rem;
}
.select-wrap p,
.setting__font-txt {
    margin-bottom: 1.5rem;
}


.setting__font-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.setting__font-show{
    background-color: var(--bg-setting-font);
    color: var(--text-primary);
    padding: .3rem;
    text-align: center;
    min-width: 7rem;
    width: 10rem;
    border-radius: .5rem;

}
.setting__font-btn {
    background-color: var(--bg-setting-btn);
    border: none;
    justify-content: center;
    padding: .5rem;
    border-radius: .5rem;
    transition: background-color .2s ease;
}
.setting__font-btn:hover{
    background-color: var(--bg-tab-active);
}
.select-wrap {
    position: relative;

}


.theme-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 1rem;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-tab-active);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    outline: none;
    cursor: pointer;
    min-width: 12rem;
    width: 100%;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    font-family: var(--font-IranYekan-secondary-medium);
}

.theme-select:hover {
    border-color: #346ea9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.theme-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.theme-select div {
    border-radius: 1rem;
}

.theme-select option {
    color: var(--text-primary);
    background: var(--bg-setting-btn);
}
.min-size-icon{
    display: none;
}
.modal__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.is-active {
    visibility: visible;
    opacity: 1;
}

.close-modal {
    display: flex;
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    border-radius: .8rem;
    padding: .5rem;
    cursor: pointer;
    border: 1px solid rgba(151, 151, 151, 0);
    transition: border 0.2s ease;
}

.close-modal:hover {
    border: 1px solid var(--border-color);
}


.modal__add {
    width: 100%;
    max-width: 40rem;
    min-height: 20rem;
    background-color: var(--bg-modal);
    padding: 4.5rem 2.5rem 2.5rem 2.5rem;
    border-radius: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal__sidebar.is-active .modal__add {
    transform: translateY(0);
}

.modal__sidebar-text {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-family: var(--font-IranYekan-secondary-bold);
    text-align: center;
}

.modal__input-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal__add-input {
    flex: 1;
    border: 2px solid var(--border-color);
    background-color: var(--bg-modal);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: .8rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal__add-input::placeholder {
    color: var(--text-primary);
    opacity: .5;
}

.modal__add-input:focus {
    border-color: var(--bg-modal-btn);
}

.modal__add-value {
    border: none;
    border-radius: .8rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--bg-modal-btn);
    display: flex;
    align-items: center;
    gap: .5rem;
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.value-file {
    position: absolute;
    bottom: -1.5rem;
    right: 7rem;
    width: 10rem;
    background-color: var(--bg-modal);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    border-radius: .8rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.value-file-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.value-file-item {
    cursor: pointer;
    padding: 0.8rem 2rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.value-file-item:hover {
    background-color: #2777bc;
    color: #ffffff;
}

.modal__add-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: .8rem;
    background-color: var(--bg-modal-btn);
    color: white;
    font-family: var(--font-IranYekan-secondary-bold);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 1rem;
}

.modal__add-btn:hover,
.modal__add-value:hover {
    background-color: #1487e4;
}

.massageModal {
    min-height: 2rem;
    font-size: 1.4rem;
    color: #f12d2d;
    text-align: right !important;
}


.ctx {
    display: none;
    flex-direction: column;
    align-items: end;
    min-width: 13rem;
    position: fixed;
    z-index: 99;
    border-radius: .8rem;
    background-color: var(--menuWorkspace);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--menuWorkspace);
}

.menuWorkspace__btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: end;
    background-color: var(--menuWorkspace);
    border: none;
    padding: 1rem 1rem;
    border-radius: .8rem;
    transition: background-color .2s ease, color .2s ease;
}

.menuWorkspace__btn:hover {
    background-color: var(--menuWorkspace-ac);
    color: white;
}

.ctx__btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: end;
    background-color: transparent;
    border: none;
    padding: 1rem 1rem;
    border-top-left-radius: .8rem;
    border-top-right-radius: .8rem;
    transition: background-color .2s ease, color .2s ease;
}

#menuItem > :last-child {
    color: rgb(239, 68, 68);
    border-radius: 0 0 .8rem .8rem;
}

#menuItem button svg path {
    transition: stroke .2s ease;
}

.delete path {
    stroke: #EF4444FF !important;
}

#menuItem > :last-child:hover {
    background-color: rgba(239, 68, 68, 0.16);
    color: #EF4444FF;
}

#menuItem button:hover {
    background-color: var(--menuWorkspace-ac);
    color: white;
}

#menuItem button:hover svg path {
    stroke: white;
}


.sidebar-hide{
    width: 6rem;
    transition: width .2s ease-in-out;
}
.sidebar-hide .sidebar__top-logo div{
    justify-content: center;

}
.sidebar-hide .sidebar__top-logo div{
    margin: 0 0 0 1.2rem;
}
.sidebar-hide .sidebar__top-logo div img{
    width: 3.5rem;

}
.sidebar-hide .sidebar__top-btn p,
.sidebar-hide .sidebar__main-folder p,
.sidebar-hide .sidebar__main-show{
    display: none;
}
.sidebar-hide .sidebar__main-folder,
.sidebar-hide .sidebar__top-btn{
    justify-content: center;
}
.sidebar-hide .sidebar__top-btn{
    padding: 1rem;
    width: 100%;
}
.sidebar-hide .sidebar__top-btn-add{
    padding: .7rem;
}
.sidebar-hide .sidebar__main-folder{
    padding: .7rem;
    width: 3.5rem;
    margin-left: .2rem;
}

.sidebar-hide .sidebar__bottom{
    flex-direction: column;
}
/*
=================
----- Main ------
=================
*/


.main {
    direction: ltr;
    width: 85%;
    transition: width .2s ease-in-out;
}

.header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: end;
    height: 6rem;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 .5rem;
}

.header-nav__manu {
    display: flex;
    align-items: center;
    gap: .7rem;
    border-radius: 10rem;
    padding: .5rem;
    background-color: var(--bg-menu);
    border: 1px solid var(--border-color);
    box-shadow: inset 0  0 10px rgba(0, 0, 0, 0.09);
    direction: rtl;
}

.header-nav__manu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    padding: .8rem 2rem;
    min-width: 15rem;
    font-size: 1.4rem;
    text-align: center;
    border-radius: 5rem;
    border: 1px solid rgba(0, 0, 0, 0);
    color: var(--text-primary);
    opacity: .7;
    transition: all 0.2s ease-in-out;
}

.header__login{
    display: flex;
    align-items: center;
    border-radius: 10rem;
    padding: .5rem;
    background-color: var(--bg-menu);
    border: 1px solid var(--border-color);
    direction: rtl;
}
.header__login-btn {
    display: flex;
    background-color:transparent;
    color: var(--text-primary);
    border-radius: 10rem;
    padding: .7rem 2rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.header__login-btn svg{
    display: flex;
    transform: rotate(180deg);
    margin-left: 1rem;
}


/*
============================
-------header mobile--------
============================
*/

.header__mobile{
    display: none;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}
.header__mobile-left{
    display: flex;
    align-items: center;

}
.header__mobile-btn{
    background-color: transparent;
    border: none;

}
.header__mobile-btn span{
    display: flex;
}
.header__mobile-btn span svg path{
    fill: #808080;
    stroke: rgba(89, 89, 89, 0);
}
.header__mobile-logo{
    width: 14rem;
    margin: .2rem 1rem 0 1rem;
}
.header__mobile-right{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header__mobile-menu{
    display: flex;
    align-items: center;
    gap: .2rem;
    background-color:var(--bg-menu-mobile);
    border-radius: 1rem;
    padding:.8rem 1rem;
    cursor: pointer;
    color: white;
}
.btn-user{
    display: flex;
    padding: 1rem;
    border-radius: 20rem;
    background-color: rgba(185, 185, 185, 0.4);
}

.header__mobile-menu span{
    display: flex;
}
.header__mobile-menu-icon{
    transition: transform .2s ease;
}

.manu__mobile-modal{
    position: absolute;
    right: 10rem;
    top: 7rem;
    background-color: var(--bg-menu-mobile);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    padding: 1rem;
    gap: .4rem;
    visibility: hidden;
    opacity: 0;
    transform: scale(.4);
    transition: all .2s ease;
}
.manu__mobile-modal-active{
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    z-index: 30;
}
.modal-item{
    background-color: transparent;
    border: none;
    padding: 1.2rem 1.2rem 1.2rem 10rem;
    text-align: right;
    border-radius: .7rem;
    color: white;


}
.modal-item-active{
    background-color:var(--bg-tab-active);


}
/*
====================
----- Editor -------
====================
*/

.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 92vh;
    max-height: 92vh;
}

.editor__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .6rem 1rem 0 .8rem;
}

.editor__file {
    display: flex;
    width: 92%;
    margin: 0 2rem 0 0;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 1rem;
}

.editor__file-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-tab);
    border-radius: 1rem;
    width: auto;
    padding: .6rem .6rem;
    transition: background-color 0.2s ease, border 0.2s ease;
}

.close-btn-box {
    display: flex;
    justify-content: center;
    width:3.29rem ;
    margin: 0 .5rem;
}

.tab-close {
    width: auto;
    height: 1.8rem;
    padding: .3rem;
    border-radius: .4rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-right: 3px;
}


.editor__file-btn p {
    padding-top: .2rem;
    width: 100%;
}

.editor__file-btn img {
    width: 2rem;
    height: 2rem;
}

.editor__file-btn svg:hover {
    background: rgba(224, 108, 117, 0.2);
    transform: scale(1.1);
}

.editor__file-btn svg:hover path {
    stroke: #e06c75;
}

.editor__file-btn svg path {
    transition: stroke 0.2s ease;
}

.editor__top-btn-box {
    display: flex;
    justify-content: end;
    min-width: 9rem;
}

.editor__top-btn-run {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: .5rem;
    border-radius: 1rem;
    padding: .6rem .6rem;
    transition: background-color 0.2s ease;
}

.editor__top-btn-run svg {
    width: 1.6rem;
    height: 1.6rem;
}


.editor__container {
    border: 1px solid var(--border-color);
    border-radius: .7rem;
    margin: .6rem;
    background-color: var(--bg-editor);
    padding: 1rem 0;
    color: var(--text-primary);
    height: 100%;
}

.editor__top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-editor);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem 1rem 3rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;

}

#activeFileLabel {
    color: var(--text-primary);
    font-size: 1.4rem;
}

.editor__top-right {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    gap: .5rem;
}

.editor__line {
    margin-right: 1rem;
    padding-top: .2rem;
}

.editor__fileName {
    border-right: 1px solid #cccccc;
    padding-right: 1rem;
    padding-top: .2rem;

}

.editor__top-btn {
    display: flex;
    gap: 1rem;
}

.editor__btn {
    background-color: rgba(200, 200, 200, 0);
    border: none;
    border-radius: .8rem;
    padding: .5rem;
    transition: background-color 0.2s ease;
}


.editor__topbar {
    height: 4.8rem;
    border-bottom: 1px solid #cfcfcf;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    background: #fff;
}
.editor__container-box {
    display: flex;
    flex-direction: column;
    height: 92%;
    overflow: hidden;
}

.editor-previewFrame {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

#monacoEditor {
    width: 50%;
    height: 100%;
    min-width: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.editor__resizer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5px;
    cursor: col-resize;
    background: var(--border-color);
    transition: background 0.2s;
}

.editor__resizer:hover,
.editor__resizer.is-dragging {
    background: var(--primary-color);
}
.editor__resizer span{
    display: flex;
    z-index: 2;
    opacity: .4;
}
.editor__preview-frame {
    width: 50%;
    height: 100%;
    min-width: 0;
    background: var(--bg-editor);
}

#previewFrame {
    border: 1px solid transparent;
}

.previewFrame-hide {
    display: none !important;
    width: 0 !important;
}
.terminal__resizer {
    justify-content: center;
    align-items: center;
    height: 5px;
    cursor: row-resize;
    background: var(--border-color);
    opacity: .4;
    flex-shrink: 0;
    transition: background 0.2s;
}

.terminal__resizer:hover,
.terminal__resizer.is-dragging {
    background: var(--primary-color);
    opacity: 1;
}

.terminal__resizer span{
    transform: rotate(90deg);
    z-index: 10;
    display: flex;
}
.terminal {
    height:20rem;
    border-top: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
}

.terminal__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-terminal-menu);
    border-bottom: 1px solid var(--border-color);
}

.terminal__top-tab {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    position: relative;
    padding-left: 2rem;
}
.terminal__top-tab::after{
    content: '';
    background-color: #98C379;
    width: 1rem;
    height: 1rem;
    border-radius: 10rem;
    position: absolute;
    left: 0;
    animation: terminal-a 3s ease-out infinite normal;
    opacity: 0;
}
@keyframes terminal-a {
    0%{
        opacity: .25;
    }
    25%{
        opacity: .50;
    }
    50%{
        opacity: .75;
    }
    75%{
        opacity: 1;
    }
    100%{
        opacity: .25;
    }
}
.terminal__top-tab p {
    padding-top: .35rem;
    padding-left: .6rem;
}

.terminal__top-buttons {
    display: flex;
    align-items: center;
}

.terminal__top-button {
    background-color: var(--bg-tab-active);
    border: 1px solid var(--bg-tab);
    border-radius: 10rem;
    padding: .7rem;
    margin-left: .5rem;
    transition: all .2s ease;
}

.terminal__top-button:hover {
    background-color: var(--bg-hover);
}

.terminal__top-button span {
    display: flex;
}

.delete-terminal {
    background-color: rgba(239, 68, 68, 0.16);
}

.delete-terminal:hover {
    background-color: rgba(255, 107, 107, 0.34);
}

.delete-terminal span svg path {
    transition: stroke 0.2s ease;
}

.delete-terminal:hover span svg path {
    stroke: #ff6b6b;
}

.terminal__line {
    font-size: 1.2rem;
    background-color: var(--bg-tab-active);
    border-radius: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 2.5rem;
    padding-top: .3rem;
    border: 1px solid var(--border-color);
}

.terminal__body {
    flex: 1;
    overflow-y: auto;
    padding: .6rem 1.2rem;
    font-family: "Courier New", monospace;
    background-color: var(--bg-terminal);
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.terminal__entry {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .2rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-terminal);
}

.terminal__entry:last-child { border-bottom: none; }

.terminal__entry-source {
    color: #5e5e5e;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.terminal__entry-text {
    word-break: break-all;
    white-space: pre-wrap;
}
.terminal.terminal-open {
    display: flex;
}
.terminal__entry.log   .terminal__entry-text { color: var(--text-primary); }
.terminal__entry.warn  .terminal__entry-text { color: #f1c40f; }
.terminal__entry.error .terminal__entry-text { color: #ef4444; }
.terminal__entry.info  .terminal__entry-text { color: #3b82f6; }



.footer__developer{
    background-color: transparent;
    padding: .5rem 0;
    margin-right: 7rem;
    direction: rtl;
}
.footer__developer-text{
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: lighter;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.footer__developer-text svg{
    display: flex;
    margin: 0 .3rem;
}
.footer__developer-link{
    color: var(--primary-color);
    margin: 0 .5rem;

}