.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* 消息状态勾选图标样式 */
.msg-status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1.5px solid #1890ff;
    border-radius: 50%;
    color: #1890ff;
    font-size: 8px;
    margin-right: 4px;
}

/* 拖拽手柄样式 (高度调整) */
.resizer-h {
    cursor: row-resize;
    height: 5px;
    background: transparent;
    width: 100%;
    position: absolute;
    top: -2px;
    left: 0;
    z-index: 20;
}

.resizer-h:hover {
    background: rgba(24, 144, 255, 0.1);
}

.menu-active {
    background-color: #1890ff !important;
    color: white !important;
}

/* 快捷回复列表富文本预览样式重置 */
.rich-text-preview {
    color: inherit !important;
}

.rich-text-preview p {
    margin: 0 !important;
    display: inline;
    color: inherit !important;
}

.rich-text-preview span {
    color: inherit;
    /* Should allow inline styles to win */
}

.rich-text-preview img {
    display: none;
}

/* WangEditor & Rich Text Links */
.w-e-text-container [contenteditable="true"] a,
.rich-text-preview a,
.chats-msg-box a,
.chats-bubble-msg a,
.pre-form-desc a,
#chatContent a {
    color: #1890ff !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

/* Chat Bubble Media Constraints */
.chats-bubble-msg img {
    max-width: 300px !important;
    max-height: 300px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
    margin: 4px 0;
}

.chats-bubble-msg video {
    max-width: 300px !important;
    max-height: 200px !important;
    border-radius: 8px;
    background: #000;
}

/* Notification Badge (Red Dot) */
.nav-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #ff4d4f !important;
    border-radius: 50% !important;
    border: 1.5px solid #001529 !important;
    box-shadow: 0 0 6px rgba(255, 77, 79, 0.6) !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    display: block !important;
}

.nav-badge.hidden {
    display: none !important;
}

.sidebar-btn {
    position: relative;
}

/* Preserve whitespace and line breaks in chat bubbles */
.chats-bubble-msg {
    white-space: pre-wrap !important;
    word-break: break-word;
}