/* Dokan Messages Pro - Main Styles */

.dmp-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.dmp-header-bar {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.dmp-header-bar h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.dmp-container {
    display: flex;
    min-height: 600px;
}

/* LEFT SIDEBAR - Conversations list */
.dmp-sidebar {
    width: 380px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    background: #fafafa;
}

.dmp-conv-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.dmp-conv-item:hover {
    background: #f0f0f0;
}

.dmp-conv-item.active {
    background: #e8f4f8;
    border-left: 3px solid #0073aa;
}

.dmp-conv-item.unread {
    background: #fff3cd;
    font-weight: 600;
}

.dmp-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.dmp-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.dmp-content {
    flex: 1;
    min-width: 0;
}

.dmp-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dmp-content strong {
    font-size: 15px;
    color: #333;
}

.dmp-content p {
    margin: 4px 0;
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmp-content small {
    color: #999;
    font-size: 12px;
}

.dmp-badge {
    background: #ff5722;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.dmp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* RIGHT MAIN - Conversation view */
.dmp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dmp-conversation-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.dmp-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.dmp-msg {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.dmp-msg.mine {
    flex-direction: row-reverse;
}

.dmp-msg.mine .dmp-msg-bubble {
    background: #0073aa;
    color: white;
}

.dmp-msg.system .dmp-msg-bubble {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    font-style: italic;
}

.dmp-msg-bubble {
    background: #fff;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 65%;
    min-width: 100px;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.5;
}

.dmp-msg-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.dmp-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.dmp-form {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.dmp-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.dmp-form textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.dmp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.dmp-btn-attach {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.dmp-btn-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.dmp-btn-primary:hover {
    background: #005a87;
}

.dmp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

@media (max-width: 768px) {
    .dmp-container {
        flex-direction: column;
    }
    .dmp-sidebar {
        width: 100%;
        border-right: none;
        max-height: 300px;
    }
}
