/**
 * Estilos para o Sistema de Cálculo Automático de Preços
 * Design Minimalista e Profissional
 */

/* Container principal - Minimalista */
.price-indicators-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    gap: 1rem;
}

/* Indicador de Lucro - Inline */
.profit-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.profit-label {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.profit-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #10b981;
}

.profit-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    opacity: 0.8;
}

/* Botões de Margem Rápida - Compactos */
.margin-quick-buttons {
    display: flex;
    gap: 0.375rem;
}

.margin-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: transparent;
    color: #3b82f6;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.margin-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.margin-btn:active,
.margin-btn.active {
    background: #3b82f6;
    color: white;
    transform: scale(0.95);
}

/* Input de margem destaque */
#sm_margin:focus,
#vt_margin:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animação suave */
.profit-value,
.profit-percent {
    transition: color 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .price-indicators-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .profit-indicator {
        width: 100%;
    }
    
    .margin-quick-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .margin-btn {
        flex: 1;
    }
}

/* Dark mode */
[data-theme="dark"] .price-indicators-minimal {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #60a5fa;
}

[data-theme="dark"] .profit-label {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .margin-btn {
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

[data-theme="dark"] .margin-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
}

[data-theme="dark"] .margin-btn:active,
[data-theme="dark"] .margin-btn.active {
    background: #3b82f6;
    color: white;
}
