/*
|--------------------------------------------------------------------------
| Student Chatroom - Main Styles
| Primary Color: #C49E55
| Secondary Color: #FFFFFF
|--------------------------------------------------------------------------
*/

:root{
    --stcr-primary:#C49E55;
    --stcr-secondary:#FFFFFF;
    --stcr-text:#333;
    --stcr-light:#f7f7f7;
    --stcr-border:#e6e6e6;
}

/* General Layout */
.stcr-wrapper{
	font-family: "Montserrat", Sans-serif !important;
    display:flex;
    height:100vh;
    background:var(--stcr-secondary);
    font-family: Arial, sans-serif;
}

/* Sidebar */
.stcr-sidebar{
    width:280px;
/*     background:var(--stcr-light); */
    border:1px solid var(--stcr-border);
    display:flex;
    flex-direction:column;
}

.stcr-sidebar-header{
    padding:15px;
    background:#231f20;
    color:#fff;
    font-size:18px;
    font-weight:bold;
}

.stcr-chat-list{
    flex:1;
    overflow-y:auto;
}

.stcr-chat-item{
    padding:12px 15px;
    border-bottom:1px solid var(--stcr-border);
    cursor:pointer;
    transition:0.2s;
}

.stcr-chat-item:hover{
    background:#fff3d6;
}

.stcr-chat-item.active{
    background:var(--stcr-primary);
    color:#fff;
}

/* Main Chat Area */
.stcr-chat-area{
    flex:1;
    display:flex;
    flex-direction:column;
    background:#fff;
	border:1px solid var(--stcr-border);
}
button.stcr-action-btn.stcr-attach-btn {
    background: none !important;
}

/* Chat Header */
.stcr-chat-header {
    padding: 15px;
    border-bottom: 1px solid var(--stcr-border);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px !important;
}

/* Messages */
.stcr-messages{
    flex:1;
    padding:15px;
    overflow-y:auto;
    background:#fafafa;
}

.stcr-message{
    margin-bottom:12px;
    display:flex;
}

.stcr-message.self{
    justify-content:flex-end;
}

.stcr-message-bubble{
    max-width:60%;
    padding:10px 12px;
    border-radius:10px;
    font-size:14px;
    line-height:1.4;
}

.stcr-message.self .stcr-message-bubble{
    background:var(--stcr-primary);
    color:#fff;
}

.stcr-message:not(.self) .stcr-message-bubble{
    background:#eaeaea;
    color:#333;
}

/* Input Area */
.stcr-input-area{
    padding:10px;
    border-top:1px solid var(--stcr-border);
    display:flex;
    gap:10px;
    align-items:center;
    background:#fff;
	    position: relative;
}

.stcr-input{
    flex:1;
    padding:10px;
    border:1px solid var(--stcr-border);
    border-radius:6px;
    outline:none;
}

.stcr-send-btn{
    background:var(--stcr-primary);
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:6px;
    cursor:pointer;
}

.stcr-send-btn:hover{
    opacity:0.9;
}

/* New Chat Button */
.stcr-new-chat, .stcr-recommend{
    padding:12px;
    text-align:center;
    background:#fff;
    border-top:1px solid var(--stcr-border);
    cursor:pointer;
    font-weight:bold;
    color:var(--stcr-primary);
}

/* Mention Dropdown */
.stcr-mention-box{
    position:absolute;
    background:#fff;
    border:1px solid var(--stcr-border);
    width:200px;
    max-height:200px;
    overflow-y:auto;
    z-index:9999;
    display:none;
}

.stcr-mention-item{
    padding:8px;
    cursor:pointer;
}

.stcr-mention-item:hover{
    background:var(--stcr-primary);
    color:#fff;
}

/* Attachments */
.stcr-attachment{
    margin-top:5px;
    font-size:13px;
}

.stcr-attachment a{
    color:var(--stcr-primary);
    text-decoration:none;
}

/* Responsive */
@media(max-width:768px){
    .stcr-sidebar{
        width:100px;
    }

    .stcr-chat-item{
        font-size:12px;
        padding:10px;
    }

    .stcr-message-bubble{
        max-width:80%;
    }
}