@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PEYDA-REGULAR.TTF') format('truetype'),
    url('../fonts/PeydaWeb-Regular.eot') format('eot'),
    url('../fonts/PeydaWeb-Regular.woff2') format('woff2'),
    url('../fonts/PeydaWeb-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Peyd bold';
    src: url('../fonts/PEYDA-EXTRABOLD.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'yekan';
    src: 
        /* url('../fonts/B-Yekan-Bold.woff2') format('woff2'),
        url('../fonts/BYekan.woff') format('woff'),  */
        url('../fonts/BYekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'peyda', sans-serif;
}

:root{
    /* ===== Colors ===== */
    --body-color: #e8e8e8;
    --body-color-sh01:#cccccc;
    --body-color-sh02:#ffffff;
    --sidebar-color: #FFF;
    --primary-color: #eb2220;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDD;
    --text-color: #707070;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

body{
    font-family: 'Peyda', sans-serif;
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);

}

::selection{
    background-color: red;
    color: #fff;
}

body.dark{
    --body-color: #23272f;
    --body-color-sh01:#1c1f25;
    --body-color-sh02:#2a2f39;
    --sidebar-color: #191c23;
    --primary-color: #2a3241;
    --primary-color-light: #2a3241;
    --toggle-color: #fff;
    --text-color: #ccc;
    --bs-body-bg:#2a3241;
    --bs-tertiary-bg:#5a5a5a;
    --bs-body-color:#ffffff;
    --bs-btn-active-bg:#146c43b5;
    --bs-btn-bg: #dc35456e;
}
a{
    text-decoration:none;
}
/* ===== Sidebar ===== */
 .sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;  
}
.sidebar.close{
    width: 88px;
}

/* ===== Reusable code - Here ===== */
.sidebar li{
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon{
    min-width: 70px;
    border-radius: 6px;
}

.sidebar .icon{
    min-width: 60px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar .text,
.sidebar .icon{
    color: var(--text-color);
    transition: var(--tran-03);
}
.ypkdatatable td::before{
    color: var(--text-color) !important;
}

.sidebar .text{
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
}
.sidebar.close .text{
    opacity: 0;
}
/* =========================== */

.sidebar header{
    position: relative;
}

.sidebar header .image-text{
    display: flex;
    align-items: center;
}
.sidebar header .logo-text{
    display: flex;
    flex-direction: column;
}
header .image-text .name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 600;
}

header .image-text .profession{
    font-size: 16px;
    margin-top: -2px;
    display: block;
}

.sidebar header .image{
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar header .image img{
    width: 80px;
    border-radius: 6px;
}

.sidebar header .toggle{
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%) rotate(0deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
}

body.dark .sidebar header .toggle{
    color: var(--text-color);
}

.sidebar.close .toggle{
    transform: translateY(-50%) rotate(180deg);
}

.sidebar .menu{
    margin-top: 30px;
}

.sidebar li.search-box{
    border-radius: 6px;
    background-color: var(--primary-color-light);
    cursor: pointer;
    transition: var(--tran-05);
}

.sidebar li.search-box input{
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    background-color: var(--primary-color-light);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    transition: var(--tran-05);
}
.sidebar li a{
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}


.sidebar li a:hover{
    background-color: var(--primary-color);
}

.menu-links .nav-link.active > a,.menu-links .nav-link.active > a .text,.menu-links .nav-link.active > a .icon {
    background-color: var(--primary-color);
    color: #fff;
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text{
    color: var(--sidebar-color);
}
body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text{
    color: var(--text-color);
}

.sidebar .menu-bar{
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
    overflow-x: hidden;
}
.menu-bar::-webkit-scrollbar{
    display: none;
}
.sidebar .menu-bar .mode{
    border-radius: 6px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
}

.menu-bar .mode .sun-moon{
    height: 50px;
    width: 60px;
}

.mode .sun-moon i{
    position: absolute;
}
.mode .sun-moon i.sun{
    opacity: 0;
}
body.dark .mode .sun-moon i.sun{
    opacity: 1;
}
body.dark .mode .sun-moon i.moon{
    opacity: 0;
}

.menu-bar .bottom-content {
    position: sticky;
    bottom: 0;
    background-color:var(--sidebar-color);
    border-radius: 0.5rem;
}
.menu-bar .bottom-content .toggle-switch{
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}
.toggle-switch .switch{
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before{
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: var(--tran-04);
}

body.dark .switch::before{
    left: 20px;
}
.home{
    left:0;
    position: absolute;
    top: 0;
    height: 100vh;
    width: calc(100% - 250px);
    background-color: var(--body-color);
    transition: var(--tran-05);
}
.home .text{
    font-weight: 500;
    color: var(--text-color);
}

.sidebar.close ~ .home{
    height: 100vh;
    width: calc(100% - 78px);
}
body.dark .home .text{
    color: var(--text-color);
}
body.dark nav.sidebar header .image-text .image img {
    filter: invert(1);
}

ol, ul {
    padding-left: 0rem;
}
.is-invalid {
    border-color: #dc3545 !important;
    }

.invalid-feedback {
    display: block;
}
.login-bg-t {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.login-wrapper {
    background: rgba(39, 39, 53, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(80, 77, 74, 0.25);
}

.form-control:focus ,.form-select:focus{
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 .25rem rgb(255 0 0 / 25%) !important;
}
.form-control option:hover{
    background-color: #ffcccc !important; 
    color: #ff0000 !important; 
}
.card{
    border-radius: 10px;
    background-color: var(--body-color);
    box-shadow:  5px 5px 10px var(--body-color-sh01),
             -5px -5px 10px var(--body-color-sh02);
    color: var(--text-color);
}
table{
    border-color: transparent !important;
}
table td,
table th {
    background-color: transparent !important;
    color: var(--text-color) !important;
}
form input::placeholder{
    color: var(--text-color) !important;
}

input::placeholder {
  color: var(--text-color) !important;
}

.card-body .list-group-item{
background-color: transparent;
color: var(--text-color);
}
.login-wrapper .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-wrapper .card-body > *:not(.logo-wrapper) {
    width: 100%;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}
.logo-wrapper > div {
    width: 6rem;
    aspect-ratio: 1/1;
}
.logo-wrapper > span {
    position: absolute;
    top: 50%;
    transform: translate(0 ,-50%);
    right: 2rem;
    cursor: pointer;

    /*border: solid 1px red;*/
}
.logo-wrapper > span i {
    color: #BB4947;
    font-size: 2.3rem;
    transition: transform 0.3s ease;
}
.logo-wrapper > span:hover i{
        transform: translateX(5px);
}
.neon {
    fill: none;
    stroke: #ff7676;
    stroke-width: 1;        
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 7px #ff0000)
    drop-shadow(0 0 5px #bc3a3a);
    animation: neon-blink 5s infinite alternate;
}

@keyframes pulse {
    0%, 100% { stroke-opacity: .9; }
    50% { stroke-opacity: 0.5; }
}
@keyframes neon-blink {
  44% {
    opacity: 1;
  }
  
  45% {
    opacity: .7;
  }
  
  46% {
    opacity: 1;
  }
  
  98% {
    opacity: 1;
  }
  
  99% {
    opacity: .5;
  }
  
  100% {
    opacity: 1;
  }
}


.input-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-input-wrapper {
    position: relative;
}

.fixed-part {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    pointer-events: none;
    border-right: solid 1px;
    padding-right: 8px;
}

input[id="cuname"] {
    padding: 10px 10px 10px 45px;
    text-align: left;
}

.login-input-t {
    width: 100%;
    background-color: rgba(30, 30, 30, 0.47);
    border: 1px solid rgba(115, 110, 110, 0.35);
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: background-color .3s;
}

.login-input-t::placeholder {
    color: #fff;
    text-align: right;
}

.login-input-t:focus {
    background-color: rgba(30, 30, 30, 0.71);
    border: 1px solid rgba(115, 110, 110, 0.35);
    box-shadow: none;
    color: white;
}

.login-btn-t {
    background: #ed6060 !important;
    color: white !important;
}

.step2 {
    /*border: solid 1px red;*/
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-content: end;
    gap: .5rem;
    margin-bottom: .5rem;
}

.step2 > div {
    cursor: pointer;
}

#step2-otp > .login-input-t {
    text-align: center;
    letter-spacing: .5rem;
}

.step2 h5,
.step2 p {
    color: white;
}

.step2 div {
    color: #7bb1f4;
}
@media only screen and (max-width: 768px) {
    .home {
        width: calc(100% - 90px) !important; 
    }
    .sidebar.close ~ .home {
        width: calc(100% - 90px) !important;
    }
    .dataTables_length , .dataTables_filter{
        display: inline-block;
        width: 48%;
    }
    .ypkdatatable thead {
        display: none;
    }
    table {
        padding: 1rem 0;
    }
    .ypkdatatable table{
        border: none !important;
    }
    .ypkdatatable tbody td> table td{
        display: block;
        width: 100%;
        border: 0 !important;
    }
    .ypkdatatable tbody tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .ypkdatatable tbody td {
        width: 100%;
        box-sizing: border-box;
        padding: 0.5rem;
        border: none !important;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .ypkdatatable tbody tr:has(td:nth-child(odd)) td:last-child {
        width: 100% !important;
        border-left:none !important;
    }
    table.dataTable tbody tr{
        background-color: #9b9b9b63 !important;
        box-shadow: 0 0 3px #000000 inset;
    }
    .ypkdatatable tbody td:nth-child(odd){
        /* border-left: 1px solid #efefef !important; */
    }
    .ypkdatatable td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #444;
        margin-bottom: .25rem;
    }
    .ypkdatatable td{
        display: flex;
        flex-flow: wrap;
        width: 100%;
    }
    .steps-container{
            flex-direction: column;
    }
    label {
    font-size: 13px;
    }
    
    #chatSection{
        flex-direction: column-reverse;
    }
    .reposive-row{
        display: flex;
        flex-direction: column;
    }
}

/* //has submneu */
li.has-submenu {
    /*position: relative;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px !important;
    height: 100%;

    transition: 2s;

    /*border: solid 1px red;*/
}
.has-submenu a {
    display: flex;
    height: 50px !important;
}

.has-submenu ul {
    width: 100%;

    /*border: solid 1px blue;*/
}
.has-submenu ul li {
    /*border: solid 1px green;*/
    margin: 5px 0;
}

.the-submenu {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
}
.the-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.the-submenu.open {
    display: block;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
}
.toggle-submenu {
    max-height: 0 !important;
    opacity: 0;
}
.submenu-icon {filter: invert(21%) sepia(70%) saturate(6203%) hue-rotate(355deg) brightness(102%) contrast(85%);
    position: relative;

    /*border: solid 1px red;*/
}
.submenu-icon:before {
    content: ' \25C8';
    font-style: normal;

    filter: invert(21%) sepia(70%) saturate(6203%) hue-rotate(355deg) brightness(102%) contrast(85%);
}

.sidebar .menu-bar{
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;

}
.menu-bar::-webkit-scrollbar{
    display: none;
}
.sidebar .menu-bar .menu {
    scrollbar-color: var(--primary-color) #00000000;
    /*direction: ltr;*/

}


.sidebar .menu-bar .mode{
    border-radius: 6px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
}
/*  buyteps  */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
}
.step .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step.done .circle {
    background-color: #28a745;
}
.step .label {
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}
.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* jquery fix */
table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
    text-align: right !important;
}

/*  buysteps  */
/*#order-status {*/
/*    display: flex;*/
/*    !*justify-content: center;*!*/
/*    !*align-items: center;*!*/

/*    border: solid 1px chocolate;*/
/*}*/
.steps-container-wrapper {
        width: 90%;
}
.steps-container {
    margin-top: 2rem;
    /*border: solid 1px red;*/
    isolation: isolate;
    display: flex;
    /*align-items: center;*/
    /*justify-content: center;*/
    gap: .5rem;
    /*width: fit-content;*/

    /*margin: auto;*/

    /*display: grid;*/
    /*grid-template-columns: repeat(12, 7rem);*/
    flex-direction: row-reverse;
    position: relative;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;

    /*flex-basis: rem;*/
    flex: 0 0 4.5rem;
    /*flex: 0 0 6rem;*/

    /*border: solid 1px green;*/

    /*justify-content: center;*/
}

@media only screen and (max-width: 1350px) {
    .step {
        flex-direction: row;
        flex: 0 0 4rem;
        gap: .75rem;
        padding-right: 1rem;
        border-radius: 1rem;

        /*border: solid 1px #6bea6b;*/
        /*box-shadow: #0a53be 0 0 8px;*/
        box-shadow: 3px 3px 10px rgba(0,0,0,1),
        -1px -1px 6px rgba(255, 255, 255, 0.4);
        /*width: 12rem !important;*/
        margin: auto 1rem;
    }


    .step-progress-line {
        display: none;
    }
    .steps-container{
        flex-direction: column;
    }

}

.step .circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.step .circle::before {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    border-color: inherit;
    border: solid 1px #7EC9C2;
    scale: 1.1;
}

.step .label {
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}
.step.done .circle {
    background-color: #7EC9C2;
}
.step.pending .circle {
    background-color: #fcd34d;
}





.step-progress-line {
    position: absolute;
    top: 17px;
    left: 0;
    z-index: -1;
    /*width: 100%;*/
    height: .4rem;
    /*background-color: #fcd34d;*/
    background: #bfd1ec;

    width: 75%;
}

.step-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.4s ease;

    /*background: linear-gradient(90deg, #7EC9C2 60%, #DDA800);*/
    background: #7EC9C2;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background: #5d95e8;
    border-radius: 50%;
    border: solid 1px #ff002f;
}
.alert ul li {
    list-style-type: none;
}
.form-select option:hover {
    background-color: red !IMPORTANT;
}
.form-select option:first-of-type {
  border-radius: 8px 8px 0 0;
}

.form-select option:last-of-type {
  border-radius: 0 0 8px 8px;
}
.select2-results__options li{
    color: black;
}
.form-check-input.toggle-danger:checked {
    background-color: #dc3545; /* رنگ danger */
    border-color: #dc3545;
}
.form-check-input.toggle-danger:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5);
}
/* دکمه ثبت درصد پیش پرداخت*/
/* input-group یک خطی */
.prepayment-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* input همیشه کشیده باشه */
.prepayment-input {
    flex: 1 1 auto;
    transition: all 0.3s ease;
}

/* دکمه‌ها پنهان در حالت عادی */
.prepayment-item .btn {
    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* وقتی روی همون سطر هاور شد → input جمع بشه و دکمه‌ها ظاهر شن */
.prepayment-item:hover .prepayment-input {
    flex: 1 1 auto;
    max-width: calc(100% - 70px); /* جا برای دکمه‌ها */
}

.prepayment-item:hover .btn {
    width: auto;
    padding: 0 8px;
    opacity: 1;
    margin-left: 3px;
}
.card-header{
    background-color: rgb(90 112 134 / 12%) !important;
    display: flex;
    align-items: center;
}

/* ================-------------------=========================-------------------------==================== */
#chat-sb {
    /* border: solid 1px #000; */
    overflow-y: auto;
    padding: .5rem;

}
#chat-box{
      scrollbar-color: rgba(148, 148, 148, 0.7) rgba(0,0,0,0);
}


