feat(frontend): melhorias no ConsultorCard

- Adicionar função corrigir_encoding para fix de caracteres Latin1
- Melhorias visuais no CSS do card de consultor
This commit is contained in:
Frederico Castro
2025-12-21 22:23:16 -03:00
parent 7d73510101
commit 061a3e8768
2 changed files with 659 additions and 49 deletions

View File

@@ -205,6 +205,14 @@
color: #0f172a;
}
.badge-premiado {
background: linear-gradient(120deg, #fbbf24, #f59e0b);
color: #0f172a;
font-size: 0.85rem;
padding: 0.15rem 0.35rem;
border: none;
}
.card-stats {
display: flex;
align-items: center;
@@ -580,36 +588,36 @@
.selos-container.selos-compacto {
display: inline-flex;
margin-left: 0.25rem;
gap: 0.2rem;
margin-left: 0.5rem;
gap: 0.4rem;
}
.selos-compacto .selo {
background: rgba(148, 163, 184, 0.12);
border-color: rgba(148, 163, 184, 0.25);
background: rgba(148, 163, 184, 0.15);
border-color: rgba(148, 163, 184, 0.3);
color: #94a3b8;
padding: 0.1rem 0.25rem;
gap: 0.15rem;
font-size: 0.6rem;
padding: 0.25rem 0.45rem;
gap: 0.25rem;
font-size: 0.7rem;
}
.selos-compacto .selo:hover {
background: rgba(148, 163, 184, 0.2);
border-color: rgba(148, 163, 184, 0.4);
background: rgba(148, 163, 184, 0.25);
border-color: rgba(148, 163, 184, 0.5);
color: #cbd5e1;
}
.selos-compacto .selo-icone {
filter: grayscale(100%) brightness(1.2);
opacity: 0.85;
font-size: 0.65rem;
opacity: 0.9;
font-size: 0.9rem;
}
.selos-compacto .selo-qtd {
background: rgba(148, 163, 184, 0.25);
background: rgba(148, 163, 184, 0.3);
color: #cbd5e1;
font-size: 0.5rem;
padding: 0.05rem 0.2rem;
font-size: 0.6rem;
padding: 0.1rem 0.25rem;
}
.selo {
@@ -927,3 +935,140 @@
font-size: 0.55rem;
}
}
.tipo-clicavel,
.selo-clicavel {
cursor: pointer;
}
.tipo-clicavel:hover,
.selo-clicavel:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.tipo-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 1rem;
}
.tipo-modal {
background: linear-gradient(155deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
border: 1px solid var(--stroke);
border-radius: 16px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
max-width: 600px;
width: 100%;
max-height: 80vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
.tipo-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--stroke);
background: rgba(255, 255, 255, 0.03);
}
.tipo-modal-header .tipo-atuacao {
font-size: 0.85rem;
padding: 0.35rem 0.7rem;
}
.tipo-modal-header .tipo-icone {
font-size: 1rem;
}
.tipo-modal-close {
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--stroke);
border-radius: 8px;
color: var(--muted);
font-size: 1rem;
width: 32px;
height: 32px;
cursor: pointer;
transition: all 200ms ease;
}
.tipo-modal-close:hover {
background: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.4);
color: #fca5a5;
}
.tipo-modal-body {
padding: 1rem 1.25rem;
overflow-y: auto;
flex: 1;
}
.modal-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.modal-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 0.8rem;
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
border: 1px solid var(--stroke);
font-size: 0.85rem;
}
.modal-item:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.15);
}
.modal-item-main {
flex: 1;
color: var(--text);
font-weight: 500;
}
.modal-summary {
display: flex;
gap: 1.5rem;
padding: 0.75rem 1rem;
background: rgba(79, 70, 229, 0.1);
border: 1px solid rgba(79, 70, 229, 0.25);
border-radius: 8px;
margin-bottom: 0.75rem;
font-size: 0.85rem;
color: var(--muted);
}
.modal-summary strong {
color: var(--accent-2);
}
.modal-empty {
text-align: center;
color: var(--muted);
padding: 2rem;
font-size: 0.9rem;
}
.tipo-modal-body h5 {
color: var(--accent-2);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.5px;
margin: 1rem 0 0.5rem;
}