/* ==========================================================================
   1. Variáveis Globais e Estilos Base
   ========================================================================== */
:root {
    --user-bubble-color: #103c84;
    --assistant-bubble-color: #f1f0f0;
    --background-color: #ffffff;
    --text-color: #333;
    --header-color: #103c84;
    --button-color: #103c84;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: var(--text-color);
}

/* ==========================================================================
   2. Layout Principal (Header, Chat, Área de Input)
   ========================================================================== */
.header {
    background-color: var(--header-color);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.2em;
}

.header-logo {
    height: 20px;
    width: auto;
}

.chat-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: url('../Background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.input-area-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    gap: 10px;
}

/* ==========================================================================
   3. Componentes do Chat (Mensagens, Indicadores, Alertas)
   ========================================================================== */

/* --- Balões de Mensagem --- */
.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

.message-content {
    padding-right: 35px; /* Espaço para o botão de copiar */
}

.user {
    background-color: var(--user-bubble-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.user .message-content {
    padding-right: 0;
}

.assistant {
    background-color: var(--assistant-bubble-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    position: relative;
}

.chat-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    display: block;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.chat-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Formatação do Texto do Assistente --- */
.assistant p { margin: 10px 0; }
.assistant p:first-child { margin-top: 0; }
.assistant p:last-child { margin-bottom: 0; }
.assistant ol, .assistant ul { padding-left: 20px; margin: 10px 0; }
.assistant li { margin-bottom: 5px; }
.assistant strong { font-weight: 600; }
.assistant pre { background-color: #e9ecef; padding: 10px; border-radius: 5px; white-space: pre-wrap; word-wrap: break-word; }
.assistant code { font-family: "Courier New", Courier, monospace; }

/* --- Botão de Preview de Formulário --- */
.preview-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.preview-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.preview-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.preview-button .material-symbols-outlined {
    font-size: 20px;
}

/* --- Botões de Dashboard --- */
.dashboard-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.dashboard-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 0 1 auto;
}

.dashboard-action-button .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

.dashboard-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-action-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.dashboard-action-button:not(:disabled):active {
    transform: translateY(0);
}

/* Botão: Criar novo dashboard */
.create-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.create-dashboard:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.create-dashboard:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Botão: Atualizar dashboard existente */
.update-dashboard {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.update-dashboard:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.update-dashboard:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(240, 147, 251, 0.3);
}

/* Botão: Apenas mostrar query */
.show-query {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.show-query:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.show-query:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* --- Botões de Edição de Painel Grafana --- */
.panel-edit-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.panel-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 0 1 auto;
}

.panel-edit-button .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

.panel-edit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-edit-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.panel-edit-button:not(:disabled):active {
    transform: translateY(0);
}

/* Botão: Confirmar Alteração */
.confirm-edit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 239, 125, 0.3);
}

.confirm-edit:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(56, 239, 125, 0.4);
}

.confirm-edit:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(56, 239, 125, 0.3);
}

/* Botão: Cancelar Edição */
.cancel-edit {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(235, 51, 73, 0.3);
}

.cancel-edit:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(235, 51, 73, 0.4);
}

.cancel-edit:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(235, 51, 73, 0.3);
}