li.list-group-item.list-group-item-action
{
    background: url('../media/img/chat-list-bg.jpg');
    background-position: center;
    color: white;
    transition: background-position .7s ease-in-out;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

li.list-group-item.list-group-item-action:hover {
    background-position: right;
}
.active-conv {
    background-color: #ffbaba !important; /* رنگ متفاوت */
    background-position: right !important;
    border-left: 5px solid #dc3545; /* خط قرمز سمت راست */
}
#chat-main {
    background: url('../media/img/chatbg.webp');

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    padding: .5rem;
    position: relative;
}
#chat-main:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(12, 12, 12, 0.71);
}

#chat-main #chat-header{
    background: rgba(255,255,255,0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
}

#chat-main #chat-header {
    border-radius: .5rem .5rem 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c2c2e;
}

#chat-main #chat-box {
    border: none !important;
}

#chat-main #chat-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

#chat-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

/*#chat-footer textarea,*/
#chat-footer #sendMsg {
    background: rgba(255,255,255,0.5);
}

#chat-footer textarea {
    border: none;
    /*width: auto !important;*/
    width: 100% !important;
    background: none;
}
#chat-footer textarea:focus {
    outline: none;
    box-shadow: none !important;
}

#chat-footer #sendMsg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem !important;
    height: 3rem !important;
}
/*Chat Main*/
.chat-wrapper {
    background: rgba(255,255,255,0.5);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /*gap: .5rem;*/
    flex: 1 1 auto;
    border-radius: .75rem !important;
    overflow: hidden;
    /*padding-inline: .5rem;*/
}
#mainChatBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100% !important;
}
#uploadFileInput {
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
label[for="chatFile"] {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin: 0 !important;
    transform: scale(1);
    transition: transform .2s;

    display: flex;
    justify-content: center;
    align-items: center;
}
label[for="chatFile"]:hover {
    /*background: rgba(255,255,255,0.5);*/
    transform: scale(1.2);
    /*transition: transform .5s;*/
}

