Adiciona recurso de comparacao de consultores
- Permite selecionar ate 2 consultores na lista via checkbox - Exibe barra flutuante com consultores selecionados - Modal de comparacao lado a lado com todos os componentes (A, B, C, D) - Destaque visual para valores maiores/menores entre os consultores - Layout responsivo para mobile
This commit is contained in:
@@ -169,3 +169,112 @@ footer p + p {
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.selecao-flutuante {
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: linear-gradient(155deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 16px;
|
||||
padding: 0.85rem 1.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(79, 70, 229, 0.2);
|
||||
z-index: 999;
|
||||
backdrop-filter: blur(12px);
|
||||
animation: slideUp 300ms ease;
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(-50%) translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.selecao-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.selecao-nome {
|
||||
background: rgba(79, 70, 229, 0.2);
|
||||
color: var(--accent-2);
|
||||
padding: 0.3rem 0.6rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.selecao-acoes {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.btn-limpar {
|
||||
padding: 0.55rem 1rem;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid var(--stroke);
|
||||
color: var(--text);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: all 150ms ease;
|
||||
}
|
||||
|
||||
.btn-limpar:hover {
|
||||
background: rgba(255, 59, 48, 0.2);
|
||||
border-color: rgba(255, 59, 48, 0.4);
|
||||
}
|
||||
|
||||
.btn-comparar {
|
||||
padding: 0.55rem 1.25rem;
|
||||
background: linear-gradient(145deg, var(--accent), var(--accent-2));
|
||||
border: none;
|
||||
color: white;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
transition: all 150ms ease;
|
||||
}
|
||||
|
||||
.btn-comparar:hover:not(:disabled) {
|
||||
filter: brightness(1.1);
|
||||
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
|
||||
}
|
||||
|
||||
.btn-comparar:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.selecao-flutuante {
|
||||
left: 1rem;
|
||||
right: 1rem;
|
||||
transform: none;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.selecao-info {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.selecao-acoes {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user