@font-face {
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/fontawesome-webfont.eot") format("embedded-opentype"), 
    url("../fonts/fontawesome-webfont.woff") format("woff"), 
    url("../fonts/fontawesome-webfont.ttf") format("truetype"), 
    url("../fonts/fontawesome-webfont.svg") format("svg");
    font-display: swap;
}

/* Chats */
.classroom-header {
    font-size: 16px;
    line-height: 45px;
}
.modal-header .close{
    float:left;
}
.center {
    text-align:center !important;
}
.display-none {
    display:none !important;
}
.class-box{
    color: #000;
    position: relative;
    margin-bottom: 15px;
    padding: 0 10px 10px;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 0px 11px 0px #e2e2e2;
    border-radius: 4px;    
}
#user-message {
    background: url(../images/chart-bg.jpg);
    background-size: contain;
    background-position: center;
    border: 1px solid silver;
}
.class-box .fa{
    float: left;
}
.class-box .box-title{
    color: white;
    margin: 4px 0px;
    padding: 0px 5px;
}
.class-box .box-content{
    max-height: 400px;
    min-height: 300px;
    font-family: var(--font-family);
    background-color: #2b2f32;
    border: 1px solid var(--border-color);
    border-bottom-color: var(--border-bottom-color);
    color: var(--text-color);
    padding: 6px 7px;
    border-radius: 2px;
    font-size: var(--font-size-sm);
}
.class-box.box-content ul{ 
    list-style-type: none;
    padding: 0px;
    margin: 0px !important; 
}
.class-box .box-content ul li{
    line-height: 30px;
}
.class-box .box-content ul li{ font-size: 14px; }
.class-box .box-content a{ color: #fff; }
.class-box .box-content a:hover{color: orange;}
.class-box .scroll-y{
    max-height: 300px;
    overflow-y: scroll;
}
.class-box .chat-box{ 
    display: flex;
    margin: 3px 0px;
    padding: 4px 0px;
}
.class-box .chat-textbox{ 
    display: inline-flex;
    border-radius: 0px;
    border: 1px solid gray;
}
.class-box .chat-btn{ 
    height: 34px;
    cursor: pointer;
    padding: 9px 18px;
    margin: 0px 5px;
    text-align: center;
    background: rgb(29, 138, 234);
    border: 1px solid rgb(29, 162, 234);
    border-radius: 5px;
    color: #fff;
}
.class-box .chat-btn:hover{
    background: rgb(71, 148, 255);
    box-shadow: 0px 0px 2px 0px silver;
}
.char-user-list {
    margin: 0px;
    padding: 10px;
    list-style-type: none;
    height: 450px;
    max-height: 450px;
    overflow-y: scroll;
}
.char-user-list ul {
    margin: 0px;
    list-style-type: none;
}
.char-user-list ul li {
    margin-bottom: 5px;
}
.char-user-list ul li img {
    margin-left: 10px;
    border-radius: 50%;
}
.chat-user-item {
    position: relative;
    background: #fff;
    cursor: pointer;
    padding: 5px;
    color: #000;
    box-shadow: 0px 0px 2px 0px grey;
    border-radius: 4px;
}
.chat-user-item.active {
    background: rgb(202, 251, 202);
    box-shadow: 0px 0px 4px 0px grey;
}
.chat-user-item .badge {
    position: absolute !important;
    left: 5px;
    top: 20px;
}
.user-chat-message {
    font-size: 13px;
    margin: 5px;
    padding: 5px;
    color: #000;
    min-width: 300px;
    box-shadow: 0px 0px 4px 0px grey;
}
.user-chat-message.left {
    float: left;
    border-radius: 0px 8px 8px 8px;
    background-color: #fff;
}
.user-chat-message.right {
    float: right;
    border-radius: 8px 0px 8px 8px;
    background-color: rgb(202, 251, 202);
}
.chat-part-title {
    margin-top: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #efefef;
}
.inbox-counter {
    position: relative;
    margin-left: 20px;
}
.inbox-counter .fa-bell-o {
    font-size: 30px;
}
.inbox-counter .badge{
    left: -8px;
    top: -12px;
    position: absolute;
}
.chat-emoji {
    display: none;
    padding: 15px;
    border: 1px solid silver;
    box-shadow: 0px 0px 4px 0px grey;
    border-radius: 2px;
    max-width: 200px;
    z-index: 999999;
    position: absolute;
    bottom: 0px;
    background: #fff;
    left: 18px;
}
.chat-emoji span {
    cursor: pointer;
    margin: 4px;
    font-size: 19px;
}
#emoji-btn {
    cursor: pointer;
    font-size: 20px;
    margin: 0px 8px;
}
#close-emoji {
    cursor: pointer;
}
.badge
{
    background-color: red !important;
}

