/* 
 * Estilos Principais da Aplicação - Tema Verde Escuro Modernizado
 * Assistente de Orçamento Público
 */

/* Resetando estilos */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variáveis CSS para tema consistente */
:root {
    /* Cores principais - Tema Verde Escuro */
    --primary-color: #1b5e20;
    --primary-dark: #003300;
    --primary-light: #388e3c;
    --secondary-color: #004d40;
    
    /* Cores neutras */
    --dark: #212121;
    --medium-dark: #424242;
    --medium: #757575;
    --medium-light: #bdbdbd;
    --light: #e0e0e0;
    --ultra-light: #f5f5f5;
    
    /* Cores de estado */
    --success: #2e7d32;
    --info: #0277bd;
    --warning: #f57f17;
    --error: #c62828;
    
    /* Fontes */
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --heading-font: 'Inter', sans-serif;
    
    /* Tamanhos e espaçamentos */
    --container-width: 1200px;
    --header-height: 70px;
    --footer-height: 60px;
    --standard-padding: 1.5rem;
    --small-padding: 1rem;
    --radius: 0.5rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Estilos Globais */
html, body {
    height: 100%;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--ultra-light);
}

body {
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out, transform 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

button {
    cursor: pointer;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.app-content {
    flex: 1;
    padding: var(--standard-padding) 0;
}

/* Header */
.app-header {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.main-nav a:hover {
    color: white;
    text-decoration: none;
}

.main-nav a.active {
    color: white;
    border-bottom-color: white;
}

/* Footer */
.app-footer {
    height: var(--footer-height);
    background-color: var(--ultra-light);
    border-top: 1px solid var(--light);
    display: flex;
    align-items: center;
    text-align: center;
}

.app-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--medium);
}

/* Botões */
.primary-button, .secondary-button, .cta-button, .cancel-button, .small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease-in-out;
    border: none;
    outline: none;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    background-color: #e8f5e9;
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

.secondary-button:hover {
    background-color: #c8e6c9;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cancel-button {
    background-color: var(--medium-light);
    color: var(--dark);
}

.cancel-button:hover {
    background-color: var(--light);
}

.small-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--medium-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-light);
    border-radius: var(--radius);
    font-family: var(--body-font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Cards e Containers */
.card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--standard-padding);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.welcome-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid var(--primary-light);
    box-shadow: var(--shadow);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.cta-container {
    margin-top: 2rem;
}

.admin-options {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light);
}

.admin-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium);
    transition: color 0.2s ease-in-out;
}

.close-modal:hover {
    color: var(--error);
}

/* Spinner de carregamento */
.spinner {
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border: 4px solid #e8f5e9;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status e notificações */
.status-container {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--radius);
    background-color: #e8f5e9;
}

.status-container.success {
    border-left: 4px solid var(--success);
    background-color: rgba(46, 125, 50, 0.1);
}

.status-container.error {
    border-left: 4px solid var(--error);
    background-color: rgba(198, 40, 40, 0.1);
}

.status-container.warning {
    border-left: 4px solid var(--warning);
    background-color: rgba(245, 127, 23, 0.1);
}

.status-container.info {
    border-left: 4px solid var(--info);
    background-color: rgba(2, 119, 189, 0.1);
}

/* Lista de modelos */
.models-list {
    margin-top: 1.5rem;
}

.model-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius);
    background-color: white;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
    border-left: 3px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.model-item:hover {
    background-color: #f9fbf9;
    transform: translateX(5px);
}

.model-item.active {
    border-left: 4px solid var(--primary-color);
    background-color: #f9fbf9;
}

.model-info {
    flex: 1;
}

.model-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.model-meta {
    font-size: 0.875rem;
    color: var(--medium);
}

.model-actions {
    display: flex;
    gap: 0.5rem;
}

/* Utilitários */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        max-width: 100%;
    }
    
    .admin-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
        max-width: 90%;
    }
}

/* Estilos para o painel administrativo */
.admin-section {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.admin-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    border-left: 4px solid var(--primary-color);
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--light);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    gap: 0.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 1rem 0;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.model-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--ultra-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-light);
}

.model-section h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #c8e6c9;
    color: var(--primary-dark);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

/* Melhorias para upload de arquivo */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px dashed var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    background-color: #f1f8e9;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

input[type="file"]:hover {
    background-color: #e8f5e9;
    border-color: var(--primary-color);
}

small {
    display: block;
    color: var(--medium);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Estilos específicos do classificador de natureza */
.prediction-subelements {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #a5d6a7;
}

.subelements-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
    list-style-type: none;
    max-height: 250px;
    overflow-y: auto;
    background-color: #f1f8e9;
    border-radius: 0.25rem;
    padding: 0.5rem;
    border: 1px solid #c8e6c9;
}

.subelement-item {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #c8e6c9;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease;
}

.subelement-item:hover {
    background-color: #e8f5e9;
}

