/* ======================================== ESTILOS PARA FORMULÁRIOS DE UPLOAD - VERSÃO MODERNA ======================================== */ /* Botões de Ação */ .action-buttons { display: flex; gap: 12px; margin-bottom: 24px; padding: 16px 0; border-bottom: 1px solid #e0e0e0; } .save-button { background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important; border: none !important; color: white !important; padding: 12px 24px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 14px !important; transition: all 0.3s ease !important; box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3); } .save-button:hover { background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4); } .cancel-button { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important; border: none !important; color: white !important; padding: 12px 24px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 14px !important; transition: all 0.3s ease !important; box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3); } .cancel-button:hover { background: linear-gradient(135deg, #5a6268 0%, #495057 100%) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4); } /* Painéis de Informação */ .info-panel { border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 20px; overflow: hidden; } .info-panel .ui-panel-titlebar { background: linear-gradient(135deg, #006e96 0%, #0088cc 100%); color: white; border-radius: 12px 12px 0 0; padding: 16px 24px; font-weight: 600; font-size: 18px; border: none; } .info-panel .ui-panel-content { padding: 0; background: #f8f9fa; } .info-container { padding: 24px; background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%); } .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; } .info-item { background: white; border: 1px solid #e8e8e8; border-radius: 8px; padding: 20px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.04); } .info-item:hover { border-color: #006e96; box-shadow: 0 4px 16px rgba(0, 110, 150, 0.1); transform: translateY(-1px); } .info-label { font-weight: 600; color: #495057; font-size: 14px; margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.5px; } /* Botões da Tabela */ .delete-button { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important; border: none !important; color: white !important; padding: 6px 12px !important; border-radius: 4px !important; font-size: 12px !important; font-weight: 500 !important; transition: all 0.3s ease !important; } .delete-button:hover { background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3); } /* Upload Panel */ .upload-panel { border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 20px; overflow: hidden; } .upload-panel .ui-panel-titlebar { background: linear-gradient(135deg, #006e96 0%, #0088cc 100%); color: white; border-radius: 12px 12px 0 0; padding: 16px 24px; font-weight: 600; font-size: 18px; border: none; } .upload-container { padding: 24px; background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%); min-height: 200px; } /* Seção de Upload Principal */ .main-upload { background: white; border: 2px solid #e8e8e8; border-radius: 12px; padding: 32px; margin-bottom: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s ease; text-align: center; } .main-upload:hover { border-color: #006e96; box-shadow: 0 4px 20px rgba(0, 110, 150, 0.1); } .upload-title { color: #333; font-size: 18px; font-weight: 600; margin: 0 0 24px 0; padding-bottom: 12px; border-bottom: 2px solid #006e96; display: flex; align-items: center; justify-content: center; gap: 10px; } .upload-title .ui-icon { color: #006e96; font-size: 20px; } /* Área de Upload de Arquivo */ .file-upload-area { display: flex; flex-direction: column; align-items: center; gap: 20px; } .custom-file-upload { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important; border: 3px dashed #006e96 !important; border-radius: 16px !important; padding: 40px 20px !important; text-align: center !important; transition: all 0.4s ease !important; cursor: pointer !important; min-width: 400px !important; position: relative; overflow: hidden; } .custom-file-upload::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 110, 150, 0.1), transparent); transition: left 0.5s ease; } .custom-file-upload:hover::before { left: 100%; } .custom-file-upload:hover { border-color: #0088cc !important; background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important; transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 110, 150, 0.15); } .custom-file-upload .ui-button { background: linear-gradient(135deg, #006e96 0%, #0088cc 100%) !important; border: none !important; color: white !important; padding: 14px 28px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 14px !important; transition: all 0.3s ease !important; margin: 0 8px !important; } .custom-file-upload .ui-button:hover { background: linear-gradient(135deg, #0088cc 0%, #0099dd 100%) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 110, 150, 0.3); } /* Informações do Arquivo Selecionado */ .file-info { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); border: 1px solid #4caf50; border-radius: 8px; padding: 16px 20px; color: #2e7d32; font-weight: 500; max-width: 500px; animation: slideIn 0.3s ease-out; } .file-info .ui-icon { color: #4caf50; font-size: 18px; } .file-name { font-style: italic; word-break: break-all; font-size: 14px; } /* Seção de Informações do Documento */ .document-info { background: white; border: 2px solid #e8e8e8; border-radius: 12px; padding: 32px; margin-top: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); animation: slideDown 0.4s ease-out; border-left: 4px solid #006e96; } .form-fields { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; } .field-group { display: flex; flex-direction: column; gap: 8px; } .form-label { font-weight: 600; color: #555; font-size: 14px; margin-bottom: 4px; } .form-input { width: 100% !important; max-width: 400px; padding: 12px 16px !important; border: 2px solid #e0e0e0 !important; border-radius: 8px !important; font-size: 14px !important; transition: all 0.3s ease; background: white !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02); } .form-input:focus { border-color: #006e96 !important; box-shadow: 0 0 0 4px rgba(0, 110, 150, 0.1) !important; outline: none !important; transform: translateY(-1px); } .error-message { color: #d32f2f !important; font-size: 12px !important; margin-top: 4px !important; display: block !important; animation: shake 0.5s ease-in-out; } /* Botões de Ação */ .upload-actions { display: flex; justify-content: center; gap: 16px; padding-top: 24px; border-top: 1px solid #e0e0e0; margin-top: 24px; } .process-button { background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important; border: none !important; color: white !important; padding: 12px 24px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 14px !important; transition: all 0.3s ease !important; box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3); min-width: 160px; } .process-button:hover { background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4); } .add-button { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important; border: none !important; color: white !important; padding: 12px 24px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 14px !important; transition: all 0.3s ease !important; box-shadow: 0 3px 8px rgba(255, 152, 0, 0.3); min-width: 160px; } .add-button:hover { background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4); } .add-button .ui-icon { margin-right: 8px; font-size: 16px; } /* Animações */ @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); max-height: 0; } to { opacity: 1; transform: translateY(0); max-height: 500px; } } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } /* Responsividade */ @media (max-width: 768px) { .action-buttons { flex-direction: column; gap: 8px; } .info-grid { grid-template-columns: 1fr; gap: 16px; } .upload-container { padding: 16px; } .main-upload, .document-info { padding: 20px; } .custom-file-upload { min-width: 100%; padding: 30px 15px !important; } .form-input { max-width: 100%; } .file-info { max-width: 100%; } .upload-actions { flex-direction: column; gap: 12px; } .process-button, .add-button { width: 100%; min-width: auto; } } /* Melhorias para mensagens */ .ui-message-error { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%) !important; border: 1px solid #ffcdd2 !important; color: #c62828 !important; border-radius: 8px !important; padding: 12px 16px !important; margin: 8px 0 !important; box-shadow: 0 2px 8px rgba(198, 40, 40, 0.1); } .ui-message-info { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important; border: 1px solid #bbdefb !important; color: #1976d2 !important; border-radius: 8px !important; padding: 12px 16px !important; margin: 8px 0 !important; box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1); } .ui-message-success { background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important; border: 1px solid #c8e6c9 !important; color: #2e7d32 !important; border-radius: 8px !important; padding: 12px 16px !important; margin: 8px 0 !important; box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1); } /* Estilo para o growl */ .ui-growl { top: 20px !important; right: 20px !important; } .ui-growl .ui-growl-item-container { border-radius: 12px !important; box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important; border: none !important; } /* Estilos para a tabela de documentos */ .documents-table { border: 1px solid #e0e0e0 !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; background: white !important; margin-top: 24px !important; } .documents-table .ui-datatable-header { background: linear-gradient(135deg, #006e96 0%, #0088cc 100%) !important; color: white !important; padding: 20px 24px !important; font-weight: 600 !important; font-size: 18px !important; border: none !important; } .documents-table .ui-datatable-thead th { background: #f8f9fa !important; color: #333 !important; font-weight: 600 !important; padding: 16px 12px !important; border-bottom: 2px solid #e0e0e0 !important; text-align: center !important; font-size: 14px !important; } .documents-table .ui-datatable-tbody td { padding: 12px 8px !important; border-bottom: 1px solid #f0f0f0 !important; vertical-align: middle !important; font-size: 14px !important; } .documents-table .ui-datatable-tbody tr:hover { background-color: #f8f9fa !important; } .documents-table .ui-datatable-tbody tr:nth-child(even) { background-color: #fafafa !important; } .documents-table .ui-datatable-tbody tr:nth-child(even):hover { background-color: #f0f0f0 !important; } /* Estilos para botões na tabela */ .documents-table .ui-button { padding: 8px 16px !important; border-radius: 6px !important; font-size: 13px !important; font-weight: 500 !important; transition: all 0.3s ease !important; } .documents-table .ui-button[value="Download"] { background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important; border: none !important; color: white !important; } .documents-table .ui-button[value="Download"]:hover { background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3); } .documents-table .ui-button[value="Excluir"] { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important; border: none !important; color: white !important; } .documents-table .ui-button[value="Excluir"]:hover { background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3); }