#selectedFile {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,0.2);
    padding: 0 10px;
}
#selectedFileName {
    direction: rtl;
}










/*Chat Box*/
.text-start > span,
.text-end > span {
    padding: .6rem .5rem;
    border-radius: .5rem;

    position: relative;
}

.text-start > span {
    --tri-clr: #5d95e8;
    background: var(--tri-clr) !important;
}

.text-end > span {
    --tri-clr: #f33d4c;
    background: var(--tri-clr) !important;
}

.text-start > span::before,
.text-end > span::before {
    --tri-size: 10px;
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;   
    height: 0;
    border-left: var(--tri-size) solid transparent;
    border-right: var(--tri-size) solid transparent;
    /*border-bottom: var(--tri-size) solid var(--tri-clr);*/
}

.text-end > span::before {
    right: -5px;
    border-bottom: var(--tri-size) solid var(--tri-clr);
}

.text-start > span::before {
    left: -5px;
    border-bottom: var(--tri-size) solid var(--tri-clr);
}
#conversation-list{
    gap: 5px;
}
/*Chat Box*/



#new-message-indicator {
    position: sticky;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#new-message-indicator:hover {
    background: #0056b3;
}

#scroll-to-bottom {
    position: sticky;
    margin:5px 40%;
    background-color: rgba(0,0,0,0);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    z-index: 10;
    height: 30px;
    transition: all 2s;
}

#scroll-to-bottom:hover {
    font-size: 1rem;
}
#new-message-indicator, #scroll-to-bottom {
    transition: opacity 0.3s ease;
}
#new-message-indicator[style*="display: block"], #scroll-to-bottom[style*="display: block"] {
    opacity: 1;
}
#new-message-indicator[style*="display: none"], #scroll-to-bottom[style*="display: none"] {
    opacity: 0;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{
left: auto !important;
top: 5px;
} 
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{
    padding-right: 20px !important;
}
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{
    margin-left:10px !important;
}
.select2-container--default .select2-selection--single{
    height: 35px !important;
    padding-top: 3px;
}