/* Botão: Ver Dashboard */
.view-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.view-dashboard:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.view-dashboard:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Botão: Salvar no PAC.TRUST */
.save-dashboard {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.save-dashboard:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.save-dashboard:not(:disabled):active {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Container para botões após criação de dashboard */
.dashboard-created-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Garantir que os botões no container de dashboard criado tenham tamanho igual */
.dashboard-created-buttons-container .dashboard-action-button {
    flex: 0 0 220px;  /* Largura fixa para caber "Salvar no PAC.TRUST" */
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;  /* Não quebra linha */
}

/* Modal de salvar dashboard */
.save-dashboard-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Save Dashboard Modal Header */
.save-dashboard-modal .modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.save-dashboard-modal .modal-header h2 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.save-dashboard-modal .modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-dashboard-modal .modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.save-dashboard-modal .modal-header .close-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Save Dashboard Modal Footer */
.save-dashboard-modal .modal-footer {
    padding: 15px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.save-dashboard-body {
    padding: 20px 24px;
}

.save-dashboard-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.save-dashboard-info p {
    margin: 0;
    color: #333;
}

.save-dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-dashboard-form label {
    font-weight: 500;
    color: #333;
}

.form-description-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-description-input:focus {
    outline: none;
    border-color: #10b981;
}

.input-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.btn-save:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

/* --- Indicador de Digitação --- */
.typing-indicator {
    align-self: flex-start;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #aaa;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

/* --- Mensagens Flash (Alertas) --- */
.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 110%;
    left: 0;
    z-index: 1000;
    /* REMOVIDO: width: 100%; que causava a quebra */
}

.flash-messages li {
    padding: 10px 15px;
    margin: 0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    /* ADICIONADO: Impede que o texto quebre em várias linhas */
    white-space: nowrap;
}

.flash-messages .success { background-color: #d4edda; color: #155724; }
.flash-messages .error { background-color: #f8d7da; color: #721c24; }

/* ==========================================================================
   4. Componentes de Interação (Formulários, Botões, Popups)
   ========================================================================== */

/* --- Formulário de Input Principal --- */
.input-area-container {
    padding: 15px 25px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-form {
    display: flex;
    flex-grow: 1;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 25px;
    padding: 5px;
}

#message-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 1rem;
    background-color: transparent;
}

.input-form button[type="submit"] {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.input-form button[type="submit"]:hover {
    background-color: #003d82;
}

.input-form button[type="submit"]:disabled,
.input-form button[type="submit"].disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* --- Menu Popup --- */
.popup-container {
    position: relative;
}

.popup-trigger {
    background-color: var(--button-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.popup-trigger::before,
.popup-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease-in-out;
}

.popup-trigger::before { transform: translate(-50%, -50%); }
.popup-trigger::after { transform: translate(-50%, -50%) rotate(90deg); }
.popup-trigger.active::before { transform: translate(-50%, -50%) rotate(45deg); }
.popup-trigger.active::after { transform: translate(-50%, -50%) rotate(-45deg); }

.popup-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    width: 200px;
}

.popup-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.popup-menu-item form {
    margin: 0;
}

.popup-action-btn {
    background-color: transparent;
    border: none;
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    font-size: 0.9em;
    color: var(--text-color);
    box-sizing: border-box;
}

.popup-action-btn:hover {
    background-color: #f0f0f0;
}

.popup-action-btn span:first-child {
    font-size: 1.2em;
}

/* --- Botão de Copiar --- */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, background-color 0.2s;
    padding: 0;
}

.copy-btn .material-symbols-outlined {
    font-size: 18px; /* Tamanho do ícone */
}

.assistant:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: #dee2e6;
}

/* --- Anexo de Imagem --- */
#attachment-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-preview-wrapper {
    position: relative;
}

#image-preview {
    height: 40px;
    width: 40px;
    border-radius: 5px;
    object-fit: cover;
}

#remove-image-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    background-color: black;
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* PDF Preview Styles */
.file-preview-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.pdf-icon {
    font-size: 28px;
    line-height: 1;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 11px;
    color: #6c757d;
}

.pdf-preview #remove-image-btn {
    position: relative;
    top: 0;
    right: 0;
    margin-left: auto;
}


/* ==========================================================================
   5. Animações (Keyframes)
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

/* ==========================================================================
   6. Design Responsivo (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    /* Regra para a barra de input */
    .input-area-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--background-color);
        z-index: 100;
        box-sizing: border-box;
        
        /* Adiciona padding que respeita as áreas seguras do celular */
        padding-top: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    /* Regra para o contêiner de chat */
    .chat-container {
        /* Define a variável com o padding */
        --mobile-chat-padding: 80px;
        padding-bottom: var(--mobile-chat-padding);
    }
}

/* ==================== PREVIEW DE FORMULÁRIO ==================== */

/* Modal Overlay */
.form-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.form-preview-overlay.show {
    display: flex;
}

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

/* Modal Container */
.form-preview-modal {
    background: white;
    border-radius: 20px;
    max-width: 95%;
    width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.form-preview-modal .modal-header {
    background: #093987;
    color: white;
    padding: 18px;
    text-align: center;
}

.form-preview-modal .modal-header h2 {
    font-size: 24px;
    margin: 0;
}

.form-preview-modal .modal-header .edit-hint {
    font-size: 13px;
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-weight: 400;
    color: #e0e7ff;
}

/* Modal Body */
.form-preview-modal .modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    background: #f5f5f5;
}

