/**
 * Chat Audit Module Styles
 * 
 * @license MIT
 * @copyright (c) 2025 Universal AI Cloud Development Team
 * @version 1.0.0
 * 
 * Version History:
 * - 1.0.0 (2025-12-02): Initial extraction from dashboard.css
 *   - Chat message styles
 *   - Tool call display
 *   - Expand/collapse controls
 */

/* Chat Audit - Message styles with background colors and spacing */
.message-user,
.message-system {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 4px;
    line-height: 1.6;
}

/* User messages stay blue */
.message-user {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

/* System messages (assistant, plan, functions, notification) are gray */
.message-system {
    background-color: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}

/* Message type label for PLAN and NOTIFICATION */
.message-type-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-system .record-section-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.message-system .tool-call-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.message-system .tool-call-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.message-system .tool-call-name {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.message-system .function-call {
    background-color: #fafafa;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
}

.message-system .tool-result {
    font-size: 0.85rem;
    color: #555;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-top: 4px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    overflow: hidden;
}

.message-system .expand-result,
.message-system .collapse-result {
    color: #2196f3;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.message-system .expand-result:hover,
.message-system .collapse-result:hover {
    text-decoration: underline;
}