.chat-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.status {
    font-size: 12px;
    margin-right: 6px;
}

.status.online {
    color: #2ecc71;
}

.status.away {
    color: #f1c40f;
}

.status.offline {
    color: #95a5a6;
}

.desktop-links{
    display:flex;
    gap:10px;
}

.desktop-btn{
    background:#2563eb;
    color:#fff;
    padding:7px 14px;
    border-radius:8px;
    font-size:13px;
    text-decoration:none;
    transition:0.3s;
}

.desktop-btn:hover{
    background:#1d4ed8;
}
.chat-search-box{
    position:relative;
    margin-bottom:15px;
}

.chat-search-box input{
    width:100%;
    padding:10px 35px 10px 10px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:13px;
}

.chat-search-box i{
    position:absolute;
    left:10px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
    font-size:14px;
}
/* پیام‌ها حرفه‌ای */

.message-row{
    display:flex;
    margin-bottom:15px;
}

.message-row.me{
    justify-content:flex-end;
}

.message-bubble{
    max-width:60%;
    padding:10px 14px;
    border-radius:14px;
    font-size:13px;
    position:relative;
    box-shadow:0 2px 5px rgba(0,0,0,0.05);
    word-wrap:break-word;
}

.message-row.me .message-bubble{
    background:#dcf8c6;
    border-bottom-right-radius:4px;
}

.message-row.other .message-bubble{
    background:#ffffff;
    border-bottom-left-radius:4px;
}

.message-time{
    font-size:10px;
    color:#888;
    margin-top:5px;
    text-align:left;
}

.message-row.me .message-time{
    text-align:right;
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 80% !important;
    }

    .box-search
    {
        display: flow-root;
        width: 89%;
        margin: auto;
    }
    .stay-search-item
    {
        
    }
}
/* ===============================
   DESKTOP PROFESSIONAL LAYOUT
=============================== */
@media(max-width:768px){
    .desktop-links{
        display:none;
    }
}

@media(min-width:769px){
    .chat-page-wrapper{
        height:100vh;
        display:flex;
        flex-direction:column;
        background:#f4f6fb;
    }
    
    /* هدر */
    .chat-page-header{
        height:60px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:0 20px;
        background:#1e293b;
        color:#fff;
        box-shadow:none;
    }
    
    /* ردیف اصلی */
    .chat-page-wrapper .row{
        flex:1;
        display:flex;
        margin:0;
    }
    
    /* سایدبار */
    .chat-sidebar{
        width:320px;
        max-width:320px;
        background:#ffffff;
        border-left:1px solid #e5e7eb;
        padding:15px;
        overflow-y:auto;
        height:100%;
    }
    
    /* بخش چت */
    .chat-main{
        flex:1;
        display:flex;
        flex-direction:column;
        height:100%;
        padding:0;
        max-height:none;
    }
    
    /* عنوان پیام‌ها */
    .box-title{
        padding:15px 20px;
        background:#fff;
        border-bottom:1px solid #eee;
        font-weight:bold;
    }
    
    /* پیام‌ها */
    .box-content{
        flex:1;
        overflow-y:auto;
        padding:20px;
        border:none;
        margin:0;
        border-radius:0;
        background:#f9fafb;
    }
    
    /* باکس ارسال */
    .chat-box{
        display:flex !important;
        align-items:center;
        padding:15px;
        background:#fff;
        border-top:1px solid #eee;
    }
    
    /* ورودی */
    .input-wrapper{
        flex:1;
        max-width:none;
        width:100%;
    }
    
    .chat-textbox{
        height:45px;
        border-radius:10px;
        padding:10px 50px 10px 15px;
    }
    
    /* دکمه ارسال */
    .chat-btn{
        margin:0 10px;
        font-size:22px;
        color:#2563eb;
        cursor:pointer;
    }
    
    /* حذف bottom nav در دسکتاپ */
    .chat-bottom-nav{
        display:none !important;
    }

}
