.agent-ia-dashboard {
margin: 0 auto;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, Oxygen, Ubuntu, sans-serif;
} .dashboard-stats {
margin-bottom: 30px;
}
.dashboard-stats h3 {
color: #1a1a1a;
margin-bottom: 20px;
font-size: 24px;
font-weight: 600;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.stat-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
display: flex;
align-items: center;
gap: 16px;
transition: transform 0.2s ease;
}
.stat-card:hover {
transform: translateY(-2px);
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea, #764ba2);
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: white;
}
.stat-info h4 {
margin: 0 0 8px 0;
color: #1a1a1a;
font-size: 16px;
font-weight: 600;
}
.stat-number {
font-size: 32px;
font-weight: 700;
color: #667eea;
margin: 0;
line-height: 1;
}
.stat-label {
color: #6b7280;
font-size: 14px;
margin: 4px 0 0 0;
}
.stat-card small {
color: #9ca3af;
font-size: 12px;
}
.no-stats {
grid-column: 1 / -1;
text-align: center;
padding: 40px;
color: #6b7280;
} .dashboard-controls {
background: white;
border-radius: 12px;
padding: 20px;
margin-bottom: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
}
.search-box {
flex: 1;
min-width: 300px;
position: relative;
}
.search-box input {
width: 100%;
padding: 12px 50px 12px 16px;
border: 1px solid #e5e7eb;
border-radius: 8px;
font-size: 16px;
outline: none;
transition: border-color 0.2s ease;
}
.search-box input:focus {
border-color: #667eea;
}
.search-box button {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
font-size: 18px;
cursor: pointer;
padding: 8px;
}
.filter-controls {
display: flex;
gap: 12px;
align-items: center;
}
.filter-controls select,
.filter-controls button {
padding: 8px 12px;
border: 1px solid #e5e7eb;
border-radius: 6px;
font-size: 14px;
outline: none;
cursor: pointer;
}
.filter-controls select:focus {
border-color: #667eea;
}
.filter-controls button {
background: #f9fafb;
color: #374151;
transition: background-color 0.2s ease;
}
.filter-controls button:hover {
background: #f3f4f6;
} .conversations-container {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.conversations-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 16px;
border-bottom: 1px solid #e5e7eb;
}
.conversations-header h3 {
color: #1a1a1a;
margin: 0;
font-size: 20px;
font-weight: 600;
}
.view-toggles {
display: flex;
gap: 8px;
}
.view-toggle {
padding: 8px 12px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
transition: all 0.2s ease;
}
.view-toggle.active {
background: #667eea;
color: white;
border-color: #667eea;
} .conversations-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.conversations-grid.loading {
display: flex;
justify-content: center;
align-items: center;
min-height: 200px;
} .conversation-card {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 16px;
cursor: pointer;
transition: all 0.2s ease;
}
.conversation-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.agent-info {
display: flex;
align-items: center;
gap: 8px;
}
.agent-icon {
font-size: 18px;
}
.agent-name {
font-weight: 600;
color: #374151;
font-size: 14px;
}
.conversation-date {
color: #6b7280;
font-size: 12px;
}
.card-body {
margin-bottom: 16px;
}
.conversation-title {
margin: 0 0 8px 0;
color: #1a1a1a;
font-size: 16px;
font-weight: 600;
line-height: 1.4;
}
.conversation-meta {
color: #6b7280;
font-size: 14px;
margin: 0;
}
.message-count {
margin-right: 12px;
}
.tags {
display: flex;
gap: 4px;
flex-wrap: wrap;
margin-top: 8px;
}
.tag {
background: #e5e7eb;
color: #374151;
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
}
.tag.more {
background: #667eea;
color: white;
}
.card-actions {
display: flex;
gap: 8px;
align-items: center;
}
.btn-view {
flex: 1;
background: #667eea;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s ease;
}
.btn-view:hover {
background: #5a67d8;
}
.btn-export,
.btn-delete {
background: #f9fafb;
border: 1px solid #e5e7eb;
padding: 8px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s ease;
}
.btn-export:hover {
background: #10b981;
color: white;
border-color: #10b981;
}
.btn-delete:hover {
background: #ef4444;
color: white;
border-color: #ef4444;
} .pagination-container {
margin-top: 30px;
text-align: center;
}
.load-more-btn {
background: #667eea;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
transition: background-color 0.2s ease;
}
.load-more-btn:hover {
background: #5a67d8;
} .conversation-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}
.modal-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
cursor: pointer;
}
.modal-content {
background: white;
border-radius: 12px;
width: 90%;
max-width: 800px;
max-height: 90%;
display: flex;
flex-direction: column;
position: relative;
z-index: 10;
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-header {
padding: 20px;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
margin: 0;
color: #1a1a1a;
font-size: 18px;
font-weight: 600;
}
.modal-actions {
display: flex;
gap: 8px;
}
.modal-actions button {
background: #f9fafb;
border: 1px solid #e5e7eb;
padding: 8px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s ease;
}
.btn-export:hover {
background: #10b981;
color: white;
border-color: #10b981;
}
.btn-delete:hover {
background: #ef4444;
color: white;
border-color: #ef4444;
}
.btn-close {
font-size: 16px;
font-weight: bold;
}
.btn-close:hover {
background: #f3f4f6;
}
.modal-body {
flex: 1;
overflow: hidden;
}
.conversation-messages {
height: 100%;
max-height: 500px;
overflow-y: auto;
padding: 20px;
}
.conversation-messages.loading {
display: flex;
justify-content: center;
align-items: center;
min-height: 200px;
} .conversation-messages .message {
margin-bottom: 16px;
display: flex;
gap: 12px;
align-items: flex-start;
}
.conversation-messages .message.user {
flex-direction: row-reverse;
}
.conversation-messages .message-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: white;
background: #6b7280;
flex-shrink: 0;
}
.conversation-messages .message.user .message-avatar {
background: #667eea;
}
.conversation-messages .message-content {
max-width: 70%;
background: #f9fafb;
border-radius: 12px;
padding: 12px 16px;
border: 1px solid #e5e7eb;
line-height: 1.5;
}
.conversation-messages .message.user .message-content {
background: #667eea;
color: white;
border: none;
}
.conversation-messages .message-text {
margin-bottom: 8px;
}
.conversation-messages .message-attachment {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid rgba(0,0,0,0.1);
font-size: 12px;
opacity: 0.8;
}
.conversation-messages .message.user .message-attachment {
border-top-color: rgba(255,255,255,0.3);
}
.conversation-messages .message-meta {
margin-top: 8px;
font-size: 11px;
opacity: 0.7;
}
.message-timestamp {
font-size: 11px;
color: #6b7280;
margin-top: 4px;
opacity: 0.7;
} .loading-spinner {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
color: #6b7280;
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid #e5e7eb;
border-top: 3px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
} @media (max-width: 768px) {
.agent-ia-dashboard {
padding: 15px;
}
.stats-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.dashboard-controls {
flex-direction: column;
align-items: stretch;
gap: 15px;
}
.search-box {
min-width: auto;
}
.filter-controls {
justify-content: center;
flex-wrap: wrap;
}
.conversations-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.conversations-header {
flex-direction: column;
gap: 15px;
align-items: stretch;
}
.modal-content {
width: 95%;
height: 90%;
}
.modal-header {
padding: 15px;
}
.conversation-messages {
padding: 15px;
max-height: none;
}
.card-actions {
flex-wrap: wrap;
}
.btn-view {
order: -1;
width: 100%;
margin-bottom: 8px;
}
}
@media (max-width: 480px) {
.agent-ia-dashboard {
padding: 10px;
}
.stat-card {
padding: 15px;
}
.stat-icon {
width: 50px;
height: 50px;
font-size: 20px;
}
.stat-number {
font-size: 24px;
}
.dashboard-controls,
.conversations-container {
padding: 15px;
}
.conversation-card {
padding: 12px;
}
.conversation-title {
font-size: 14px;
}
.modal-content {
border-radius: 0;
width: 100%;
height: 100%;
}
.conversation-messages .message-content {
max-width: 85%;
}
} .stat-card[data-agent="contabil"] .stat-icon {
background: linear-gradient(135deg, #667eea, #764ba2);
}
.stat-card[data-agent="juridico"] .stat-icon {
background: linear-gradient(135deg, #10b981, #059669);
}
.stat-card[data-agent="rh"] .stat-icon {
background: linear-gradient(135deg, #f59e0b, #d97706);
}
.stat-card[data-agent="marketing"] .stat-icon {
background: linear-gradient(135deg, #ec4899, #db2777);
}
.stat-card[data-agent="financeiro"] .stat-icon {
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.stat-card[data-agent="geral"] .stat-icon {
background: linear-gradient(135deg, #6b7280, #4b5563);
}
.stat-card[data-agent="prompts"] .stat-icon {
background: linear-gradient(135deg, #7c3aed, #5b21b6);
} .conversation-card {
animation: fadeInUp 0.3s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-content {
animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
} .conversation-card:hover .conversation-title {
color: #667eea;
}
.btn-view:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.view-toggle:hover:not(.active) {
background: #f3f4f6;
border-color: #d1d5db;
} .conversation-messages::-webkit-scrollbar {
width: 6px;
}
.conversation-messages::-webkit-scrollbar-track {
background: transparent;
}
.conversation-messages::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 3px;
}
.conversation-messages::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
} .btn-view:focus,
.btn-export:focus,
.btn-delete:focus,
.view-toggle:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
}
.search-box input:focus {
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
} .conversation-card.archived {
opacity: 0.6;
}
.conversation-card.archived .conversation-title::after {
content: ' (Arquivada)';
color: #6b7280;
font-weight: normal;
font-size: 12px;
} .conversations-grid[data-view="list"] {
display: block;
}
.conversations-grid[data-view="list"] .conversation-card {
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 20px;
padding: 16px 20px;
}
.conversations-grid[data-view="list"] .card-header,
.conversations-grid[data-view="list"] .card-body {
margin-bottom: 0;
}
.conversations-grid[data-view="list"] .card-body {
flex: 1;
}
.conversations-grid[data-view="list"] .card-actions {
flex-shrink: 0;
} .conversations-empty {
text-align: center;
padding: 60px 20px;
color: #6b7280;
}
.conversations-empty h4 {
margin: 0 0 8px 0;
color: #374151;
font-size: 18px;
}
.conversations-empty p {
margin: 0;
font-size: 14px;
line-height: 1.5;
} .btn-continue-conversation {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
border: none;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
transition: all 0.2s ease;
}
.btn-continue-conversation:hover {
background: linear-gradient(135deg, #059669, #047857);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-continue-conversation:active {
transform: translateY(0);
} @keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.resumed-conversation-badge {
animation: slideIn 0.3s ease-out;
} .btn-continue {
background: linear-gradient(135deg, #10b981, #059669);
color: white !important;
border: none;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
text-decoration: none !important;
transition: all 0.2s ease;
}
.btn-continue:hover {
background: linear-gradient(135deg, #059669, #047857);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
color: white !important;
}
.btn-continue:active {
transform: translateY(0);
} .card-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
} @keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.resumed-conversation-badge {
animation: slideIn 0.3s ease-out;
}