.agent-ia-container * {
margin: 0;
padding: 0;
box-sizing: border-box;
} .agent-ia-container {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, Oxygen, Ubuntu, sans-serif;
background: white;
color: #1a1a1a;
display: flex;
flex-direction: column;
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
position: relative;
width: 100%;
height: 100%;
min-height: 400px;
max-width: none;
--primary-color: #667eea;
--secondary-color: #764ba2;
} .agent-ia-container .agent-selector {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 10px 20px;
display: flex;
align-items: center;
gap: 12px;
font-size: 14px;
font-weight: 500;
flex-shrink: 0; }
.agent-ia-container .agent-select {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
color: white;
padding: 6px 12px;
font-size: 14px;
outline: none;
cursor: pointer;
backdrop-filter: blur(10px);
}
.agent-ia-container .agent-select:focus {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
}
.agent-ia-container .agent-select option {
background: #1a1a1a;
color: white;
} .agent-ia-container .agent-ia-header {
height: 60px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
display: flex;
align-items: center;
justify-content: center;
padding: 0 20px;
position: relative;
z-index: 50;
flex-shrink: 0; border-radius:7px;
}
.agent-ia-container .chat-title {
display: flex;
align-items: center;
gap: 12px;
text-align: center;
}
.agent-ia-container .logo-icon {
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: white;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.agent-ia-container .chat-title h1 {
font-size: 20px;
font-weight: 600;
color: white;
margin: 0;
}
.agent-ia-container .chat-subtitle {
font-size: 14px;
color: rgba(255, 255, 255, 0.9);
margin-top: 2px;
} .agent-ia-container .messages-container {
flex: 1;
overflow-y: auto;
padding: 0;
scroll-behavior: smooth;
min-height: 0; }
.agent-ia-container .messages-wrapper {
max-width: 100%;
margin: 0 auto;
padding: 24px;
min-height: 100%;
display: flex;
flex-direction: column;
} .agent-ia-container .welcome-message {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: #6b7280;
padding: 40px 20px;
}
.agent-ia-container .welcome-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
color: white;
margin-bottom: 24px;
}
.agent-ia-container .welcome-title {
font-size: 24px;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 8px;
}
.agent-ia-container .welcome-subtitle {
font-size: 16px;
line-height: 1.6;
max-width: 500px;
} .agent-ia-container .message {
margin-bottom: 24px;
display: flex;
gap: 12px;
align-items: flex-start;
}
.agent-ia-container .message.user {
flex-direction: row-reverse;
}
.agent-ia-container .message-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: white;
flex-shrink: 0;
}
.agent-ia-container .message.user .message-avatar {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.agent-ia-container .message.bot .message-avatar {
background: #374151;
}
.agent-ia-container .message-content {
max-width: 70%;
background: white;
border-radius: 16px;
padding: 16px 20px;
border: 1px solid #e5e7eb;
line-height: 1.6;
word-wrap: break-word;
}
.agent-ia-container .message.user .message-content {
background: linear-gradient(227deg, #6f02ff, #06E4FF);
color: white;
border: none;
}
.agent-ia-container .message.user .message-content .message-timestamp{
color: white !important;
}
.agent-ia-container .message.bot .message-content {
background: #f9fafb;
border: 1px solid #e5e7eb;
} .agent-ia-container .message-content strong {
font-weight: 600;
}
.agent-ia-container .message-content em {
font-style: italic;
}
.agent-ia-container .message-content pre {
background: rgba(0, 0, 0, 0.05);
padding: 12px;
border-radius: 8px;
margin: 8px 0;
overflow-x: auto;
white-space: pre-wrap;
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
font-size: 14px;
}
.agent-ia-container .message.user .message-content pre {
background: rgba(255, 255, 255, 0.15);
}
.agent-ia-container .message-content code {
background: rgba(0, 0, 0, 0.05);
padding: 2px 6px;
border-radius: 4px;
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
font-size: 14px;
}
.agent-ia-container .message.user .message-content code {
background: rgba(255, 255, 255, 0.15);
} .agent-ia-container .image-preview {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px 20px;
margin: 12px 20px;
display: none;
animation: slideUp 0.3s ease-out;
flex-shrink: 0; }
.agent-ia-container .preview-content {
display: flex;
align-items: center;
gap: 16px;
position: relative;
}
.agent-ia-container .preview-content img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
border: 2px solid var(--primary-color);
}
.agent-ia-container .image-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.agent-ia-container .image-info span:first-child {
font-weight: 600;
color: #1a1a1a;
font-size: 14px;
}
.agent-ia-container .image-info span:last-child {
color: #6b7280;
font-size: 12px;
}
.agent-ia-container .remove-image {
position: absolute;
top: -8px;
right: -8px;
width: 24px;
height: 24px;
background: #ef4444;
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.agent-ia-container .remove-image:hover {
background: #dc2626;
transform: scale(1.1);
} .agent-ia-container .input-area {
background: white;
border-top: 1px solid #e5e7eb;
padding: 16px 24px;
flex-shrink: 0; }
.agent-ia-container .input-container {
max-width: 100%;
margin: 0 auto;
display: flex;
gap: 12px;
align-items: flex-end;
}
.agent-ia-container .attach-button {
width: 44px;
height: 44px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: #6b7280;
font-size: 18px;
}
.agent-ia-container .attach-button:hover {
background: #f3f4f6;
border-color: #d1d5db;
}
.agent-ia-container .attach-button.has-image {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border-color: transparent;
}
.agent-ia-container .input-wrapper {
flex: 1;
position: relative;
}
.agent-ia-container .chat-input {
width: 100%;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px 50px 12px 16px;
font-size: 16px;
line-height: 1.5;
resize: none;
outline: none;
transition: all 0.2s ease;
min-height: 85px;
max-height: 120px;
background: white;
font-family: inherit;
}
.agent-ia-container .chat-input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.agent-ia-container .send-button {
position: absolute;
right: 6px;
bottom: 6px;
width: 32px;
height: 32px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border: none;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
color: white;
font-size: 16px;
}
.agent-ia-container .send-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 102, 126, 234), 0.3);
}
.agent-ia-container .send-button:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.agent-ia-container .file-input {
display: none;
} .agent-ia-container .typing-indicator {
display: flex;
gap: 12px;
align-items: flex-start;
margin-bottom: 24px;
}
.agent-ia-container .typing-content {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 16px;
padding: 16px 20px;
max-width: 70%;
}
.agent-ia-container .processing-message {
color: var(--primary-color);
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.agent-ia-container .typing-dots {
display: flex;
gap: 4px;
}
.agent-ia-container .typing-dots span {
width: 8px;
height: 8px;
background: #d1d5db;
border-radius: 50%;
animation: typing 1.4s infinite ease-in-out;
}
.agent-ia-container .typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.agent-ia-container .typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
0%, 80%, 100% {
transform: scale(0.8);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
} @keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.agent-ia-container .message {
animation: fadeIn 0.3s ease-out;
} .agent-ia-container .messages-container::-webkit-scrollbar {
width: 6px;
}
.agent-ia-container .messages-container::-webkit-scrollbar-track {
background: transparent;
}
.agent-ia-container .messages-container::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 3px;
}
.agent-ia-container .messages-container::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
} .agent-ia-container .messages-container.drag-over {
background: linear-gradient(135deg, #e3f2fd, #f3e5f5) !important;
border: 2px dashed var(--primary-color);
border-radius: 10px;
position: relative;
}
.agent-ia-container .messages-container.drag-over::before {
content: '📎 Solte a imagem aqui para análise';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--primary-color);
color: white;
padding: 15px 25px;
border-radius: 25px;
font-weight: 600;
box-shadow: 0 5px 15px rgba(var(--primary-color-rgb, 102, 126, 234), 0.3);
z-index: 1000;
} .agent-ia-container[data-agent="prompts"] {
--primary-color: #7c3aed;
--secondary-color: #5b21b6;
--primary-color-rgb: 124, 58, 237;
}
.agent-ia-container[data-agent="contabil"] {
--primary-color: #667eea;
--secondary-color: #764ba2;
--primary-color-rgb: 102, 126, 234;
}
.agent-ia-container[data-agent="juridico"] {
--primary-color: #10b981;
--secondary-color: #059669;
--primary-color-rgb: 16, 185, 129;
}
.agent-ia-container[data-agent="rh"] {
--primary-color: #f59e0b;
--secondary-color: #d97706;
--primary-color-rgb: 245, 158, 11;
}
.agent-ia-container[data-agent="marketing"] {
--primary-color: #ec4899;
--secondary-color: #db2777;
--primary-color-rgb: 236, 72, 153;
}
.agent-ia-container[data-agent="financeiro"] {
--primary-color: #8b5cf6;
--secondary-color: #7c3aed;
--primary-color-rgb: 139, 92, 246;
}
.agent-ia-container[data-agent="geral"] {
--primary-color: #6b7280;
--secondary-color: #4b5563;
--primary-color-rgb: 107, 114, 128;
} @media (max-width: 768px) {
.agent-ia-container .messages-wrapper {
padding: 16px;
}
.agent-ia-container .input-area {
padding: 12px 16px;
}
.agent-ia-container .message-content {
max-width: 90%;
}
.agent-ia-container .welcome-icon {
width: 64px;
height: 64px;
font-size: 24px;
}
.agent-ia-container .welcome-title {
font-size: 20px;
}
.agent-ia-container .welcome-subtitle {
font-size: 14px;
}
.agent-ia-container .agent-ia-header {
height: 50px;
padding: 0 16px;
}
.agent-ia-container .chat-title h1 {
font-size: 16px;
}
.agent-ia-container .logo-icon {
width: 28px;
height: 28px;
font-size: 14px;
}
.agent-ia-container .agent-selector {
padding: 8px 16px;
font-size: 13px;
flex-wrap: wrap;
}
.agent-ia-container .agent-select {
padding: 4px 8px;
font-size: 13px;
}
}
@media (max-width: 480px) {
.agent-ia-container .input-container {
gap: 8px;
}
.agent-ia-container .attach-button {
width: 40px;
height: 40px;
font-size: 16px;
}
.agent-ia-container .send-button {
width: 28px;
height: 28px;
font-size: 14px;
}
.agent-ia-container .chat-input {
font-size: 16px; }
} .agent-ia-container[data-theme="dark"] {
background: #1a1a1a;
color: white;
}
.agent-ia-container[data-theme="dark"] .message.bot .message-content {
background: #2d2d2d;
border-color: #404040;
color: white;
}
.agent-ia-container[data-theme="minimal"] {
border: none;
box-shadow: none;
border-radius: 0;
}
.agent-ia-container[data-theme="minimal"] .agent-ia-header {
display: none;
}
.agent-ia-container[data-theme="minimal"] .agent-selector {
display: none;
} .agent-ia-container[data-theme="embed"],
.agent-ia-container {
width: 100% !important;
height: 100% !important;
max-width: none !important;
max-height: none !important;
border-radius: 0;
border: none;
box-shadow: none;
} .wp-block .agent-ia-container,
.entry-content .agent-ia-container,
.page-content .agent-ia-container {
width: 100% !important;
height: 100% !important;
min-height: 500px;
} body.wp-embed .agent-ia-container {
border-radius: 0 !important;
border: none !important;
box-shadow: none !important;
} .agent-ia-container .chat-input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 102, 126, 234), 0.1);
}
.agent-ia-container .send-button:hover:not(:disabled) {
box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 102, 126, 234), 0.3);
} .agent-ia-container .processing-message::before {
content: '';
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid var(--primary-color);
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s linear infinite;
margin-right: 8px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
} .agent-ia-container.sending-message {
position: relative;
}
.agent-ia-container.sending-message::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255,255,255,0.05);
z-index: 5;
pointer-events: none;
border-radius: inherit;
} .send-button.sending {
background: #94a3b8 !important;
cursor: not-allowed !important;
transform: none !important;
box-shadow: none !important;
opacity: 0.7;
}
.send-button.sending:hover {
background: #94a3b8 !important;
transform: none !important;
box-shadow: none !important;
} .chat-input:disabled {
background: #f9fafb;
color: #6b7280;
cursor: not-allowed;
} .temp-message {
animation: tempMessageFadeIn 0.3s ease-out;
font-weight: 500;
text-align: center;
white-space: nowrap;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@keyframes tempMessageFadeIn {
from {
opacity: 0;
transform: translate(-50%, -50%) scale(0.8);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
} .agent-ia-container .message {
animation: fadeInMessage 0.2s ease-out;
}
@keyframes fadeInMessage {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
} .agent-ia-container.sending-message .input-area {
opacity: 0.8;
}
.agent-ia-container.sending-message .attach-button,
.agent-ia-container.sending-message .agent-select {
opacity: 0.5;
cursor: not-allowed;
} .attach-button:disabled {
opacity: 0.5;
cursor: not-allowed;
background: #f3f4f6 !important;
color: #9ca3af !important;
} .typing-indicator {
animation: fadeInMessage 0.15s ease-out;
} .agent-ia-container.sending-message .send-button:hover,
.agent-ia-container.sending-message .attach-button:hover,
.agent-ia-container.sending-message .chat-input:hover {
transform: none !important;
box-shadow: none !important;
} @media (prefers-reduced-motion: reduce) {
.temp-message,
.agent-ia-container .message {
animation: none;
}
.agent-ia-container .message {
opacity: 1 !important;
transform: none !important;
}
} .agent-select:disabled {
opacity: 0.5;
cursor: not-allowed;
background: rgba(255,255,255,0.1);
} .pdf-progress {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 18px;
margin: 10px 0;
background: linear-gradient(135deg, #eff6ff, #f0f4ff);
border: 1px solid #bfdbfe;
border-radius: 12px;
animation: pdfFadeIn 0.3s ease-out;
}
@keyframes pdfFadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.pdf-progress-icon {
font-size: 28px;
flex-shrink: 0;
animation: pdfPulse 1.5s ease-in-out infinite;
}
@keyframes pdfPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.15); }
}
.pdf-progress-info {
flex: 1;
min-width: 0;
}
.pdf-progress-text {
font-size: 13px;
font-weight: 600;
color: #1e40af;
margin-bottom: 6px;
}
.pdf-progress-bar-wrapper {
width: 100%;
height: 8px;
background: #dbeafe;
border-radius: 10px;
overflow: hidden;
}
.pdf-progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #3b82f6, #2563eb);
border-radius: 10px;
transition: width 0.3s ease;
} .agent-ia-page-loader {
position: fixed;
top: 0;
left: 0;
width: 0;
height: 3px;
background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
background-size: 200% 100%;
animation: pageLoaderShimmer 1.5s infinite linear;
z-index: 999999;
pointer-events: none;
transition: opacity 0.3s ease;
}
.agent-ia-page-loader.active {
animation: pageLoaderProgress 1.8s ease-out forwards, 
pageLoaderShimmer 1.5s infinite linear;
}
.agent-ia-page-loader.complete {
width: 100% !important;
opacity: 0;
transition: width 0.15s ease, opacity 0.3s ease 0.15s;
}
@keyframes pageLoaderProgress {
0%   { width: 0; }
15%  { width: 30%; }
40%  { width: 55%; }
65%  { width: 75%; }
100% { width: 92%; }
}
@keyframes pageLoaderShimmer {
0%   { background-position: 200% 0; }
100% { background-position: -200% 0; }
}  @keyframes slideUpWall {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.upgrade-wall {
animation: slideUpWall 0.4s ease-out;
} .free-tier-badge {
animation: fadeInMessage 0.3s ease-out;
}
.free-tier-badge a:hover {
opacity: 0.9;
} .agent-ia-container.limit-reached .input-area {
opacity: 0.3;
pointer-events: none;
} @media (max-width: 768px) {
.upgrade-wall div[style*="padding: 24px"] {
padding: 16px !important;
}
.upgrade-wall h3 {
font-size: 18px !important;
}
.upgrade-wall a[style*="padding: 14px 32px"] {
padding: 12px 24px !important;
font-size: 14px !important;
}
.upgrade-wall div[style*="display: flex; flex-wrap: wrap"] {
gap: 6px !important;
}
.upgrade-wall div[style*="display: flex; flex-wrap: wrap"] span {
font-size: 11px !important;
padding: 3px 8px !important;
}
}
@media (max-width: 480px) {
.free-tier-badge {
font-size: 10px !important;
padding: 3px 8px !important;
flex-wrap: wrap;
justify-content: center;
}
.free-tier-badge a {
margin-left: 0 !important;
margin-top: 2px;
}
.upgrade-wall div[style*="font-size: 48px"] {
font-size: 36px !important;
}
.upgrade-wall h3 {
font-size: 16px !important;
}
.upgrade-wall p[style*="font-size: 14px"] {
font-size: 13px !important;
}
}