/* my-live-chat/css/style.css (V1.8.4 Final Complete Code) */

/* =================================
   前台访客聊天窗口样式
   ================================= */
#mslc-chat-widget { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
}
#mslc-chat-button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    text-align: center;
    line-height: 1.2;
}
#mslc-unread-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: 5px;
    right: 5px;
}
#mslc-chat-window {
    width: 320px;
    height: 450px;
    border: 1px solid #ccc;
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 10px;
}
#mslc-chat-header {
    background: #f5f5f5;
    color: #333;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
}
#mslc-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f5f5;
}
#mslc-chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
    align-items: center;
}
#mslc-chat-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s;
}
#mslc-chat-input:focus {
    border-color: #007bff;
}
#mslc-send-btn {
    margin-left: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}
#mslc-send-btn:hover {
    background-color: #0056b3;
}
.mslc-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    clear: both;
}
.mslc-message.visitor {
    background-color: #007bff;
    color: white;
    float: right;
    border-bottom-right-radius: 5px;
}
.mslc-message.agent {
    background-color: #e9e9eb;
    color: #333;
    float: left;
    border-bottom-left-radius: 5px;
}

/* =================================
   后台客服管理界面样式
   ================================= */
#mslc-admin-app h1 {
    margin-bottom: 20px;
}
#mslc-admin-layout {
    display: flex;
    border: 1px solid #ccd0d4;
    height: 70vh;
    background-color: #f0f2f5;
    border-radius: 4px;
}
#mslc-session-list {
    flex: 0 0 300px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}
#mslc-session-list h2 {
    margin: 0;
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
#mslc-session-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}
#mslc-session-list ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #555;
}
.session-info {
    flex-grow: 1;
}
.delete-session {
    color: #aaa;
    font-weight: bold;
    font-size: 18px;
    padding: 0 5px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}
#mslc-session-list ul li:hover .delete-session {
    visibility: visible;
    opacity: 1;
}
.delete-session:hover {
    color: #f00;
}
#mslc-session-list ul li:hover {
    background: #f5f5f5;
}
#mslc-session-list ul li.active {
    background: #cce5ff;
    color: #004085;
}
#mslc-session-list ul li.active:hover {
    background: #cce5ff;
}
#mslc-admin-chat-area {
    flex-grow: 1;
    display: flex;
}
#mslc-admin-chat-area #mslc-chat-window {
    width: 100%;
    height: 100%;
    position: relative;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
#mslc-admin-chat-area #mslc-chat-header {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-weight: 600;
}
#mslc-admin-chat-area #mslc-chat-messages {
    background-color: #f0f2f5;
}
#mslc-admin-chat-area #mslc-chat-input-area {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}