/* MCIA Assistente Jurídico v15 - Chat Styles */
.mcia-chat-container {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fff;
}
.mcia-chat-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mcia-chat-title {
    font-size: 18px;
    font-weight: 600;
}
.mcia-chat-icon {
    font-size: 24px;
    margin-right: 10px;
}
.mcia-chat-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.mcia-chat-info {
    background: #e8f4fd;
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid #d0e8f7;
}
.mcia-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}
.mcia-message {
    margin-bottom: 15px;
    display: flex;
}
.mcia-message.mcia-user {
    justify-content: flex-end;
}
.mcia-message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
}
.mcia-bot .mcia-message-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px 12px 12px 0;
}
.mcia-user .mcia-message-content {
    background: #1e3a5f;
    color: white;
    border-radius: 12px 12px 0 12px;
}
.mcia-chat-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
}
#mcia-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
}
#mcia-input:focus {
    outline: none;
    border-color: #1e3a5f;
}
.mcia-send-btn {
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}
.mcia-send-btn:hover {
    background: #2d5a87;
}
.mcia-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.mcia-chat-footer {
    background: #f0f0f0;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    color: #666;
}

/* Botão de Impressão */
.mcia-print-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    transition: background 0.2s;
}
.mcia-print-btn:hover {
    background: #5a6268;
}
.mcia-message-actions {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Typing dots animation */
.mcia-typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: #1e3a5f;
    border-radius: 50%;
    animation: mcia-bounce 1.4s infinite ease-in-out both;
}
.mcia-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.mcia-typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes mcia-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* CSS para Impressão */
@media print {
    body * {
        visibility: hidden;
    }
    .mcia-print-content, .mcia-print-content * {
        visibility: visible;
    }
    .mcia-print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        font-family: 'Times New Roman', Times, serif;
    }
    .mcia-print-header {
        text-align: center;
        border-bottom: 2px solid #1e3a5f;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    .mcia-print-header h1 {
        color: #1e3a5f;
        margin: 0;
        font-size: 20px;
    }
    .mcia-print-header p {
        margin: 5px 0 0;
        font-size: 12px;
        color: #666;
    }
    .mcia-print-question {
        background: #f5f5f5;
        padding: 15px;
        border-left: 4px solid #1e3a5f;
        margin: 15px 0;
    }
    .mcia-print-question h3 {
        margin: 0 0 8px;
        font-size: 14px;
        color: #333;
    }
    .mcia-print-answer {
        padding: 15px 0;
        line-height: 1.6;
    }
    .mcia-print-footer {
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        font-size: 11px;
        color: #666;
        text-align: center;
    }
    .mcia-print-btn, .mcia-message-actions {
        display: none !important;
    }
}