.subelement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subelement-code {
    font-weight: 600;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.subelement-desc {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: var(--medium-dark);
}

.info-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e8f5e9;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.info-box p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-box ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.info-box ol li {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Estilos para chat.css */
.chat-container {
    display: flex;
    height: calc(100vh - var(--header-height) - var(--footer-height) - 3rem);
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
    width: 280px;
    background-color: #f9fbf9;
    border-right: 1px solid #c8e6c9;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.model-selection,
.conversation-nav,
.info-section {
    padding: var(--small-padding);
    border-bottom: 1px solid #c8e6c9;
}

/* Novo estilo para seleção de modelo - mais discreto */
.model-selection {
    background-color: transparent;
    padding: 0.75rem;
}

.model-selection h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--medium);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.current-model {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    padding: 0;
    border: none;
    margin-top: 0;
    font-size: 0.85rem;
}

#currentModelName {
    font-weight: 500;
    color: var(--primary-dark);
}

#changeModelBtn {
    padding: 2px 6px;
    background-color: transparent;
    color: var(--medium);
    border: 1px solid var(--medium-light);
    border-radius: 3px;
    font-size: 0.7rem;
}

#changeModelBtn:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

.conversation-nav h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

#newConversationBtn {
    width: 100%;
    margin-bottom: 1rem;
}

.conversations-list {
    list-style: none;
    margin: 0;
}

.conversations-list li {
    margin-bottom: 0.25rem;
}

.conversations-list a {
    display: block;
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--medium-dark);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.conversations-list a:hover {
    background-color: #e8f5e9;
    text-decoration: none;
}

.conversations-list li.active a {
    background-color: var(--primary-light);
    color: white;
}

/* Área principal do chat */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: var(--small-padding);
    border-bottom: 1px solid #c8e6c9;
    background-color: var(--primary-dark);
    color: white;
}

.chat-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

/* Mensagens do chat */
.chat-messages {
    flex: 1;
    padding: var(--small-padding);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #fafafa;
    background-image: linear-gradient(rgba(56, 142, 60, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(56, 142, 60, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 1rem;
    border-radius: var(--radius);
}

/* Alterar as cores das mensagens do chat */
.message.system .message-content {
    background-color: #f1f8e9;  /* Verde muito claro para mensagens do sistema */
    color: var(--medium-dark);
    border-left: 3px solid #a5d6a7;
}

.message.assistant .message-content {
    background-color: #e8f5e9;  /* Verde claro para mensagens do assistente */
    color: var(--dark);
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.message.user .message-content {
    background-color: white;  /* Branco para mensagens do usuário */
    color: var(--dark);
    border-left: 3px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.8;
    text-align: right;
}

/* Destaque para elementos importantes nas respostas */
.message.assistant .highlight {
    background-color: rgba(200, 230, 201, 0.5);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

/* Entrada de mensagem */
.chat-input {
    padding: var(--small-padding);
    border-top: 1px solid #c8e6c9;
    background-color: #f9fbf9;
}

#messageForm {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#userInput {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius);
    resize: none;
    font-family: var(--body-font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease;
}

#userInput:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2);
}

.send-button, .upload-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.send-button {
    background-color: var(--primary-color);
    color: white;
}

.send-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.upload-button {
    background-color: #c8e6c9;
    color: var(--primary-dark);
}

.upload-button:hover {
    background-color: #a5d6a7;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Indicadores de estado */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f1f8e9;
    border-radius: var(--radius);
    width: fit-content;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: typing 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* IPOF Styles */
/* IPOF Styles */
.ipof-step {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    background-color: #f1f8e9;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1rem 1rem 1.5rem;
}

.ipof-step h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.ipof-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Status do upload de arquivo */
.file-upload-status {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #e8f5e9;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    border: 1px solid #c8e6c9;
}

.file-upload-status .file-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.file-upload-status .file-info {
    flex: 1;
}

.file-upload-status .file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.file-upload-status .file-size {
    font-size: 0.75rem;
    color: var(--medium);
}

.file-upload-status .upload-progress {
    height: 4px;
    background-color: #c8e6c9;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.file-upload-status .upload-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Tabela IPOF */
.ipof-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

.ipof-table th, 
.ipof-table td {
    padding: 0.75rem;
    border: 1px solid #a5d6a7;
    text-align: left;
}

.ipof-table th {
    background-color: var(--primary-dark);
    font-weight: 600;
    color: white;
}

.ipof-table tr:nth-child(even) {
    background-color: #f1f8e9;
}

.ipof-table tr:hover {
    background-color: #e8f5e9;
}

.ipof-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ipof-button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ipof-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.ipof-button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ipof-button.secondary {
    background-color: #e8f5e9;
    color: var(--primary-dark);
    border: 1px solid #a5d6a7;
}

.ipof-button.secondary:hover {
    background-color: #c8e6c9;
    transform: translateY(-2px);
}

/* Campo de arquivo */
#fileInput {
    display: none;
}

/* Formatação de conteúdo nas mensagens */
.message-content pre {
    background-color: #f1f8e9;
    padding: 0.75rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin: 0.75rem 0;
    border-left: 3px solid var(--primary-light);
}

.message-content code {
    font-family: 'Courier New', monospace;
    background-color: #f1f8e9;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.message-content th,
.message-content td {
    border: 1px solid #a5d6a7;
    padding: 0.5rem;
    text-align: left;
}

.message-content th {
    background-color: var(--primary-dark);
    color: white;
}

.message-content tr:nth-child(even) {
    background-color: #f1f8e9;
}

/* JSON formatado */
.message-content .json-code {
    background-color: #f1f8e9;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    white-space: pre;
    margin: 0.75rem 0;
    border-left: 3px solid var(--primary-light);
}