/* Form Preview Container */
.form-preview-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.form-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Edição in-line - título do formulário */
.form-title.editable {
    cursor: text;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.form-title.editable:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.form-title.editable:focus {
    outline: none;
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-title.editable.editing {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Linha do título com planta */
.form-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

/* Badge da planta ao lado do título */
.plant-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    flex-shrink: 0;
}

.form-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.version-badge {
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.form-type-badge {
    background: #6c757d;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Grid de Campos */
.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    row-gap: 20px;
    margin-bottom: 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Previne overflow em grids */
}

/* Tamanhos de campos */
.field-size-1 { grid-column: span 1; }
.field-size-2 { grid-column: span 2; }
.field-size-3 { grid-column: span 3; }
.field-size-4 { grid-column: span 4; }
.field-size-5 { grid-column: span 5; }
.field-size-6 { grid-column: span 6; }
.field-size-7 { grid-column: span 7; }
.field-size-8 { grid-column: span 8; }
.field-size-9 { grid-column: span 9; }
.field-size-10 { grid-column: span 10; }
.field-size-11 { grid-column: span 11; }
.field-size-12 { grid-column: span 12; }

/* Label do campo */
.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Wrapper para labels editáveis (mantém asterisco fora da edição) */
.field-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Edição in-line - labels dos campos */
.field-label.editable {
    cursor: text;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 60px;
    line-height: 1.4;
    vertical-align: baseline;
}

.field-label.editable:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.field-label.editable:focus {
    outline: none;
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-label.editable.editing {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Labels não-editáveis (ex: PlantSelect) - mesma aparência mas sem edição */
.field-label.non-editable {
    cursor: default;
    padding: 6px 10px;
    border-radius: 6px;
    border: 2px solid transparent;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 60px;
    line-height: 1.4;
    vertical-align: baseline;
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

.field-type-hint {
    font-size: 11px;
    color: #6c757d;
    font-weight: normal;
    margin-left: 4px;
}

/* Inputs */
.field-input, .field-select, .field-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box; /* Inclui padding e border na largura */
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-textarea {
    height: 42px;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
    overflow: hidden;
}

/* Observation Box (HTML Informativo) */
.field-observation-box {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding: 8px 0;
}

.field-observation-box p {
    margin: 8px 0;
}

.field-observation-box p:first-child {
    margin-top: 0;
}

.field-observation-box p:last-child {
    margin-bottom: 0;
}

/* Observation Box Editável */
.field-observation-box.editable {
    cursor: text;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #f8f9fa;
    transition: all 0.2s ease;
    min-height: 60px;
}

.field-observation-box.editable:hover {
    background: #fff;
    border-color: #e9ecef;
}

.field-observation-box.editable:focus {
    outline: none;
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-observation-box.editable.editing {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ImageUpload Field */
.field-image-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.field-image-upload:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.image-upload-icon {
    font-size: 24px;
    line-height: 1;
}

.image-upload-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Image Preview Overlay (hover) */
.image-preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.image-preview-overlay.active {
    display: flex;
}

.image-preview-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Link Preview Tooltip */
.link-preview-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
    word-wrap: break-word;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

.link-tooltip-url {
    font-weight: 600;
    margin-bottom: 6px;
    color: #3498db;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-tooltip-text {
    font-size: 12px;
    color: #bdc3c7;
    font-style: italic;
}

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

/* Estilo melhorado para links no chat */
.message-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.message-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    background: linear-gradient(to bottom, transparent 0%, rgba(102, 126, 234, 0.1) 100%);
}

.message-content a:active {
    transform: translateY(1px);
}

.field-checkbox-group, .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

/* Toggle Switch Styles */
.field-switch-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: not-allowed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2196F3;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.switch-label-left {
    font-size: 14px;
    color: #666;
    min-width: 40px;
    text-align: right;
}

.switch-label-right {
    font-size: 14px;
    color: #666;
    min-width: 40px;
    text-align: left;
}

/* Modal Footer */
.form-preview-modal .modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.preview-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-edit {
    background: #ffc107;
    color: #000;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ==================== MODAL DE DASHBOARD GRAFANA ==================== */

/* Dashboard Modal Overlay */
.dashboard-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.dashboard-preview-overlay.show {
    display: flex;
}

/* Dashboard Modal Container */
.dashboard-preview-modal {
    background: white;
    border-radius: 20px;
    max-width: 95%;
    width: 1400px;
    max-height: 95vh;
    height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Dashboard Modal Header */
.dashboard-preview-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.dashboard-preview-modal .modal-header h2 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-preview-modal .modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-preview-modal .modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.dashboard-preview-modal .modal-header .close-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Dashboard Modal Body */
.dashboard-preview-modal .modal-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    background: #f5f5f5;
    position: relative;
}

.dashboard-preview-modal .modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Dashboard Modal Footer */
.dashboard-preview-modal .modal-footer {
    background: white;
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 20px 20px;
}

/* Dashboard Modal Buttons */
.dashboard-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.dashboard-modal-btn .material-symbols-outlined {
    font-size: 20px;
}

.dashboard-modal-btn:hover {
    transform: translateY(-2px);
}

.dashboard-modal-btn:active {
    transform: translateY(0);
}

/* Botão Fechar */
.dashboard-modal-btn.btn-close {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.dashboard-modal-btn.btn-close:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Botão Abrir em Nova Aba */
.dashboard-modal-btn.btn-open-tab {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dashboard-modal-btn.btn-open-tab:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== MODAL DA CÂMERA ==================== */
.camera-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.camera-modal-content {
    background-color: #1e1e1e;
    border-radius: 12px;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.camera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}

.camera-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.close-camera-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-camera-btn:hover {
    color: white;
}

.camera-preview-container {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    flex: 1;
}

#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.camera-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #2a2a2a;
    border-top: 1px solid #3a3a3a;
    justify-content: flex-end;
}

.camera-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: #3a3a3a;
    color: white;
}

.cancel-btn:hover {
    background: #4a4a4a;
}

.capture-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.capture-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.capture-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-preview-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .form-fields-grid {
        grid-template-columns: 1fr;
    }

    .field-size-1, .field-size-2, .field-size-3,
    .field-size-4, .field-size-5, .field-size-6,
    .field-size-7, .field-size-8, .field-size-9,
    .field-size-10, .field-size-11, .field-size-12 {
        grid-column: span 1;
    }

    .camera-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .camera-preview-container {
        min-height: 400px;
    }

    .camera-modal-footer {
        flex-direction: column;
    }

    .camera-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PROGRESS INDICATORS CONTEXTUAIS
   ============================================ */

.progress-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.3s ease-out;
}

.time-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.estimate-icon {
    font-size: 16px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin: 8px 0;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

.progress-step.completed {
    background: rgba(76, 175, 80, 0.15);
    border-left: 4px solid #4CAF50;
}

.progress-step.failed {
    background: rgba(244, 67, 54, 0.15);
    border-left: 4px solid #f44336;
}

.step-icon {
    font-size: 20px;
    min-width: 20px;
    text-align: center;
}

.step-text {
    flex: 1;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.progress-step.completed .step-text {
    color: #2e7d32;
}

.progress-step.failed .step-text {
    color: #c62828;
}

.step-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo para progress indicators */
@media (max-width: 768px) {
    .progress-container {
        padding: 12px 16px;
        border-radius: 12px;
    }

    .progress-step {
        padding: 10px 12px;
        gap: 10px;
    }

    .step-text {
        font-size: 13px;
    }

    .time-estimate {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ==================== BOAS-VINDAS GUIADAS ==================== */

.welcome-message {
    background: transparent !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.welcome-options-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
    width: 100%;
    max-width: 600px;
}

.welcome-greeting {
    text-align: center;
    margin-bottom: 8px;
}

.welcome-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.welcome-subtitle {
    font-size: 1.1em;
    color: #6b7280;
}

.welcome-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
    align-items: flex-start;
}

.welcome-category-card {
    --category-color: #3b82f6;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    flex: 1 1 200px;
    max-width: 240px;
    min-width: 180px;
}

.welcome-category-card:hover {
    border-color: var(--category-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-category-card.expanded {
    border-color: var(--category-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, white 0%, #f8fafc 100%);
}

.category-icon {
    font-size: 2em;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-category-card.expanded .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
}

.welcome-category-card.expanded .category-title {
    color: var(--category-color);
}

.category-expand-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: #9ca3af;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.welcome-category-card.expanded .category-expand-icon {
    transform: rotate(180deg);
    color: var(--category-color);
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    justify-content: center;
    /* Animação fluida */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease,
                padding-top 0.3s ease;
    margin-top: 0;
    padding-top: 0;
    border-top-color: transparent;
}

.welcome-category-card.expanded .category-options {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top-color: #e5e7eb;
}

.category-option-btn {
    background: linear-gradient(135deg, var(--category-color) 0%, color-mix(in srgb, var(--category-color) 80%, black) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    transform: translateY(8px);
    opacity: 0;
}

.welcome-category-card.expanded .category-option-btn {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                box-shadow 0.2s ease;
}

/* Animação escalonada para botões (apenas ao abrir) */
.welcome-category-card.expanded .category-option-btn:nth-child(1) { transition-delay: 0.08s; }
.welcome-category-card.expanded .category-option-btn:nth-child(2) { transition-delay: 0.14s; }
.welcome-category-card.expanded .category-option-btn:nth-child(3) { transition-delay: 0.2s; }
.welcome-category-card.expanded .category-option-btn:nth-child(4) { transition-delay: 0.26s; }

.category-option-btn:hover {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.category-option-btn:active {
    transform: scale(0.98) translateY(0);
}

.welcome-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.fallback-divider {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    color: #9ca3af;
    font-size: 0.85em;
}

.fallback-divider::before,
.fallback-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.fallback-text {
    color: #6b7280;
    font-size: 0.9em;
}

/* Responsivo - Mobile */
@media (max-width: 480px) {
    .welcome-categories-grid {
        grid-template-columns: 1fr;
    }

    .welcome-category-card.expanded {
        grid-column: span 1;
    }

    .welcome-title {
        font-size: 1.1em;
    }

    .welcome-subtitle {
        font-size: 1em;
    }

    .category-icon {
        font-size: 1.8em;
    }

    .category-option-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

